summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-09-08 14:01:44 -0700
committerAndreas Huber <andih@google.com>2009-09-09 11:24:33 -0700
commit195ea1e0d4484f1deb2309e239f6a5cc9a7e5ba7 (patch)
tree12b2a48c1a60551b69fdb39558829e0dbc21d8f4 /media/libstagefright
parentf75978f63a25e79c683e96611f95cb5cd49efd3d (diff)
downloadframeworks_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.
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/OMXCodec.cpp9
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;