colorspace: Only do the I420->YUY2 conversion once per scanline in the fast path

This commit is contained in:
Sebastian Dröge 2010-10-31 19:39:33 +01:00
parent ba35b17b98
commit e49aa545d0

View file

@ -750,12 +750,6 @@ convert_I420_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
FRAME_GET_LINE (src, 0, i + 1),
FRAME_GET_LINE (src, 1, i >> 1),
FRAME_GET_LINE (src, 2, i >> 1), (convert->width + 1) / 2);
cogorc_convert_I420_YUY2 (FRAME_GET_LINE (dest, 0, i),
FRAME_GET_LINE (dest, 0, i + 1),
FRAME_GET_LINE (src, 0, i),
FRAME_GET_LINE (src, 0, i + 1),
FRAME_GET_LINE (src, 1, i >> 1),
FRAME_GET_LINE (src, 2, i >> 1), (convert->width + 1) / 2);
}
}