videoconvert: don't interpolate chroma in I420 -> RGB
authorWim Taymans <wtaymans@redhat.com>
Mon, 13 Jan 2014 15:20:55 +0000 (16:20 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 13 Jan 2014 16:24:01 +0000 (17:24 +0100)
Don't try to interpolate the chroma samples, the used algorithm only
works for horizontal cositing. Let's switch to a faster and safer
version until we handle chroma siting correctly in the fastpaths.

gst/videoconvert/gstvideoconvertorc.orc
gst/videoconvert/videoconvert.c

index 7845ba5..29a1998 100644 (file)
@@ -698,10 +698,10 @@ x4 addb argb, x, c128
 
 subb r, y, c128
 splatbw wy, r
-loadupib r, u
+loadupdb r, u
 subb r, r, c128
 splatbw wu, r
-loadupib r, v
+loadupdb r, v
 subb r, r, c128
 splatbw wv, r
 
index f04d22f..380822d 100644 (file)
@@ -1470,8 +1470,6 @@ videoconvert_convert_lookup_fastpath (VideoConvert * convert)
   in_matrix = convert->in_info.colorimetry.matrix;
   out_matrix = convert->out_info.colorimetry.matrix;
 
-//  return FALSE;
-
   interlaced = GST_VIDEO_INFO_IS_INTERLACED (&convert->in_info);
   interlaced |= GST_VIDEO_INFO_IS_INTERLACED (&convert->out_info);