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
43int NDL_DirectAudioSupportMultiChannel(int *isSuppored);
44
48int NDL_DirectEffectGetAvailableBufferSize(unsigned int *avail);
49
53int NDL_DirectEffectLoad(NDL_DIRECTAUDIO_PCM_INFO_T *info, unsigned int *preferredSize);
54
62int NDL_DirectEffectPlay(void *buffer, unsigned int size);
63
67int NDL_DirectEffectUnload(void);
68
75int NDL_DirectMediaLoad(NDL_DIRECTMEDIA_DATA_INFO_T *data, NDLMediaLoadCallback callback);
76
82int NDL_DirectMediaUnload(void);
83
87void NDL_DirectMedia_DL_Finalize(void);
88
94bool NDL_DirectMedia_DL_Initialize(void);
95
101bool NDL_DirectMedia_DL_IsInitialized(void);
102
106int NDL_DirectVideoFlushRenderBuffer(void);
107
111int NDL_DirectVideoGetRenderBufferLength(int *length);
112
121int NDL_DirectVideoPlay(void *buffer, unsigned int size, long long pts);
122
126int NDL_DirectVideoSetFrameDropThreshold(int threshold);
127
131int NDL_DirectVideoSetHDRInfo(NDL_DIRECTVIDEO_HDR_INFO_T hdrInfo);
132
133
134
135#ifdef __cplusplus
136}
137#endif