diff options
author | SeungBeom Kim <sbcrux.kim@samsung.com> | 2011-07-28 10:59:05 +0900 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-08-04 10:10:24 -0700 |
commit | cf996c94402fdce75ca9a9255e285784fd3487bc (patch) | |
tree | 88dd59d2edbd000ff8d13e30299911963f6aae29 /sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c | |
parent | 8f35b79e690080f07214f73080ec94ce2f47c1e1 (diff) | |
download | device_samsung_crespo-cf996c94402fdce75ca9a9255e285784fd3487bc.zip device_samsung_crespo-cf996c94402fdce75ca9a9255e285784fd3487bc.tar.gz device_samsung_crespo-cf996c94402fdce75ca9a9255e285784fd3487bc.tar.bz2 |
Video decode component support gralloc color format.
That returns the current color format is a 0x100.
But, It is not the normal way In terms of omx. (It is spec out)
OMX spec is OMX_COLOR_FormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
I think.... I hope the color format is the value 0x7F000100.
stagefright use the value(0x7F000100) after masking.
ex)
err = native_window_set_buffers_geometry(
mNativeWindow.get(),
def.format.video.nFrameWidth,
def.format.video.nFrameHeight,
(def.format.video.eColorFormat & 0x1FF));
Change-Id: If0578eb35338ff9bd8d0cf8cd8f1435af92aba04
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Diffstat (limited to 'sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c b/sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c index 841ed70..dccdaa5 100644 --- a/sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c +++ b/sec_mm/sec_omx/sec_omx_component/video/dec/SEC_OMX_Vdec.c @@ -66,6 +66,7 @@ inline void SEC_UpdateFrameSize(OMX_COMPONENTTYPE *pOMXComponent) switch(secOutputPort->portDefinition.format.video.eColorFormat) { case OMX_COLOR_FormatYUV420Planar: case OMX_COLOR_FormatYUV420SemiPlanar: + case OMX_SEC_COLOR_FormatANBYUV420SemiPlanar: if (width && height) secOutputPort->portDefinition.nBufferSize = (width * height * 3) / 2; break; |