Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
87466e4d
Commit
87466e4d
authored
Sep 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl/shm: print supported buffer formats to log
parent
8bf55dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
modules/video_output/wl/shm.c
modules/video_output/wl/shm.c
+22
-0
No files found.
modules/video_output/wl/shm.c
View file @
87466e4d
...
...
@@ -314,6 +314,25 @@ static int Control(vout_display_t *vd, int query, va_list ap)
return
VLC_SUCCESS
;
}
static
void
shm_format_cb
(
void
*
data
,
struct
wl_shm
*
shm
,
uint32_t
format
)
{
vout_display_t
*
vd
=
data
;
char
str
[
4
];
memcpy
(
str
,
&
format
,
sizeof
(
str
));
if
(
format
>=
0x20202020
)
msg_Dbg
(
vd
,
"format %.4s (0x%08"
PRIx32
")"
,
str
,
format
);
else
msg_Dbg
(
vd
,
"format %4"
PRIu32
" (0x%08"
PRIx32
")"
,
format
,
format
);
(
void
)
shm
;
}
static
const
struct
wl_shm_listener
shm_cbs
=
{
shm_format_cb
,
};
static
void
registry_global_cb
(
void
*
data
,
struct
wl_registry
*
registry
,
uint32_t
name
,
const
char
*
iface
,
uint32_t
vers
)
{
...
...
@@ -394,6 +413,9 @@ static int Open(vlc_object_t *obj)
if
(
sys
->
shm
==
NULL
)
goto
error
;
wl_shm_add_listener
(
sys
->
shm
,
&
shm_cbs
,
vd
);
wl_display_roundtrip_queue
(
display
,
sys
->
eventq
);
/* Determine our pixel format */
video_format_t
fmt_pic
;
...
...
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