diff options
| author | wfeng6 <wei.feng@intel.com> | 2012-02-03 20:03:55 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:45 -0700 |
| commit | 6bc8d027bb46c0638d26b3f755350b84f6325de3 (patch) | |
| tree | aedecdc48206518c3076d5e0828140bb77a9f48e /videocodec/OMXVideoDecoderH263.cpp | |
| parent | 09780b7386587d6116b9bdf7e627f3c5037a9008 (diff) | |
| download | android_hardware_intel_common_omx-components-6bc8d027bb46c0638d26b3f755350b84f6325de3.tar.gz android_hardware_intel_common_omx-components-6bc8d027bb46c0638d26b3f755350b84f6325de3.tar.bz2 android_hardware_intel_common_omx-components-6bc8d027bb46c0638d26b3f755350b84f6325de3.zip | |
Video editor enabling (Part 4)
BZ: 21677 22177
Add handlers to query the video decoder and encoder profiles and levels to support video editor.
Change-Id: I39a7482cdd4327ed75464e14604399b999199119
Signed-off-by: wfeng6 <wei.feng@intel.com>
Reviewed-on: http://android.intel.com:8080/33365
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderH263.cpp')
| -rw-r--r-- | videocodec/OMXVideoDecoderH263.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderH263.cpp b/videocodec/OMXVideoDecoderH263.cpp index 5cf1d45..bf4f394 100644 --- a/videocodec/OMXVideoDecoderH263.cpp +++ b/videocodec/OMXVideoDecoderH263.cpp @@ -83,6 +83,7 @@ OMX_ERRORTYPE OMXVideoDecoderH263::BuildHandlerList(void) { OMXVideoDecoderBase::BuildHandlerList(); AddHandler(OMX_IndexParamVideoH263, GetParamVideoH263, SetParamVideoH263); AddHandler(static_cast<OMX_INDEXTYPE>(OMX_IndexExtEnableNativeBuffer),GetNativeBufferMode,SetNativeBufferMode); + AddHandler(OMX_IndexParamVideoProfileLevelQuerySupported, GetParamVideoH263ProfileLevel, SetParamVideoH263ProfileLevel); return OMX_ErrorNone; } @@ -134,6 +135,22 @@ OMX_ERRORTYPE OMXVideoDecoderH263::SetNativeBufferMode(OMX_PTR pStructure) { return OMX_ErrorNone; } +OMX_ERRORTYPE OMXVideoDecoderH263::GetParamVideoH263ProfileLevel(OMX_PTR pStructure) { + OMX_ERRORTYPE ret; + OMX_VIDEO_PARAM_PROFILELEVELTYPE *p = (OMX_VIDEO_PARAM_PROFILELEVELTYPE *)pStructure; + CHECK_TYPE_HEADER(p); + CHECK_ENUMERATION_RANGE(p->nProfileIndex,1); + + p->eProfile = mParamH263.eProfile; + p->eLevel = mParamH263.eLevel; + + return OMX_ErrorNone; +} + +OMX_ERRORTYPE OMXVideoDecoderH263::SetParamVideoH263ProfileLevel(OMX_PTR pStructure) { + LOGW("SetParamVideoH263ProfileLevel is not supported."); + return OMX_ErrorUnsupportedSetting; +} DECLARE_OMX_COMPONENT("OMX.Intel.VideoDecoder.H263", "video_decoder.h263", OMXVideoDecoderH263); |
