OpenMAX Bellagio 0.9.3
omxvolcontroltest.h
Go to the documentation of this file.
1
27#ifndef __OMXVOLCONTROLTEST_H__
28#define __OMXVOLCONTROLTEST_H__
29
30#include <stdio.h>
31#include <stdlib.h>
32#include <fcntl.h>
33#include <string.h>
34#include <pthread.h>
35#include <unistd.h>
36#include <sys/stat.h>
37
38#include <OMX_Core.h>
39#include <OMX_Component.h>
40#include <OMX_Types.h>
41#include <OMX_Audio.h>
42
43#include <bellagio/tsemaphore.h>
44#include <user_debug_levels.h>
45
47#define VERSIONMAJOR 1
48#define VERSIONMINOR 1
49#define VERSIONREVISION 0
50#define VERSIONSTEP 0
51
52/* Application's private data */
53typedef struct appPrivateType{
54 pthread_cond_t condition;
55 pthread_mutex_t mutex;
56 void* input_data;
61
62/* Size of the buffers requested to the component */
63#define BUFFER_IN_SIZE 2*8192*2
64
65/* Callback prototypes */
67 OMX_HANDLETYPE hComponent,
68 OMX_PTR pAppData,
69 OMX_EVENTTYPE eEvent,
70 OMX_U32 Data1,
71 OMX_U32 Data2,
72 OMX_PTR pEventData);
73
75 OMX_HANDLETYPE hComponent,
76 OMX_PTR pAppData,
77 OMX_BUFFERHEADERTYPE* pBuffer);
78
80 OMX_HANDLETYPE hComponent,
81 OMX_PTR pAppData,
82 OMX_BUFFERHEADERTYPE* pBuffer);
83
85static int getFileSize(int fd);
86
87#endif
OMX_ERRORTYPE
Definition OMX_Core.h:127
unsigned long OMX_U32
Definition OMX_Types.h:145
void * OMX_PTR
Definition OMX_Types.h:199
void * OMX_HANDLETYPE
Definition OMX_Types.h:295
OMX_EVENTTYPE
Definition OMX_Core.h:480
int fd[4]
OMX_ERRORTYPE volcEmptyBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volcFillBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volcEventHandler(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR pEventData)
struct appPrivateType appPrivateType
pthread_mutex_t mutex
OMX_BUFFERHEADERTYPE * currentInputBuffer
pthread_cond_t condition

Generated for OpenMAX Bellagio rel. 0.9.3 by  doxygen 1.5.1
SourceForge.net Logo