mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
video-format: improve unpack i420
unpack_i420 does not need extra code to handle odd widths, the orc code already handles it fine.
This commit is contained in:
parent
9efbba8c1c
commit
a3da634db6
1 changed files with 1 additions and 8 deletions
|
@ -86,14 +86,7 @@ unpack_planar_420 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
guint8 *v_line = GET_V_LINE (uv);
|
||||
guint8 *ayuv = dest;
|
||||
|
||||
video_orc_unpack_I420 (dest, y_line, u_line, v_line, width);
|
||||
|
||||
if (width & 1) {
|
||||
gint i = width - 1;
|
||||
|
||||
ayuv[i * 4 + 2] = u_line[i >> 1];
|
||||
ayuv[i * 4 + 3] = v_line[i >> 1];
|
||||
}
|
||||
video_orc_unpack_I420 (ayuv, y_line, u_line, v_line, width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue