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
34753619
Commit
34753619
authored
Sep 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb-xv: fix YV12 again
Chrominance planes swap had been broken by the vout rework.
parent
584ce938
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+7
-0
No files found.
modules/video_output/xcb/xvideo.c
View file @
34753619
...
@@ -560,6 +560,13 @@ static picture_t *Get (vout_display_t *vd)
...
@@ -560,6 +560,13 @@ static picture_t *Get (vout_display_t *vd)
/* We assume that offsets[0] is zero */
/* We assume that offsets[0] is zero */
for
(
int
i
=
1
;
i
<
pic
->
i_planes
;
i
++
)
for
(
int
i
=
1
;
i
<
pic
->
i_planes
;
i
++
)
res
->
p
[
i
].
p_pixels
=
res
->
p
[
0
].
p_pixels
+
offsets
[
i
];
res
->
p
[
i
].
p_pixels
=
res
->
p
[
0
].
p_pixels
+
offsets
[
i
];
if
(
vd
->
fmt
.
i_chroma
==
VLC_CODEC_YV12
)
{
/* YVU: swap U and V planes */
uint8_t
*
buf
=
res
->
p
[
2
].
p_pixels
;
res
->
p
[
2
].
p_pixels
=
res
->
p
[
1
].
p_pixels
;
res
->
p
[
1
].
p_pixels
=
buf
;
}
pic_array
[
count
]
=
picture_NewFromResource
(
&
vd
->
fmt
,
res
);
pic_array
[
count
]
=
picture_NewFromResource
(
&
vd
->
fmt
,
res
);
if
(
!
pic_array
[
count
])
if
(
!
pic_array
[
count
])
{
{
...
...
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