webOS Userland
Native system APIs for webOS
 
Loading...
Searching...
No Matches
NDL_directmedia_v2.h
1/* NDL DirectMedia API 2 (webOS 5+) */
2
3#pragma once
4
5#ifdef __cplusplus
6extern "C" {
7#else
8/* needed for bool in C */
9# include <stdbool.h>
10#endif
11
12#ifndef NDL_DIRECTMEDIA_API_VERSION
13# define NDL_DIRECTMEDIA_API_VERSION 2
14#elif (NDL_DIRECTMEDIA_API_VERSION != 2)
15# error "this header requires NDL_DIRECTMEDIA_API_VERSION 2"
16#endif
17
18#include "NDL_directmedia_common.h"
19
23int NDL_DirectAudioGetAvailableBufferSize(int *available);
24
28int NDL_DirectAudioGetTotalBufferSize(int *total);
29
38int NDL_DirectAudioPlay(void *buffer, unsigned int size, long long pts);
39
46int NDL_DirectMediaInit(const char *app_id);
47
53int NDL_DirectMediaSetWindowId(const char *windowid);
54
66int NDL_DirectAudioSupportMultiChannel(int *isSupported);
67
74int NDL_DirectAudioRegisterCallback(NDLMultiChannelPCMCallback cb);
75
79int NDL_DirectEffectGetAvailableBufferSize(unsigned int *avail);
80
84int NDL_DirectEffectLoad(NDL_DIRECTAUDIO_PCM_INFO_T *info, unsigned int *preferredSize);
85
93int NDL_DirectEffectPlay(void *buffer, unsigned int size);
94
98int NDL_DirectEffectUnload(void);
99
106int NDL_DirectMediaLoad(NDL_DIRECTMEDIA_DATA_INFO_T *data, NDLMediaLoadCallback callback);
107
113int NDL_DirectMediaUnload(void);
114
118void NDL_DirectMedia_DL_Finalize(void);
119
125bool NDL_DirectMedia_DL_Initialize(void);
126
132bool NDL_DirectMedia_DL_IsInitialized(void);
133
137int NDL_DirectVideoFlushRenderBuffer(void);
138
145int NDL_DirectVideoGetRenderBufferLength(int *length);
146
155int NDL_DirectVideoPlay(void *buffer, unsigned int size, long long pts);
156
163int NDL_DirectVideoSetFrameDropThreshold(int threshold);
164
171int NDL_DirectVideoSetHDRInfo(NDL_DIRECTVIDEO_HDR_INFO_T hdrInfo);
172
173
174
175#ifdef __cplusplus
176}
177#endif