summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-23 11:43:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-23 11:46:53 +0900
commit7d4e417ea8d850abd1a2ac42ee03446cb6766937 (patch)
treec8eafbd41263e22efe7767567ca6d17f976b4776
parentb7780814fb748d947d22db973223edffdb541af5 (diff)
emotion XXX - make nv12 709 streams work even with slightly off colors
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.
-rw-r--r--src/modules/emotion/gstreamer1/emotion_convert.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/emotion/gstreamer1/emotion_convert.c b/src/modules/emotion/gstreamer1/emotion_convert.c
index db83477ef7..e92b8c401b 100644
--- a/src/modules/emotion/gstreamer1/emotion_convert.c
+++ b/src/modules/emotion/gstreamer1/emotion_convert.c
@@ -162,6 +162,17 @@ const ColorSpace_Format_Convertion colorspace_format_convertion[] = {
162 EVAS_COLORSPACE_YCBCR422601_PL, _evas_video_yuy2, EINA_FALSE }, 162 EVAS_COLORSPACE_YCBCR422601_PL, _evas_video_yuy2, EINA_FALSE },
163 { "NV12", GST_VIDEO_FORMAT_NV12, GST_VIDEO_COLOR_MATRIX_BT601, 163 { "NV12", GST_VIDEO_FORMAT_NV12, GST_VIDEO_COLOR_MATRIX_BT601,
164 EVAS_COLORSPACE_YCBCR420NV12601_PL, _evas_video_nv12, EINA_TRUE }, 164 EVAS_COLORSPACE_YCBCR420NV12601_PL, _evas_video_nv12, EINA_TRUE },
165 // XXX:
166 // XXX: need to add nv12 709 colorspace support to evas itself.
167 // XXX: this makes gst streams work when they are nv12 709 but maybe
168 // XXX: will display in slightly off color.. but in the end this needs
169 // XXX: fixing to display correctly.
170 // XXX:
171 { "NV12-709", GST_VIDEO_FORMAT_NV12, GST_VIDEO_COLOR_MATRIX_BT709,
172 EVAS_COLORSPACE_YCBCR420NV12601_PL, _evas_video_nv12, EINA_TRUE },
173 // XXX:
174 // XXX:
175 // XXX:
165 176
166 { "BGR", GST_VIDEO_FORMAT_BGR, GST_VIDEO_COLOR_MATRIX_UNKNOWN, 177 { "BGR", GST_VIDEO_FORMAT_BGR, GST_VIDEO_COLOR_MATRIX_UNKNOWN,
167 EVAS_COLORSPACE_ARGB8888, _evas_video_bgr, EINA_FALSE }, 178 EVAS_COLORSPACE_ARGB8888, _evas_video_bgr, EINA_FALSE },