omxparsertest.c File Reference

#include "omxparsertest.h"

Go to the source code of this file.

Defines

#define MPEG4_TYPE_SEL   1
#define AVC_TYPE_SEL   2
#define VIDEO_COMPONENT_NAME_BASE   "OMX.st.video_decoder"
#define AUDIO_COMPONENT_NAME_BASE   "OMX.st.audio_decoder"
#define VIDEO_BASE_ROLE   "video_decoder.avc"
#define AUDIO_BASE_ROLE   "audio_decoder.mp3"
#define VIDEO_DEC_MPEG4_ROLE   "video_decoder.mpeg4"
#define VIDEO_DEC_H264_ROLE   "video_decoder.avc"
#define AUDIO_DEC_MP3_ROLE   "audio_decoder.mp3"
#define AUDIO_DEC_AAC_ROLE   "audio_decoder.aac"
#define VIDEO_SINK   "OMX.st.fbdev.fbdev_sink"
#define COLOR_CONV   "OMX.st.video_colorconv.ffmpeg"
#define AUDIO_SINK   "OMX.st.alsa.alsasink"
#define AUDIO_EFFECT   "OMX.st.volume.component"
#define COMPONENT_NAME_BASE_LEN   20
#define PARSER_3GP   "OMX.st.parser.3gp"
#define extradata_size   1024
#define VIDEO_PORT_INDEX   0
#define AUDIO_PORT_INDEX   1

Functions

int SetPortParametersAudio ()
int SetPortParametersVideo ()
void display_help ()
OMX_ERRORTYPE test_OMX_ComponentNameEnum ()
OMX_ERRORTYPE test_OMX_RoleEnum (OMX_STRING component_name)
OMX_ERRORTYPE test_OMX_ComponentEnumByRole (OMX_STRING role_name)
OMX_ERRORTYPE test_OpenClose (OMX_STRING component_name)
int main (int argc, char **argv)
OMX_ERRORTYPE parser3gpEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE parser3gpFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE videodecEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE videodecEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE videodecFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE colorconvEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE colorconvEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE colorconvFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE fb_sinkEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE fb_sinkEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE audiodecEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE audiodecEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE audiodecFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volumeEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE volumeEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volumeFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE audiosinkEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE audiosinkEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)

Variables

OMX_COLOR_FORMATTYPE COLOR_CONV_OUT_RGB_FORMAT = OMX_COLOR_Format24bitRGB888
OMX_BUFFERHEADERTYPEoutBufferParseVideo [2]
OMX_BUFFERHEADERTYPEoutBufferParseAudio [2]
OMX_BUFFERHEADERTYPEinBufferVideoDec [2]
OMX_BUFFERHEADERTYPEoutBufferVideoDec [2]
OMX_BUFFERHEADERTYPEinBufferAudioDec [2]
OMX_BUFFERHEADERTYPEoutBufferAudioDec [2]
OMX_BUFFERHEADERTYPEinBufferColorconv [2]
OMX_BUFFERHEADERTYPEoutBufferColorconv [2]
OMX_BUFFERHEADERTYPEinBufferSinkVideo [2]
OMX_BUFFERHEADERTYPEinBufferVolume [2]
OMX_BUFFERHEADERTYPEoutBufferVolume [2]
OMX_BUFFERHEADERTYPEinBufferSinkAudio [2]
int buffer_in_size = 4096
int buffer_out_size = 640*480*3
OMX_PARAM_PORTDEFINITIONTYPE decparamPortVideo
OMX_PARAM_PORTDEFINITIONTYPE decparamPortAudio
OMX_CALLBACKTYPE videodeccallbacks
OMX_CALLBACKTYPE colorconv_callbacks
OMX_CALLBACKTYPE fbdev_sink_callbacks
OMX_CALLBACKTYPE parser3gpcallbacks
OMX_CALLBACKTYPE audiodeccallbacks
OMX_CALLBACKTYPE audiosinkcallbacks
OMX_CALLBACKTYPE volumecallbacks
OMX_U32 out_width = 0
OMX_U32 new_out_width = 0
OMX_U32 out_height = 0
OMX_U32 new_out_height = 0
FILE * fd = 0
appPrivateTypeappPriv
char * input_file
char * output_file_audio
char * output_file_video
FILE * outfileAudio
FILE * outfileVideo
int flagIsAudioOutputFileExpected
int flagIsVideoOutputFileExpected
int flagDecodedOutputReceived
int flagInputReceived
int flagIsDisplayRequested
int flagSetupTunnel


Detailed Description

Test application that uses five OpenMAX components, a parser3gp, an audio decoder, a video deocder, an alsa sink and a video sink. The application reads a 3gp stream from a file, parses the audio and video content to the respective audio and video decoders. And sends the decoded data to respective audio and video sink components. Only components based on the FFmpeg library are supported. The video formats supported are: MPEG4 (ffmpeg) H264 (ffmpeg) The audio formats supported are: mp3 (ffmpeg) aac (ffmpeg)

Copyright (C) 2008 STMicroelectronics Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

$Date$ Revision $Rev$ Author $Author$

Definition in file omxparsertest.c.


Define Documentation

#define AUDIO_BASE_ROLE   "audio_decoder.mp3"

Definition at line 46 of file omxparsertest.c.

Referenced by main().

#define AUDIO_COMPONENT_NAME_BASE   "OMX.st.audio_decoder"

Definition at line 44 of file omxparsertest.c.

Referenced by main(), and test_OpenClose().

#define AUDIO_DEC_AAC_ROLE   "audio_decoder.aac"

Definition at line 50 of file omxparsertest.c.

#define AUDIO_DEC_MP3_ROLE   "audio_decoder.mp3"

Definition at line 49 of file omxparsertest.c.

#define AUDIO_EFFECT   "OMX.st.volume.component"

Definition at line 54 of file omxparsertest.c.

#define AUDIO_PORT_INDEX   1

Definition at line 59 of file omxparsertest.c.

#define AUDIO_SINK   "OMX.st.alsa.alsasink"

Definition at line 53 of file omxparsertest.c.

Referenced by main().

#define AVC_TYPE_SEL   2

Definition at line 42 of file omxparsertest.c.

Referenced by main().

#define COLOR_CONV   "OMX.st.video_colorconv.ffmpeg"

Definition at line 52 of file omxparsertest.c.

Referenced by main().

#define COMPONENT_NAME_BASE_LEN   20

Definition at line 55 of file omxparsertest.c.

#define extradata_size   1024

Definition at line 57 of file omxparsertest.c.

#define MPEG4_TYPE_SEL   1

Definition at line 41 of file omxparsertest.c.

Referenced by main().

#define PARSER_3GP   "OMX.st.parser.3gp"

Definition at line 56 of file omxparsertest.c.

Referenced by main().

#define VIDEO_BASE_ROLE   "video_decoder.avc"

Definition at line 45 of file omxparsertest.c.

Referenced by main().

#define VIDEO_COMPONENT_NAME_BASE   "OMX.st.video_decoder"

Definition at line 43 of file omxparsertest.c.

Referenced by main(), and test_OpenClose().

#define VIDEO_DEC_H264_ROLE   "video_decoder.avc"

Definition at line 48 of file omxparsertest.c.

#define VIDEO_DEC_MPEG4_ROLE   "video_decoder.mpeg4"

Definition at line 47 of file omxparsertest.c.

#define VIDEO_PORT_INDEX   0

Definition at line 58 of file omxparsertest.c.

#define VIDEO_SINK   "OMX.st.fbdev.fbdev_sink"

Definition at line 51 of file omxparsertest.c.

Referenced by main().


Function Documentation

OMX_ERRORTYPE audiodecEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

OMX_ERRORTYPE audiodecEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

OMX_ERRORTYPE audiodecFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

OMX_ERRORTYPE audiosinkEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

OMX_ERRORTYPE audiosinkEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

OMX_ERRORTYPE colorconvEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

OMX_ERRORTYPE colorconvEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

OMX_ERRORTYPE colorconvFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

if there is no sink component then write buffer content in output file, in non tunneled case else in non tunneled case, call the sink comp handle to process this buffer as its input buffer

Definition at line 1949 of file omxparsertest.c.

References DEB_LEV_ERR, DEBUG, err, flagIsDisplayRequested, flagSetupTunnel, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_BUFFERFLAG_EOS, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_FillThisBuffer, OMX_TRUE, outfileVideo, OMX_BUFFERHEADERTYPE::pBuffer, and appPrivateType::videosinkhandle.

void display_help (  ) 

function prototype declaration display general help

help display

Definition at line 327 of file omxparsertest.c.

OMX_ERRORTYPE fb_sinkEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 2042 of file omxparsertest.c.

OMX_ERRORTYPE fb_sinkEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

callbacks implementation of video sink component

Definition at line 1992 of file omxparsertest.c.

int main ( int  argc,
char **  argv 
)

input file name check

output file name check

setting input picture width to a default value (vga format) for allocation of video decoder buffers

initializing appPriv structure

initialising openmax

parser3gp component -- gethandle

getting video decoder handle

getting audio decoder handle

getting handle of other components in audio and video pipeline, if specified

getting color converter component handle

getting video sink component handle

getting audio sink component handle

getting volume component handle

setting the input format in parser3gp

now set the parser3gp component to idle state

allocation of parser3gp component's output buffers for video decoder component

allocation of parser3gp component's output buffers for audio decoder component

the output buffers of parser 3gp component will be used in the video decoder component as input buffers

the output buffers of parser3gp component will be used in the audio decoder component as input buffers

freeing all handles and deinit omx

Definition at line 507 of file omxparsertest.c.

References OMX_PARAM_PORTDEFINITIONTYPE::audio, AUDIO_BASE_ROLE, AUDIO_COMPONENT_NAME_BASE, AUDIO_DEC_AAC_ROLE, AUDIO_DEC_MP3_ROLE, AUDIO_EFFECT, AUDIO_PORT_INDEX, AUDIO_SINK, appPrivateType::audiodechandle, appPrivateType::audioDecoderEventSem, appPrivateType::audioSinkEventSem, appPrivateType::audiosinkhandle, buffer_out_size, COLOR_CONV, appPrivateType::colorconv_handle, appPrivateType::colorconvEventSem, OMX_PARAM_COMPONENTROLETYPE::cRole, DEB_LEV_ERR, DEB_LEV_PARAMS, DEB_LEV_SIMPLE_SEQ, DEBUG, DEFAULT_MESSAGES, display_help(), OMX_PARAM_BUFFERSUPPLIERTYPE::eBufferSupplier, OMX_VIDEO_PORTDEFINITIONTYPE::eCompressionFormat, OMX_AUDIO_PORTDEFINITIONTYPE::eEncoding, appPrivateType::eofSem, err, appPrivateType::fbdevSinkEventSem, flagDecodedOutputReceived, flagInputReceived, flagIsAudioOutputFileExpected, flagIsDisplayRequested, flagIsVideoOutputFileExpected, flagSetupTunnel, OMX_PARAM_PORTDEFINITIONTYPE::format, input_file, OMX_PARAM_BUFFERSUPPLIERTYPE::nPortIndex, OMX_BS32::nValue, OMX_AllocateBuffer, OMX_AUDIO_CodingAAC, OMX_AUDIO_CodingMP3, OMX_BufferSupplyInput, OMX_CommandPortEnable, OMX_CommandStateSet, OMX_Deinit(), OMX_ErrorNone, OMX_FillThisBuffer, OMX_FreeBuffer, OMX_FreeHandle(), OMX_GetConfig, OMX_GetExtensionIndex, OMX_GetHandle(), OMX_GetParameter, OMX_IndexConfigAudioVolume, OMX_IndexParamCompBufferSupplier, OMX_IndexParamStandardComponentRole, OMX_Init(), OMX_SendCommand, OMX_SetConfig, OMX_SetParameter, OMX_SetupTunnel(), OMX_StateExecuting, OMX_StateIdle, OMX_StateLoaded, OMX_UseBuffer, OMX_VIDEO_CodingAVC, OMX_VIDEO_CodingMPEG4, out_height, out_width, outfileAudio, outfileVideo, output_file_audio, output_file_video, appPrivateType::parser3gpEventSem, appPrivateType::parser3gphandle, PARSER_3GP, OMX_BUFFERHEADERTYPE::pBuffer, tsem_t::semval, setHeader(), SetPortParametersAudio(), SetPortParametersVideo(), OMX_AUDIO_CONFIG_VOLUMETYPE::sVolume, test_OMX_ComponentEnumByRole(), test_OMX_ComponentNameEnum(), test_OMX_RoleEnum(), test_OpenClose(), tsem_down(), tsem_init(), OMX_PARAM_PORTDEFINITIONTYPE::video, VIDEO_BASE_ROLE, VIDEO_COMPONENT_NAME_BASE, VIDEO_DEC_H264_ROLE, VIDEO_DEC_MPEG4_ROLE, VIDEO_PORT_INDEX, VIDEO_SINK, appPrivateType::videodechandle, appPrivateType::videoDecoderEventSem, appPrivateType::videosinkhandle, appPrivateType::volumeEventSem, and appPrivateType::volumehandle.

OMX_ERRORTYPE parser3gpEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

OMX_ERRORTYPE parser3gpFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

int SetPortParametersAudio (  ) 

int SetPortParametersVideo (  ) 

this function sets the video deocder, color converter and video sink port characteristics based on the parser3gp output port settings

setting the color converter and sink component chararacteristics, if selected - both in tunneled as well as non tunneled case

setting the color conv input port width, height it will be same as the video decoder output port width, height

setting the color converter output width height it will be same as input dimensions

setting the input color format of color converter component it will be same as output yuv color format of the decoder component

setting output RGB color format of the color converter component

if video sink component is selected then set its input port settings accroding to the output port settings of the color converter component

Definition at line 204 of file omxparsertest.c.

References COLOR_CONV_OUT_RGB_FORMAT, appPrivateType::colorconv_handle, DEB_LEV_ERR, DEB_LEV_SIMPLE_SEQ, DEBUG, OMX_VIDEO_PORTDEFINITIONTYPE::eColorFormat, OMX_VIDEO_PORTDEFINITIONTYPE::eCompressionFormat, err, flagIsDisplayRequested, OMX_PARAM_PORTDEFINITIONTYPE::format, new_out_height, new_out_width, OMX_VIDEO_PORTDEFINITIONTYPE::nFrameHeight, OMX_VIDEO_PORTDEFINITIONTYPE::nFrameWidth, OMX_PARAM_PORTDEFINITIONTYPE::nPortIndex, omx_colorconvPortDefinition, OMX_ErrorBadParameter, OMX_ErrorNone, OMX_GetParameter, OMX_IndexParamPortDefinition, OMX_SetParameter, appPrivateType::parser3gphandle, setHeader(), OMX_PARAM_PORTDEFINITIONTYPE::video, VIDEO_PORT_INDEX, appPrivateType::videodechandle, and appPrivateType::videosinkhandle.

Referenced by main().

OMX_ERRORTYPE test_OMX_ComponentEnumByRole ( OMX_STRING  role_name  ) 

OMX_ERRORTYPE test_OMX_ComponentNameEnum (  ) 

OMX_ERRORTYPE test_OMX_RoleEnum ( OMX_STRING  component_name  ) 

OMX_ERRORTYPE test_OpenClose ( OMX_STRING  component_name  ) 

OMX_ERRORTYPE videodecEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 1768 of file omxparsertest.c.

OMX_ERRORTYPE videodecEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

Definition at line 1698 of file omxparsertest.c.

OMX_ERRORTYPE videodecFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 1807 of file omxparsertest.c.

OMX_ERRORTYPE volumeEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

OMX_ERRORTYPE volumeEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

OMX_ERRORTYPE volumeFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)


Variable Documentation

Definition at line 126 of file omxparsertest.c.

Initial value:

 {
  .EventHandler    = audiodecEventHandler,
  .EmptyBufferDone = audiodecEmptyBufferDone,
  .FillBufferDone  = audiodecFillBufferDone
}

Definition at line 104 of file omxparsertest.c.

Initial value:

 {
  .EventHandler    = audiosinkEventHandler,
  .EmptyBufferDone = audiosinkEmptyBufferDone,
  .FillBufferDone  = NULL
}

Definition at line 110 of file omxparsertest.c.

int buffer_in_size = 4096

Definition at line 72 of file omxparsertest.c.

int buffer_out_size = 640*480*3

Definition at line 73 of file omxparsertest.c.

OMX_COLOR_FORMATTYPE COLOR_CONV_OUT_RGB_FORMAT = OMX_COLOR_Format24bitRGB888

Definition at line 61 of file omxparsertest.c.

Referenced by main(), setPortParameters(), and SetPortParametersVideo().

Initial value:

 { 
  .EventHandler = colorconvEventHandler,
  .EmptyBufferDone = colorconvEmptyBufferDone,
  .FillBufferDone = colorconvFillBufferDone
}

Definition at line 86 of file omxparsertest.c.

Definition at line 78 of file omxparsertest.c.

Definition at line 77 of file omxparsertest.c.

Initial value:

 { 
  .EventHandler = fb_sinkEventHandler,
  .EmptyBufferDone = fb_sinkEmptyBufferDone,
  .FillBufferDone = NULL
}

Definition at line 92 of file omxparsertest.c.

FILE* fd = 0

Definition at line 125 of file omxparsertest.c.

Definition at line 134 of file omxparsertest.c.

Definition at line 135 of file omxparsertest.c.

Definition at line 132 of file omxparsertest.c.

Referenced by main().

Definition at line 133 of file omxparsertest.c.

Referenced by main().

Definition at line 137 of file omxparsertest.c.

Definition at line 65 of file omxparsertest.c.

used with color converter if selected

Definition at line 67 of file omxparsertest.c.

Definition at line 71 of file omxparsertest.c.

Definition at line 68 of file omxparsertest.c.

Definition at line 64 of file omxparsertest.c.

Definition at line 70 of file omxparsertest.c.

char* input_file

Definition at line 128 of file omxparsertest.c.

Definition at line 123 of file omxparsertest.c.

Referenced by setPortParameters(), and SetPortParametersVideo().

Definition at line 122 of file omxparsertest.c.

Referenced by setPortParameters(), and SetPortParametersVideo().

Definition at line 65 of file omxparsertest.c.

Definition at line 67 of file omxparsertest.c.

Definition at line 63 of file omxparsertest.c.

Definition at line 63 of file omxparsertest.c.

Definition at line 64 of file omxparsertest.c.

Definition at line 70 of file omxparsertest.c.

FILE* outfileAudio

Definition at line 130 of file omxparsertest.c.

Referenced by audiodecFillBufferDone(), main(), and volumeFillBufferDone().

FILE * outfileVideo

Definition at line 130 of file omxparsertest.c.

Referenced by colorconvFillBufferDone(), main(), and videodecFillBufferDone().

Definition at line 128 of file omxparsertest.c.

Referenced by main().

Definition at line 128 of file omxparsertest.c.

Referenced by main().

Initial value:

 { 
  .EventHandler    = parser3gpEventHandler,
  .EmptyBufferDone = NULL,
  .FillBufferDone  = parser3gpFillBufferDone
}

Definition at line 98 of file omxparsertest.c.

Initial value:

 { 
  .EventHandler = videodecEventHandler,
  .EmptyBufferDone = videodecEmptyBufferDone,
  .FillBufferDone = videodecFillBufferDone
}

Definition at line 80 of file omxparsertest.c.

Initial value:

 {
  .EventHandler    = volumeEventHandler,
  .EmptyBufferDone = volumeEmptyBufferDone,
  .FillBufferDone  = volumeFillBufferDone
}

Definition at line 116 of file omxparsertest.c.


Generated for OpenMAX Bellagio rel. 0.3.5-svn by  doxygen 1.5.1
SourceForge.net Logo