mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
gstvideo: fix a RGB ordering mixup in colorspace conversion code
This commit is contained in:
parent
5f3a31f4d1
commit
ceeff69bc1
1 changed files with 3 additions and 3 deletions
|
@ -1193,9 +1193,9 @@ matrix_yuv_to_rgb (guint8 * tmpline, guint width)
|
|||
g = (298 * y - 55 * u - 136 * v + 19681) >> 8;
|
||||
b = (298 * y + 541 * u - 73988) >> 8;
|
||||
|
||||
tmpline[i * 4 + ARGB_R] = CLAMP (r, 0, 255);
|
||||
tmpline[i * 4 + ARGB_G] = CLAMP (g, 0, 255);
|
||||
tmpline[i * 4 + ARGB_B] = CLAMP (b, 0, 255);
|
||||
tmpline[i * 4 + 1] = CLAMP (r, 0, 255);
|
||||
tmpline[i * 4 + 2] = CLAMP (g, 0, 255);
|
||||
tmpline[i * 4 + 3] = CLAMP (b, 0, 255);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue