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
cc43c2f2
Commit
cc43c2f2
authored
Dec 26, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add thistogram video filter
parent
755ad01d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
166 additions
and
25 deletions
+166
-25
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+50
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+2
-2
vf_histogram.c
libavfilter/vf_histogram.c
+111
-23
No files found.
Changelog
View file @
cc43c2f2
...
...
@@ -28,6 +28,7 @@ version <next>:
- mvdv decoder
- mvha decoder
- MPEG-H 3D Audio support in mp4
- thistogram filter
version 4.2:
...
...
doc/filters.texi
View file @
cc43c2f2
...
...
@@ -11694,6 +11694,7 @@ the histogram. Possible values are @code{none}, @code{weak} or
@
code
{
strong
}.
It
defaults
to
@
code
{
none
}.
@
end
table
@
anchor
{
histogram
}
@
section
histogram
Compute
and
draw
a
color
distribution
histogram
for
the
input
video
.
...
...
@@ -17745,6 +17746,55 @@ PAL output (25i):
16p: 33333334
@end example
@section thistogram
Compute and draw a color distribution histogram for the input video across time.
Unlike @ref{histogram} video filter which only shows histogram of single input frame
at certain time, this filter shows also past histograms of number of frames defined
by @code{width} option.
The computed histogram is a representation of the color component
distribution in an image.
The filter accepts the following options:
@table @option
@item width, w
Set width of single color component output. Default value is @code{0}.
Value of @code{0} means width will be picked from input video.
This also set number of passed histograms to keep.
Allowed range is [0, 8192].
@item display_mode, d
Set display mode.
It accepts the following values:
@table @samp
@item stack
Per color component graphs are placed below each other.
@item parade
Per color component graphs are placed side by side.
@item overlay
Presents information identical to that in the @code{parade}, except
that the graphs representing color components are superimposed directly
over one another.
@end table
Default is @code{stack}.
@item levels_mode, m
Set mode. Can be either @code{linear}, or @code{logarithmic}.
Default is @code{linear}.
@item components, c
Set what color components to display.
Default is @code{7}.
@item bgopacity, b
Set background opacity. Default is @code{0.5}.
@end table
@section threshold
Apply threshold effect to video stream.
...
...
libavfilter/Makefile
View file @
cc43c2f2
...
...
@@ -401,6 +401,7 @@ OBJS-$(CONFIG_SWAPRECT_FILTER) += vf_swaprect.o
OBJS-$(CONFIG_SWAPUV_FILTER)
+=
vf_swapuv.o
OBJS-$(CONFIG_TBLEND_FILTER)
+=
vf_blend.o
framesync.o
OBJS-$(CONFIG_TELECINE_FILTER)
+=
vf_telecine.o
OBJS-$(CONFIG_THISTOGRAM_FILTER)
+=
vf_histogram.o
OBJS-$(CONFIG_THRESHOLD_FILTER)
+=
vf_threshold.o
framesync.o
OBJS-$(CONFIG_THUMBNAIL_FILTER)
+=
vf_thumbnail.o
OBJS-$(CONFIG_THUMBNAIL_CUDA_FILTER)
+=
vf_thumbnail_cuda.o
vf_thumbnail_cuda.ptx.o
...
...
libavfilter/allfilters.c
View file @
cc43c2f2
...
...
@@ -382,6 +382,7 @@ extern AVFilter ff_vf_swaprect;
extern
AVFilter
ff_vf_swapuv
;
extern
AVFilter
ff_vf_tblend
;
extern
AVFilter
ff_vf_telecine
;
extern
AVFilter
ff_vf_thistogram
;
extern
AVFilter
ff_vf_threshold
;
extern
AVFilter
ff_vf_thumbnail
;
extern
AVFilter
ff_vf_thumbnail_cuda
;
...
...
libavfilter/version.h
View file @
cc43c2f2
...
...
@@ -30,8 +30,8 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR
69
#define LIBAVFILTER_VERSION_MICRO 10
1
#define LIBAVFILTER_VERSION_MINOR
70
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
...
...
libavfilter/vf_histogram.c
View file @
cc43c2f2
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