Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b2c81de9
Commit
b2c81de9
authored
May 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau/display: fix blending on big-endian platforms (untested)
parent
ec62f4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/hw/vdpau/display.c
modules/hw/vdpau/display.c
+9
-1
No files found.
modules/hw/vdpau/display.c
View file @
b2c81de9
...
...
@@ -171,7 +171,11 @@ static void RenderRegion(vout_display_t *vd, VdpOutputSurface target,
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
VdpBitmapSurface
surface
;
VdpRGBAFormat
fmt
=
VDP_RGBA_FORMAT_R8G8B8A8
;
/* TODO? YUVA */
#ifdef WORDS_BIGENDIAN
VdpRGBAFormat
fmt
=
VDP_RGBA_FORMAT_B8G8R8A8
;
#else
VdpRGBAFormat
fmt
=
VDP_RGBA_FORMAT_R8G8B8A8
;
#endif
VdpStatus
err
;
/* Create GPU surface for sub-picture */
...
...
@@ -612,7 +616,11 @@ static int Open(vlc_object_t *obj)
/* Check bitmap capabilities (for SPU) */
const
vlc_fourcc_t
*
spu_chromas
=
NULL
;
{
#ifdef WORDS_BIGENDIAN
static
const
vlc_fourcc_t
subpicture_chromas
[]
=
{
VLC_CODEC_ARGB
,
0
};
#else
static
const
vlc_fourcc_t
subpicture_chromas
[]
=
{
VLC_CODEC_RGBA
,
0
};
#endif
uint32_t
w
,
h
;
VdpBool
ok
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment