mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
xvid: Don't use deprecated 15/16 bit RGB masks
This commit is contained in:
parent
485194b754
commit
63081c815b
1 changed files with 6 additions and 6 deletions
|
@ -179,17 +179,17 @@ gst_xvid_csp_to_caps (gint csp, gint w, gint h)
|
|||
|
||||
switch (csp) {
|
||||
case XVID_CSP_RGB555:
|
||||
r_mask = GST_VIDEO_RED_MASK_15_INT;
|
||||
g_mask = GST_VIDEO_GREEN_MASK_15_INT;
|
||||
b_mask = GST_VIDEO_BLUE_MASK_15_INT;
|
||||
r_mask = GST_VIDEO_COMP1_MASK_15_INT;
|
||||
g_mask = GST_VIDEO_COMP2_MASK_15_INT;
|
||||
b_mask = GST_VIDEO_COMP3_MASK_15_INT;
|
||||
endianness = G_BYTE_ORDER;
|
||||
depth = 15;
|
||||
bpp = 16;
|
||||
break;
|
||||
case XVID_CSP_RGB565:
|
||||
r_mask = GST_VIDEO_RED_MASK_16_INT;
|
||||
g_mask = GST_VIDEO_GREEN_MASK_16_INT;
|
||||
b_mask = GST_VIDEO_BLUE_MASK_16_INT;
|
||||
r_mask = GST_VIDEO_COMP1_MASK_16_INT;
|
||||
g_mask = GST_VIDEO_COMP2_MASK_16_INT;
|
||||
b_mask = GST_VIDEO_COMP3_MASK_16_INT;
|
||||
endianness = G_BYTE_ORDER;
|
||||
depth = 16;
|
||||
bpp = 16;
|
||||
|
|
Loading…
Reference in a new issue