am e180af03: am 201511cf: Calculate proper output buffer size for some more 16-bit RGB color spaces.

Merge commit 'e180af0335b9423bd7c0d764ac3819bd4ee88d37'

* commit 'e180af0335b9423bd7c0d764ac3819bd4ee88d37':
  Calculate proper output buffer size for some more 16-bit RGB color spaces.
This commit is contained in:
Andreas Huber
2009-09-09 16:28:13 -07:00
committed by Android Git Automerger

View File

@@ -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;