Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gst-plugins-bad
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
Nicolas Dufresne
gst-plugins-bad
Commits
501abe19
Commit
501abe19
authored
6 years ago
by
Nicolas Dufresne
Browse files
Options
Downloads
Patches
Plain Diff
kmssink: Add 24bit RGB support
https://bugzilla.gnome.org/show_bug.cgi?id=794186
parent
49184308
No related branches found
Branches containing commit
Tags
1.8.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/kms/gstkmsutils.c
+8
-0
8 additions, 0 deletions
sys/kms/gstkmsutils.c
with
8 additions
and
0 deletions
sys/kms/gstkmsutils.c
+
8
−
0
View file @
501abe19
...
...
@@ -47,11 +47,15 @@ static const struct
DEF_FMT
(
XRGB8888
,
BGRx
),
DEF_FMT
(
ABGR8888
,
RGBA
),
DEF_FMT
(
XBGR8888
,
RGBx
),
DEF_FMT
(
BGR888
,
RGB
),
DEF_FMT
(
RGB888
,
BGR
),
#else
DEF_FMT
(
ARGB8888
,
ARGB
),
DEF_FMT
(
XRGB8888
,
xRGB
),
DEF_FMT
(
ABGR8888
,
ABGR
),
DEF_FMT
(
XBGR8888
,
xBGR
),
DEF_FMT
(
RGB888
,
RGB
),
DEF_FMT
(
BGR888
,
BGR
),
#endif
DEF_FMT
(
UYVY
,
UYVY
),
DEF_FMT
(
YUYV
,
YUY2
),
...
...
@@ -112,6 +116,10 @@ gst_drm_bpp_from_drm (guint32 drmfmt)
case
DRM_FORMAT_YVYU
:
bpp
=
16
;
break
;
case
DRM_FORMAT_BGR888
:
case
DRM_FORMAT_RGB888
:
bpp
=
24
;
break
;
default:
bpp
=
32
;
break
;
...
...
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