Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
dbcc7fad
Commit
dbcc7fad
authored
Oct 31, 2011
by
Rémi Denis-Courmont
Browse files
XCB/XVideo: cosmetic
parent
2ee87126
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/xcb/xvideo.c
View file @
dbcc7fad
...
...
@@ -131,7 +131,7 @@ static bool CheckXVideo (vout_display_t *vd, xcb_connection_t *conn)
return
ok
;
}
static
vlc_fourcc_t
ParseFormat
(
v
out_display_t
*
vd
,
static
vlc_fourcc_t
ParseFormat
(
v
lc_object_t
*
obj
,
const
xcb_xv_image_format_info_t
*
restrict
f
)
{
if
(
f
->
byte_order
!=
ORDER
&&
f
->
bpp
!=
8
)
...
...
@@ -175,9 +175,9 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd,
}
break
;
}
msg_Err
(
vd
,
"unknown XVideo RGB format %"
PRIx32
" (%.4s)"
,
msg_Err
(
obj
,
"unknown XVideo RGB format %"
PRIx32
" (%.4s)"
,
f
->
id
,
f
->
guid
);
msg_Dbg
(
vd
,
" %"
PRIu8
" planes, %"
PRIu8
" bits/pixel, "
msg_Dbg
(
obj
,
" %"
PRIu8
" planes, %"
PRIu8
" bits/pixel, "
"depth %"
PRIu8
,
f
->
num_planes
,
f
->
bpp
,
f
->
depth
);
break
;
...
...
@@ -223,16 +223,16 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd,
break
;
}
bad:
msg_Err
(
vd
,
"unknown XVideo YUV format %"
PRIx32
" (%.4s)"
,
f
->
id
,
msg_Err
(
obj
,
"unknown XVideo YUV format %"
PRIx32
" (%.4s)"
,
f
->
id
,
f
->
guid
);
msg_Dbg
(
vd
,
" %"
PRIu8
" planes, %"
PRIu32
" bits/pixel, "
msg_Dbg
(
obj
,
" %"
PRIu8
" planes, %"
PRIu32
" bits/pixel, "
"%"
PRIu32
"/%"
PRIu32
"/%"
PRIu32
" bits/sample"
,
f
->
num_planes
,
f
->
bpp
,
f
->
y_sample_bits
,
f
->
u_sample_bits
,
f
->
v_sample_bits
);
msg_Dbg
(
vd
,
" period: %"
PRIu32
"/%"
PRIu32
"/%"
PRIu32
"x"
msg_Dbg
(
obj
,
" period: %"
PRIu32
"/%"
PRIu32
"/%"
PRIu32
"x"
"%"
PRIu32
"/%"
PRIu32
"/%"
PRIu32
,
f
->
vhorz_y_period
,
f
->
vhorz_u_period
,
f
->
vhorz_v_period
,
f
->
vvert_y_period
,
f
->
vvert_u_period
,
f
->
vvert_v_period
);
msg_Warn
(
vd
,
" order: %.32s"
,
f
->
vcomp_order
);
msg_Warn
(
obj
,
" order: %.32s"
,
f
->
vcomp_order
);
break
;
}
return
0
;
...
...
@@ -253,7 +253,7 @@ FindFormat (vout_display_t *vd,
end
=
f
+
xcb_xv_list_image_formats_format_length
(
list
);
for
(;
f
<
end
;
f
++
)
{
if
(
chroma
!=
ParseFormat
(
vd
,
f
))
if
(
chroma
!=
ParseFormat
(
VLC_OBJECT
(
vd
)
,
f
))
continue
;
/* VLC pads scanline to 16 pixels internally */
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment