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
dbcc7fad
Commit
dbcc7fad
authored
Oct 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/XVideo: cosmetic
parent
2ee87126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+8
-8
No files found.
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
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