mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
videoconvert: fix v216
This commit is contained in:
parent
27d4061c6c
commit
ae2c5e1757
1 changed files with 4 additions and 4 deletions
|
@ -577,8 +577,8 @@ putline_v216 (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src,
|
||||||
for (i = 0; i < convert->width / 2; i++) {
|
for (i = 0; i < convert->width / 2; i++) {
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 0, src[(i * 2 + 0) * 4 + 2] << 8);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 0, src[(i * 2 + 0) * 4 + 2] << 8);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 2, src[(i * 2 + 0) * 4 + 1] << 8);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 2, src[(i * 2 + 0) * 4 + 1] << 8);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 4, src[(i * 2 + 1) * 4 + 3] << 8);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 4, src[(i * 2 + 0) * 4 + 3] << 8);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 8, src[(i * 2 + 0) * 4 + 1] << 8);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 6, src[(i * 2 + 1) * 4 + 1] << 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -605,8 +605,8 @@ putline16_v216 (VideoConvert * convert, GstVideoFrame * dest,
|
||||||
for (i = 0; i < convert->width / 2; i++) {
|
for (i = 0; i < convert->width / 2; i++) {
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 0, src[(i * 2 + 0) * 4 + 2]);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 0, src[(i * 2 + 0) * 4 + 2]);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 2, src[(i * 2 + 0) * 4 + 1]);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 2, src[(i * 2 + 0) * 4 + 1]);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 4, src[(i * 2 + 1) * 4 + 3]);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 4, src[(i * 2 + 0) * 4 + 3]);
|
||||||
GST_WRITE_UINT16_LE (destline + i * 8 + 8, src[(i * 2 + 0) * 4 + 1]);
|
GST_WRITE_UINT16_LE (destline + i * 8 + 6, src[(i * 2 + 1) * 4 + 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue