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
841df7bf
Commit
841df7bf
authored
Jun 03, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: port sab filter from libmpcodecs
parent
08041711
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
380 additions
and
2 deletions
+380
-2
LICENSE
LICENSE
+1
-0
configure
configure
+1
-0
filters.texi
doc/filters.texi
+36
-0
Makefile
libavfilter/Makefile
+2
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+2
-2
vf_sab.c
libavfilter/vf_sab.c
+337
-0
No files found.
LICENSE
View file @
841df7bf
...
@@ -40,6 +40,7 @@ Specifically, the GPL parts of FFmpeg are
...
@@ -40,6 +40,7 @@ Specifically, the GPL parts of FFmpeg are
- vf_noise.c
- vf_noise.c
- vf_owdenoise.c
- vf_owdenoise.c
- vf_pp.c
- vf_pp.c
- vf_sab.c
- vf_smartblur.c
- vf_smartblur.c
- vf_stereo3d.c
- vf_stereo3d.c
- vf_super2xsai.c
- vf_super2xsai.c
...
...
configure
View file @
841df7bf
...
@@ -2168,6 +2168,7 @@ owdenoise_filter_deps="gpl"
...
@@ -2168,6 +2168,7 @@ owdenoise_filter_deps="gpl"
pan_filter_deps
=
"swresample"
pan_filter_deps
=
"swresample"
pp_filter_deps
=
"gpl postproc"
pp_filter_deps
=
"gpl postproc"
removelogo_filter_deps
=
"avcodec avformat swscale"
removelogo_filter_deps
=
"avcodec avformat swscale"
sab_filter_deps
=
"gpl swscale"
scale_filter_deps
=
"swscale"
scale_filter_deps
=
"swscale"
smartblur_filter_deps
=
"gpl swscale"
smartblur_filter_deps
=
"gpl swscale"
showspectrum_filter_deps
=
"avcodec rdft"
showspectrum_filter_deps
=
"avcodec rdft"
...
...
doc/filters.texi
View file @
841df7bf
...
@@ -5772,6 +5772,42 @@ much, but it will increase the amount of blurring needed to cover over
...
@@ -5772,6 +5772,42 @@ much, but it will increase the amount of blurring needed to cover over
the image and will destroy more information than necessary, and extra
the image and will destroy more information than necessary, and extra
pixels will slow things down on a large logo.
pixels will slow things down on a large logo.
@section sab
Apply Shape Adaptive Blur.
The filter accepts the following options:
@table @option
@item luma_radius, lr
Set luma blur filter strength, must be a value in range 0.1-4.0, default
value is 1.0. A greater value will result in a more blurred image, and
in slower processing.
@item luma_pre_filter_radius, lpfr
Set luma pre-filter radius, must be a value in the 0.1-2.0 range, default
value is 1.0.
@item luma_strength, ls
Set luma maximum difference between pixels to still be considered, must
be a value in the 0.1-100.0 range, default value is 1.0.
@item chroma_radius, cr
Set chroma blur filter strength, must be a value in range 0.1-4.0. A
greater value will result in a more blurred image, and in slower
processing.
@item chroma_pre_filter_radius, cpfr
Set chroma pre-filter radius, must be a value in the 0.1-2.0 range.
@item chroma_strength, cs
Set chroma maximum difference between pixels to still be considered,
must be a value in the 0.1-100.0 range.
@end table
Each chroma option value, if not explicitly specified, is set to the
corresponding luma option value.
@section scale
@section scale
Scale (resize) the input video, using the libswscale library.
Scale (resize) the input video, using the libswscale library.
...
...
libavfilter/Makefile
View file @
841df7bf
...
@@ -16,6 +16,7 @@ FFLIBS-$(CONFIG_PAN_FILTER) += swresample
...
@@ -16,6 +16,7 @@ FFLIBS-$(CONFIG_PAN_FILTER) += swresample
FFLIBS-$(CONFIG_PP_FILTER)
+=
postproc
FFLIBS-$(CONFIG_PP_FILTER)
+=
postproc
FFLIBS-$(CONFIG_REMOVELOGO_FILTER)
+=
avformat
avcodec
swscale
FFLIBS-$(CONFIG_REMOVELOGO_FILTER)
+=
avformat
avcodec
swscale
FFLIBS-$(CONFIG_RESAMPLE_FILTER)
+=
avresample
FFLIBS-$(CONFIG_RESAMPLE_FILTER)
+=
avresample
FFLIBS-$(CONFIG_SAB_FILTER)
+=
swscale
FFLIBS-$(CONFIG_SCALE_FILTER)
+=
swscale
FFLIBS-$(CONFIG_SCALE_FILTER)
+=
swscale
FFLIBS-$(CONFIG_SHOWSPECTRUM_FILTER)
+=
avcodec
FFLIBS-$(CONFIG_SHOWSPECTRUM_FILTER)
+=
avcodec
FFLIBS-$(CONFIG_SMARTBLUR_FILTER)
+=
swscale
FFLIBS-$(CONFIG_SMARTBLUR_FILTER)
+=
swscale
...
@@ -168,6 +169,7 @@ OBJS-$(CONFIG_PIXDESCTEST_FILTER) += vf_pixdesctest.o
...
@@ -168,6 +169,7 @@ OBJS-$(CONFIG_PIXDESCTEST_FILTER) += vf_pixdesctest.o
OBJS-$(CONFIG_PP_FILTER)
+=
vf_pp.o
OBJS-$(CONFIG_PP_FILTER)
+=
vf_pp.o
OBJS-$(CONFIG_REMOVELOGO_FILTER)
+=
bbox.o
lswsutils.o
lavfutils.o
vf_removelogo.o
OBJS-$(CONFIG_REMOVELOGO_FILTER)
+=
bbox.o
lswsutils.o
lavfutils.o
vf_removelogo.o
OBJS-$(CONFIG_SEPARATEFIELDS_FILTER)
+=
vf_separatefields.o
OBJS-$(CONFIG_SEPARATEFIELDS_FILTER)
+=
vf_separatefields.o
OBJS-$(CONFIG_SAB_FILTER)
+=
vf_sab.o
OBJS-$(CONFIG_SCALE_FILTER)
+=
vf_scale.o
OBJS-$(CONFIG_SCALE_FILTER)
+=
vf_scale.o
OBJS-$(CONFIG_SELECT_FILTER)
+=
f_select.o
OBJS-$(CONFIG_SELECT_FILTER)
+=
f_select.o
OBJS-$(CONFIG_SENDCMD_FILTER)
+=
f_sendcmd.o
OBJS-$(CONFIG_SENDCMD_FILTER)
+=
f_sendcmd.o
...
...
libavfilter/allfilters.c
View file @
841df7bf
...
@@ -163,6 +163,7 @@ void avfilter_register_all(void)
...
@@ -163,6 +163,7 @@ void avfilter_register_all(void)
REGISTER_FILTER
(
PIXDESCTEST
,
pixdesctest
,
vf
);
REGISTER_FILTER
(
PIXDESCTEST
,
pixdesctest
,
vf
);
REGISTER_FILTER
(
PP
,
pp
,
vf
);
REGISTER_FILTER
(
PP
,
pp
,
vf
);
REGISTER_FILTER
(
REMOVELOGO
,
removelogo
,
vf
);
REGISTER_FILTER
(
REMOVELOGO
,
removelogo
,
vf
);
REGISTER_FILTER
(
SAB
,
sab
,
vf
);
REGISTER_FILTER
(
SCALE
,
scale
,
vf
);
REGISTER_FILTER
(
SCALE
,
scale
,
vf
);
REGISTER_FILTER
(
SELECT
,
select
,
vf
);
REGISTER_FILTER
(
SELECT
,
select
,
vf
);
REGISTER_FILTER
(
SENDCMD
,
sendcmd
,
vf
);
REGISTER_FILTER
(
SENDCMD
,
sendcmd
,
vf
);
...
...
libavfilter/version.h
View file @
841df7bf
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
#include "libavutil/avutil.h"
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 7
4
#define LIBAVFILTER_VERSION_MINOR 7
5
#define LIBAVFILTER_VERSION_MICRO 10
1
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
libavfilter/vf_sab.c
0 → 100644
View file @
841df7bf
This diff is collapsed.
Click to expand it.
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