Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d6b9f2b7
Commit
d6b9f2b7
authored
Apr 10, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_alphamerge: use av_image_copy_plane()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
ed9b25a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vf_alphamerge.c
libavfilter/vf_alphamerge.c
+4
-6
No files found.
libavfilter/vf_alphamerge.c
View file @
d6b9f2b7
...
...
@@ -25,6 +25,7 @@
#include <string.h>
#include "libavutil/imgutils.h"
#include "libavutil/pixfmt.h"
#include "avfilter.h"
#include "bufferqueue.h"
...
...
@@ -129,14 +130,11 @@ static void draw_frame(AVFilterContext *ctx,
}
}
}
else
{
int
y
;
const
int
main_linesize
=
main_buf
->
linesize
[
A
];
const
int
alpha_linesize
=
alpha_buf
->
linesize
[
Y
];
for
(
y
=
0
;
y
<
h
&&
y
<
alpha_buf
->
height
;
y
++
)
{
memcpy
(
main_buf
->
data
[
A
]
+
y
*
main_linesize
,
alpha_buf
->
data
[
Y
]
+
y
*
alpha_linesize
,
FFMIN
(
main_linesize
,
alpha_linesize
));
}
av_image_copy_plane
(
main_buf
->
data
[
A
],
main_linesize
,
alpha_buf
->
data
[
Y
],
alpha_linesize
,
FFMIN
(
main_linesize
,
alpha_linesize
),
alpha_buf
->
height
);
}
}
...
...
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