From 747c717e9477b5b660f39a2b737de5e968fa7f9d Mon Sep 17 00:00:00 2001 From: Weian Chen Date: Wed, 22 Feb 2012 03:26:52 -0500 Subject: omx-components: code cleanup along with one Queue buffer management support BZ: 24552 code cleanup along with one Queue buffer management support (from Andy) Signed-off-by: Weian Chen Change-Id: I75c7f9c6058602b0cd67e1edbc7d5300ca9e0c76 Reviewed-on: http://android.intel.com:8080/36139 Reviewed-by: Chen, Weian Reviewed-by: Qiu, Junhai Reviewed-by: Ding, Haitao Tested-by: Ding, Haitao Reviewed-by: buildbot Tested-by: buildbot --- videocodec/OMXVideoDecoderPAVC.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'videocodec/OMXVideoDecoderPAVC.cpp') diff --git a/videocodec/OMXVideoDecoderPAVC.cpp b/videocodec/OMXVideoDecoderPAVC.cpp index 0510d6f..f1dd34a 100644 --- a/videocodec/OMXVideoDecoderPAVC.cpp +++ b/videocodec/OMXVideoDecoderPAVC.cpp @@ -118,8 +118,6 @@ OMX_ERRORTYPE OMXVideoDecoderPAVC::BuildHandlerList(void) { AddHandler(OMX_IndexParamVideoAvc, GetParamVideoAvc, SetParamVideoAvc); AddHandler(OMX_IndexParamVideoProfileLevelQuerySupported, GetVideoProfileLevelQuerySupported, SetVideoProfileLevelQuerySupported); AddHandler(OMX_IndexParamVideoProfileLevelCurrent, GetVideoProfileLevelCurrent, SetVideoProfileLevelCurrent); - AddHandler(static_cast(OMX_IndexExtEnableNativeBuffer),GetNativeBufferMode,SetNativeBufferMode); - return OMX_ErrorNone; } @@ -204,32 +202,5 @@ OMX_ERRORTYPE OMXVideoDecoderPAVC::SetVideoProfileLevelCurrent(OMX_PTR pStructur return OMX_ErrorNone; } - -OMX_ERRORTYPE OMXVideoDecoderPAVC::GetNativeBufferMode(OMX_PTR pStructure) { - OMX_ERRORTYPE ret; - return OMX_ErrorNone; //would not be here -} - -#define MAX_OUTPUT_BUFFER_COUNT_FOR_PAVC 10 -OMX_ERRORTYPE OMXVideoDecoderPAVC::SetNativeBufferMode(OMX_PTR pStructure) { - // OMX_ERRORTYPE ret; - //EnableAndroidNativeBuffersParams *param = (EnableAndroidNativeBuffersParams*)pStructure; - //CHECK_TYPE_HEADER(param); - CHECK_SET_PARAM_STATE(); - mNativeBufferMode = true; - PortVideo *port = NULL; - port = static_cast(this->ports[OUTPORT_INDEX]); - OMX_PARAM_PORTDEFINITIONTYPE port_def; - memcpy(&port_def,port->GetPortDefinition(),sizeof(port_def)); - port_def.nBufferCountMin = 1; - port_def.nBufferCountActual = MAX_OUTPUT_BUFFER_COUNT_FOR_PAVC; - port_def.format.video.cMIMEType = (OMX_STRING)"video/raw_ve"; - port_def.format.video.eColorFormat =static_cast(0x7FA00EFF) ;// - port->SetPortDefinition(&port_def,true); - return OMX_ErrorNone; -} - - - DECLARE_OMX_COMPONENT("OMX.Intel.VideoDecoder.PAVC", "video_decoder.pavc", OMXVideoDecoderPAVC); -- cgit v1.2.3