Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
440
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
e7d0535a
Commit
e7d0535a
authored
1 year ago
by
Steve Lhomme
Browse files
Options
Downloads
Patches
Plain Diff
vpx: use plane_CopyPixels to copy pixels
parent
0d817af3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#321057
passed with stage
in 42 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/codec/vpx.c
+4
-11
4 additions, 11 deletions
modules/codec/vpx.c
with
4 additions
and
11 deletions
modules/codec/vpx.c
+
4
−
11
View file @
e7d0535a
...
...
@@ -273,17 +273,10 @@ static int Decode(decoder_t *dec, block_t *block)
return
VLCDEC_SUCCESS
;
for
(
int
plane
=
0
;
plane
<
pic
->
i_planes
;
plane
++
)
{
uint8_t
*
src
=
img
->
planes
[
plane
];
uint8_t
*
dst
=
pic
->
p
[
plane
].
p_pixels
;
int
src_stride
=
img
->
stride
[
plane
];
int
dst_stride
=
pic
->
p
[
plane
].
i_pitch
;
int
size
=
__MIN
(
src_stride
,
dst_stride
);
for
(
int
line
=
0
;
line
<
pic
->
p
[
plane
].
i_visible_lines
;
line
++
)
{
memcpy
(
dst
,
src
,
size
);
src
+=
src_stride
;
dst
+=
dst_stride
;
}
plane_t
src_plane
=
pic
->
p
[
plane
];
src_plane
.
p_pixels
=
img
->
planes
[
plane
];
src_plane
.
i_pitch
=
img
->
stride
[
plane
];
plane_CopyPixels
(
&
pic
->
p
[
plane
],
&
src_plane
);
}
pic
->
b_progressive
=
true
;
/* codec does not support interlacing */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment