Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
24aa25bd by Rémi Denis-Courmont at 2022-06-07T11:44:04+00:00
vdpau/display: add ABGR

- - - - -


1 changed file:

- modules/hw/vdpau/display.c


Changes:

=====================================
modules/hw/vdpau/display.c
=====================================
@@ -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);



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/24aa25bdeec2c2f600d418450550456b295bcb4f

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/24aa25bdeec2c2f600d418450550456b295bcb4f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to