mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
compositor: Create a square checkerboard for UYVY/YUY2/YVYU too
Previously the "squares" were twice as wide. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/732
This commit is contained in:
parent
0227d0ca60
commit
d5ee11fb36
1 changed files with 2 additions and 2 deletions
|
@ -976,8 +976,8 @@ fill_checker_##name##_c (GstVideoFrame * frame) \
|
|||
\
|
||||
for (i = 0; i < height; i++) { \
|
||||
for (j = 0; j < width; j++) { \
|
||||
dest[Y1] = tab[((i & 0x8) >> 3) + ((j & 0x8) >> 3)]; \
|
||||
dest[Y2] = tab[((i & 0x8) >> 3) + ((j & 0x8) >> 3)]; \
|
||||
dest[Y1] = tab[((i & 0x8) >> 3) + (((2 * j + 0) & 0x8) >> 3)]; \
|
||||
dest[Y2] = tab[((i & 0x8) >> 3) + (((2 * j + 1) & 0x8) >> 3)]; \
|
||||
dest[U] = 128; \
|
||||
dest[V] = 128; \
|
||||
dest += 4; \
|
||||
|
|
Loading…
Reference in a new issue