Permalink
Browse files

Fix MediaCodec green screen on Nexus 5

  • Loading branch information...
1 parent d687d62 commit 46c8e7d332e3e032b76eb5c18d686ed5ef48f533 @t-nelson t-nelson committed Nov 7, 2013
@@ -239,6 +239,8 @@ int CJNIMediaCodecInfoCodecCapabilities::COLOR_Format24BitARGB6666(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_Format24BitABGR6666(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_QCOM_FormatYUV420SemiPlanar(0);
+/* This one isn't exposed in 4.4 */
+int CJNIMediaCodecInfoCodecCapabilities::OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace(0x7FA30C04);
const char *CJNIMediaCodecInfoCodecCapabilities::m_classname = "android/media/MediaCodecInfo$CodecCapabilities";
void CJNIMediaCodecInfoCodecCapabilities::PopulateStaticFields()
@@ -179,6 +179,7 @@ class CJNIMediaCodecInfoCodecCapabilities : public CJNIBase
static int COLOR_Format24BitABGR6666;
static int COLOR_TI_FormatYUV420PackedSemiPlanar;
static int COLOR_QCOM_FormatYUV420SemiPlanar;
+ static int OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace;
private:
CJNIMediaCodecInfoCodecCapabilities();
@@ -924,7 +924,9 @@ void CDVDVideoCodecAndroidMediaCodec::OutputFormatChanged(void)
}
else if (color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_FormatYUV420SemiPlanar
|| color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_QCOM_FormatYUV420SemiPlanar
- || color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar)
+ || color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar
+ || color_format == CJNIMediaCodecInfoCodecCapabilities::OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace)
+
{
CLog::Log(LOGDEBUG, "CDVDVideoCodecAndroidMediaCodec:: COLOR_FormatYUV420SemiPlanar");

0 comments on commit 46c8e7d

Please sign in to comment.