TIANDROID-3 (CbYCrY support)
RIO-5782 (Add support for OMX_ColorFormatCbYCrY)
Add support for CbYCrY format in Opencore.
diff --git a/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp b/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp
index 63c978d..2d0f1a7 100644
--- a/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp
+++ b/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp
@@ -1030,6 +1030,10 @@
{
iYUVFormat = PVMF_MIME_YUV422_PACKEDSEMIPLANAR; // Y and UV interleaved - sliced
}
+ else if (iOMXVideoColorFormat == OMX_COLOR_FormatCbYCrY)
+ {
+ iYUVFormat = PVMF_MIME_YUV422_INTERLEAVED_UYVY; // Y, U, V interleaved
+ }
else if (iOMXVideoColorFormat == 0x7FA30C00) // SPECIAL VALUE
{
iYUVFormat = PVMF_MIME_YUV420_SEMIPLANAR_YVU; // semiplanar with Y and VU interleaved
diff --git a/pvmi/pvmf/include/pvmf_format_type.h b/pvmi/pvmf/include/pvmf_format_type.h
index 1a7cf83..96090d4 100644
--- a/pvmi/pvmf/include/pvmf_format_type.h
+++ b/pvmi/pvmf/include/pvmf_format_type.h
@@ -85,6 +85,7 @@
#define PVMF_MIME_YUV422_PACKEDPLANAR "X-YUV-422-PACKEDPLANAR"
#define PVMF_MIME_YUV422_SEMIPLANAR "X-YUV-422-SEMIPLANAR"
#define PVMF_MIME_YUV422_PACKEDSEMIPLANAR "X-YUV-422-PACKEDSEMIPLANAR"
+#define PVMF_MIME_YUV422_INTERLEAVED_UYVY "X-YUV-422-INTERLEAVED-UYVY"
#define PVMF_MIME_YUV420_SEMIPLANAR_YVU "X-YUV-420-SEMIPLANAR-YUV"
// MIME strings for compressed audio formats