emotion XXX - make nv12 709 streams work even with slightly off colors
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 23 Feb 2017 02:43:43 +0000 (11:43 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 23 Feb 2017 02:46:53 +0000 (11:46 +0900)
ther eis no 709 nv12 support support in evas but there is 601, so use
that for now until we add the feature of 709 nv12 support.

src/modules/emotion/gstreamer1/emotion_convert.c

index db83477..e92b8c4 100644 (file)
@@ -162,6 +162,17 @@ const ColorSpace_Format_Convertion colorspace_format_convertion[] = {
      EVAS_COLORSPACE_YCBCR422601_PL, _evas_video_yuy2, EINA_FALSE },
   { "NV12", GST_VIDEO_FORMAT_NV12, GST_VIDEO_COLOR_MATRIX_BT601,
      EVAS_COLORSPACE_YCBCR420NV12601_PL, _evas_video_nv12, EINA_TRUE },
+   // XXX:
+   // XXX: need to add nv12 709 colorspace support to evas itself.
+   // XXX: this makes gst streams work when they are nv12 709 but maybe
+   // XXX: will display in slightly off color.. but in the end this needs
+   // XXX: fixing to display correctly.
+   // XXX:
+  { "NV12-709", GST_VIDEO_FORMAT_NV12, GST_VIDEO_COLOR_MATRIX_BT709,
+     EVAS_COLORSPACE_YCBCR420NV12601_PL, _evas_video_nv12, EINA_TRUE },
+   // XXX:
+   // XXX:
+   // XXX:
 
   { "BGR", GST_VIDEO_FORMAT_BGR, GST_VIDEO_COLOR_MATRIX_UNKNOWN,
      EVAS_COLORSPACE_ARGB8888, _evas_video_bgr, EINA_FALSE },