mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
video-format: fix NV16 unpack
We can just use the NV12 functions, the only difference is the vertical subsampling.
This commit is contained in:
parent
73190bcf79
commit
97784b1563
2 changed files with 3 additions and 30 deletions
gst-libs/gst/video
|
@ -925,8 +925,8 @@ unpack_NV16 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
video_orc_unpack_NV16 (dest,
|
||||
GET_PLANE_LINE (0, y), GET_PLANE_LINE (1, y), width);
|
||||
video_orc_unpack_NV12 (dest,
|
||||
GET_PLANE_LINE (0, y), GET_PLANE_LINE (1, y), width / 2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -935,7 +935,7 @@ pack_NV16 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
video_orc_pack_NV16 (GET_PLANE_LINE (0, y),
|
||||
video_orc_pack_NV12 (GET_PLANE_LINE (0, y),
|
||||
GET_PLANE_LINE (1, y), src, width / 2);
|
||||
}
|
||||
|
||||
|
|
|
@ -390,8 +390,6 @@ x2 mergewl d, ay, uvuv
|
|||
.source 8 ayuv guint8
|
||||
.temp 4 ay
|
||||
.temp 4 uvuv
|
||||
.temp 2 uv1
|
||||
.temp 2 uv2
|
||||
|
||||
x2 splitlw uvuv, ay, ayuv
|
||||
x2 select1wb y, ay
|
||||
|
@ -425,31 +423,6 @@ x2 select1wb y, ay
|
|||
select0lw uv, uvuv
|
||||
swapw vu, uv
|
||||
|
||||
|
||||
.function video_orc_unpack_NV16
|
||||
.dest 4 d guint8
|
||||
.source 1 y guint8
|
||||
.source 2 uv guint8
|
||||
.const 1 c255 255
|
||||
.temp 2 ay
|
||||
.temp 2 tuv
|
||||
|
||||
x2 loadupdb tuv, uv
|
||||
mergebw ay, c255, y
|
||||
mergewl d, ay, tuv
|
||||
|
||||
.function video_orc_pack_NV16
|
||||
.dest 2 y guint8
|
||||
.dest 2 uv guint8
|
||||
.source 8 ayuv guint8
|
||||
.temp 4 ay
|
||||
.temp 4 tuv
|
||||
|
||||
x2 splitlw tuv, ay, ayuv
|
||||
x2 select1wb y, ay
|
||||
select0lw uv, tuv
|
||||
|
||||
|
||||
.function video_orc_unpack_A420
|
||||
.dest 4 d guint8
|
||||
.source 1 y guint8
|
||||
|
|
Loading…
Reference in a new issue