Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
bad101ba
Commit
bad101ba
authored
May 07, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/XVideo: fix images with a planar format but without MIT-SHM
parent
14670f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+4
-3
No files found.
modules/video_output/xcb/xvideo.c
View file @
bad101ba
...
...
@@ -79,6 +79,7 @@ struct vout_sys_t
uint32_t
id
;
/* XVideo format */
uint16_t
width
;
/* display width */
uint16_t
height
;
/* display height */
uint32_t
data_size
;
/* picture byte size (for non-SHM) */
bool
shm
;
/* whether to use MIT-SHM */
};
...
...
@@ -443,6 +444,7 @@ static int Init (vout_thread_t *vout)
const
uint32_t
*
offsets
;
found_adaptor:
offsets
=
xcb_xv_query_image_attributes_offsets
(
att
);
p_sys
->
data_size
=
att
->
data_size
;
I_OUTPUTPICTURES
=
0
;
for
(
size_t
index
=
0
;
I_OUTPUTPICTURES
<
2
;
index
++
)
...
...
@@ -537,9 +539,8 @@ static void Display (vout_thread_t *vout, picture_t *pic)
pic
->
p
->
i_visible_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_visible_lines
,
0
,
0
,
p_sys
->
width
,
p_sys
->
height
,
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_lines
,
pic
->
p
->
i_pitch
*
pic
->
p
->
i_lines
,
pic
->
p
->
p_pixels
);
vout
->
fmt_out
.
i_width
,
vout
->
fmt_out
.
i_height
,
p_sys
->
data_size
,
pic
->
p
->
p_pixels
);
xcb_flush
(
p_sys
->
conn
);
}
...
...
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