diff options
author | Andreas Huber <andih@google.com> | 2009-09-08 14:01:44 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-09-09 11:24:33 -0700 |
commit | 195ea1e0d4484f1deb2309e239f6a5cc9a7e5ba7 (patch) | |
tree | 12b2a48c1a60551b69fdb39558829e0dbc21d8f4 | |
parent | f75978f63a25e79c683e96611f95cb5cd49efd3d (diff) | |
download | frameworks_av-195ea1e0d4484f1deb2309e239f6a5cc9a7e5ba7.zip frameworks_av-195ea1e0d4484f1deb2309e239f6a5cc9a7e5ba7.tar.gz frameworks_av-195ea1e0d4484f1deb2309e239f6a5cc9a7e5ba7.tar.bz2 |
Calculate proper output buffer size for some more 16-bit RGB color spaces.
-rw-r--r-- | media/libstagefright/OMXCodec.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index b1e7069..2e02697 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -1659,6 +1659,15 @@ void OMXCodec::setImageOutputFormat( break; } + case OMX_COLOR_Format16bitARGB4444: + case OMX_COLOR_Format16bitARGB1555: + case OMX_COLOR_Format16bitRGB565: + case OMX_COLOR_Format16bitBGR565: + { + def.nBufferSize = width * height * 2; + break; + } + default: CHECK(!"Should not be here. Unknown color format."); break; |