diff options
author | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-06 19:51:07 +0100 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-06 19:51:07 +0100 |
commit | 33ce459110ec8af960d81bce65e1fb38fb750fe8 (patch) | |
tree | 6317ba9f61b4b21ef105e2d3ee56cbe3d0deb0df /media/libstagefright | |
parent | bfd1c91937c47898a146ba769793978c6a611468 (diff) | |
download | frameworks_av-33ce459110ec8af960d81bce65e1fb38fb750fe8.zip frameworks_av-33ce459110ec8af960d81bce65e1fb38fb750fe8.tar.gz frameworks_av-33ce459110ec8af960d81bce65e1fb38fb750fe8.tar.bz2 |
libstagefright: exynos4: set proper eColorFormat
Change-Id: Ie025face3c292e685fdf4d83c99276b0a9e4d71d
Diffstat (limited to 'media/libstagefright')
-rwxr-xr-x | media/libstagefright/OMXCodec.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index a1b97e8..560c1bb 100755 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -796,7 +796,7 @@ status_t OMXCodec::isColorFormatSupported( // the incremented index (bug 2897413). CHECK_EQ(index, portFormat.nIndex); if (portFormat.eColorFormat == colorFormat) { - CODEC_LOGV("Found supported color format: %d", portFormat.eColorFormat); + CODEC_LOGE("Found supported color format: %d", portFormat.eColorFormat); return OK; // colorFormat is supported! } ++index; @@ -1789,6 +1789,12 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() { eColorFormat = (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YCbCr_420_P; break; } + + err = native_window_set_buffers_geometry( + mNativeWindow.get(), + def.format.video.nFrameWidth, + def.format.video.nFrameHeight, + eColorFormat); #endif if (err != 0) { |