Skip to content
Snippets Groups Projects
Commit 24aa25bd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

vdpau/display: add ABGR

parent 7ea6ce34
No related branches found
No related tags found
1 merge request!2040vdpau/display: ABGR format
Pipeline #228879 passed with stage
in 14 minutes and 30 seconds
......@@ -455,17 +455,20 @@ static int Open(vout_display_t *vd,
VdpBool ok;
unsigned int n = 0;
#ifdef WORDS_BIGENDIAN
err = vdp_bitmap_surface_query_capabilities(sys->vdp, sys->device,
VDP_RGBA_FORMAT_R8G8B8A8,
&ok, &w, &h);
if (err == VDP_STATUS_OK && ok == VDP_TRUE)
#ifdef WORDS_BIGENDIAN
sys->spu_formats[n++] = VLC_CODEC_ABGR;
#else
sys->spu_formats[n++] = VLC_CODEC_RGBA;
#endif
if (n > 0) {
sys->spu_formats[n] = 0;
vd->info.subpicture_chromas = sys->spu_formats;
}
#endif
err = vdp_bitmap_surface_query_capabilities(sys->vdp, sys->device,
VDP_RGBA_FORMAT_B8G8R8A8,
&ok, &w, &h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment