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
3d1e2ada
Commit
3d1e2ada
authored
Dec 15, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/overlay: remove duplicated definition of ff_null_get_video_buffer()
Simplify.
parent
8f44170d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
vf_overlay.c
libavfilter/vf_overlay.c
+1
-6
No files found.
libavfilter/vf_overlay.c
View file @
3d1e2ada
...
...
@@ -284,11 +284,6 @@ static int config_output(AVFilterLink *outlink)
return
0
;
}
static
AVFilterBufferRef
*
get_video_buffer
(
AVFilterLink
*
link
,
int
perms
,
int
w
,
int
h
)
{
return
ff_get_video_buffer
(
link
->
dst
->
outputs
[
0
],
perms
,
w
,
h
);
}
// divide by 255 and round to nearest
// apply a fast variant: (X+127)/255 = ((X+127)*257+257)>>16 = ((X+128)*257)>>16
#define FAST_DIV255(x) ((((x) + 128) * 257) >> 16)
...
...
@@ -661,7 +656,7 @@ static const AVFilterPad avfilter_vf_overlay_inputs[] = {
{
.
name
=
"main"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
get_video_buffer
=
get_video_buffer
,
.
get_video_buffer
=
ff_null_
get_video_buffer
,
.
config_props
=
config_input_main
,
.
start_frame
=
start_frame_main
,
.
draw_slice
=
draw_slice_main
,
...
...
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