Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lyndon Brown
VLC
Commits
15be060c
Commit
15be060c
authored
3 years ago
by
Rémi Denis-Courmont
Committed by
Jean-Baptiste Kempf
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drm: check & match the RGB masks
Do not assume that the DRM format matches the display source.
parent
9be09307
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/video_output/drm/display.c
+4
-1
4 additions, 1 deletion
modules/video_output/drm/display.c
with
4 additions
and
1 deletion
modules/video_output/drm/display.c
+
4
−
1
View file @
15be060c
...
...
@@ -45,6 +45,7 @@
#include
<vlc_picture_pool.h>
#include
<vlc_fs.h>
#include
<vlc_vout_window.h>
#include
"vlc_drm.h"
#include
<assert.h>
...
...
@@ -378,8 +379,10 @@ static vlc_fourcc_t ChromaNegotiation(vout_display_t *vd)
* favor yuv format according to YUVFormat flag.
* check for exact match first, then YUVFormat and then !YUVFormat
*/
uint_fast32_t
drm_fourcc
=
vlc_drm_format
(
vd
->
source
);
for
(
c
=
i
=
0
;
c
<
ARRAY_SIZE
(
fourccmatching
);
c
++
)
{
if
(
fourccmatching
[
c
].
vlc
==
fourcc
)
{
if
(
fourccmatching
[
c
].
drm
==
drm_
fourcc
)
{
if
(
!
sys
->
forced_drm_fourcc
&&
fourccmatching
[
c
].
present
)
{
sys
->
drm_fourcc
=
fourccmatching
[
c
].
drm
;
sys
->
plane_id
=
fourccmatching
[
c
].
plane_id
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment