Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
202c1123
Commit
202c1123
authored
Mar 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yuv: deal with crop (fixes #9160)
parent
577f6f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/video_output/yuv.c
modules/video_output/yuv.c
+9
-2
No files found.
modules/video_output/yuv.c
View file @
202c1123
...
...
@@ -247,12 +247,19 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
fprintf
(
sys
->
f
,
"FRAME
\n
"
);
for
(
int
i
=
0
;
i
<
picture
->
i_planes
;
i
++
)
{
const
plane_t
*
plane
=
&
picture
->
p
[
i
];
const
uint8_t
*
pixels
=
plane
->
p_pixels
;
pixels
+=
(
vd
->
fmt
.
i_x_offset
*
plane
->
i_visible_pitch
)
/
vd
->
fmt
.
i_visible_height
;
for
(
int
y
=
0
;
y
<
plane
->
i_visible_lines
;
y
++
)
{
const
size_t
written
=
fwrite
(
&
plane
->
p_pixels
[
y
*
plane
->
i_pitch
]
,
1
,
plane
->
i_visible_pitch
,
sys
->
f
);
const
size_t
written
=
fwrite
(
pixels
,
1
,
plane
->
i_visible_pitch
,
sys
->
f
);
if
(
written
!=
(
size_t
)
plane
->
i_visible_pitch
)
msg_Warn
(
vd
,
"only %zd of %d bytes written"
,
written
,
plane
->
i_visible_pitch
);
pixels
+=
plane
->
i_pitch
;
}
}
fflush
(
sys
->
f
);
...
...
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