mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
video: fix UYVP packing function
This commit is contained in:
parent
ae2c5e1757
commit
03dc5d4a1b
2 changed files with 2 additions and 2 deletions
|
@ -1020,7 +1020,7 @@ putline_UYVP (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src,
|
|||
destline[(i / 2) * 5 + 0] = u0;
|
||||
destline[(i / 2) * 5 + 1] = y0 >> 2;
|
||||
destline[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4);
|
||||
destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2);
|
||||
destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6);
|
||||
destline[(i / 2) * 5 + 4] = (y1 << 2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1733,7 +1733,7 @@ convert_hline_UYVP (paintinfo * p, int y)
|
|||
Y[(i / 2) * 5 + 0] = u0;
|
||||
Y[(i / 2) * 5 + 1] = y0 >> 2;
|
||||
Y[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4);
|
||||
Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2);
|
||||
Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6);
|
||||
Y[(i / 2) * 5 + 4] = (y1 << 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue