frameworks/av
Revision | c4031b39c5fd0e5836379380c1f1ed22f2c781a9 (tree) |
---|---|
Time | 2020-04-14 22:49:59 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Don't use YV12 color format for video decoding
YV12 is not supported by Mesa yet. This has to be reverted
when we can enable h/w decoder.
@@ -125,6 +125,7 @@ void SoftwareRenderer::resetFormatIfChanged( | ||
125 | 125 | // hardware has YUV12 and RGBA8888 support, so convert known formats |
126 | 126 | { |
127 | 127 | switch (mColorFormat) { |
128 | +#if 0 | |
128 | 129 | case OMX_COLOR_FormatYUV420Planar: |
129 | 130 | case OMX_COLOR_FormatYUV420SemiPlanar: |
130 | 131 | case OMX_TI_COLOR_FormatYUV420PackedSemiPlanar: |
@@ -134,6 +135,7 @@ void SoftwareRenderer::resetFormatIfChanged( | ||
134 | 135 | bufHeight = (mCropHeight + 1) & ~1; |
135 | 136 | break; |
136 | 137 | } |
138 | +#endif | |
137 | 139 | case OMX_COLOR_Format24bitRGB888: |
138 | 140 | { |
139 | 141 | halFormat = HAL_PIXEL_FORMAT_RGB_888; |