avfilter: add ciescope filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-02-01 21:05:16 +01:00
parent 8653d6e1a6
commit 256fa2ab1b
6 changed files with 1568 additions and 1 deletions

View File

@ -9,6 +9,7 @@ version <next>:
- firequalizer filter
- datascope filter
- bench and abench filters
- ciescope filter
version 3.0:

View File

@ -4553,6 +4553,61 @@ ffmpeg -f lavfi -i color=c=black:s=1280x720 -i video.mp4 -shortest -filter_compl
@end example
@end itemize
@section ciescope
Display CIE color diagram with pixels overlaid onto it.
The filter acccepts the following options:
@table @option
@item system
Set color system.
@table @samp
@item ntsc, 470m
@item ebu, 470bg
@item smpte
@item 240m
@item apple
@item widergb
@item cie1931
@item rec709, hdtv
@item uhdtv, rec2020
@end table
@item cie
Set CIE system.
@table @samp
@item xyy
@item ucs
@item luv
@end table
@item gamuts
Set what gamuts to draw.
See @code{system} option for avaiable values.
@item size, s
Set ciescope size, by default set to 512.
@item intensity, i
Set intensity used to map input pixel values to CIE diagram.
@item contrast
Set contrast used to draw tongue colors that are out of active color system gamut.
@item corrgamma
Correct gamma displayed on scope, by default enabled.
@item showwhite
Show white point on CIE diagram, by default disabled.
@item gamma
Set input gamma. Used only with XYZ input color space.
@end table
@section codecview
Visualize information exported by some codecs.

View File

@ -124,6 +124,7 @@ OBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o dualinput.o framesync
OBJS-$(CONFIG_BOXBLUR_FILTER) += vf_boxblur.o
OBJS-$(CONFIG_BWDIF_FILTER) += vf_bwdif.o
OBJS-$(CONFIG_CHROMAKEY_FILTER) += vf_chromakey.o
OBJS-$(CONFIG_CIESCOPE_FILTER) += vf_ciescope.o
OBJS-$(CONFIG_CODECVIEW_FILTER) += vf_codecview.o
OBJS-$(CONFIG_COLORBALANCE_FILTER) += vf_colorbalance.o
OBJS-$(CONFIG_COLORCHANNELMIXER_FILTER) += vf_colorchannelmixer.o

View File

@ -145,6 +145,7 @@ void avfilter_register_all(void)
REGISTER_FILTER(BOXBLUR, boxblur, vf);
REGISTER_FILTER(BWDIF, bwdif, vf);
REGISTER_FILTER(CHROMAKEY, chromakey, vf);
REGISTER_FILTER(CIESCOPE, ciescope, vf);
REGISTER_FILTER(CODECVIEW, codecview, vf);
REGISTER_FILTER(COLORBALANCE, colorbalance, vf);
REGISTER_FILTER(COLORCHANNELMIXER, colorchannelmixer, vf);

View File

@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 6
#define LIBAVFILTER_VERSION_MINOR 38
#define LIBAVFILTER_VERSION_MINOR 39
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \

1509
libavfilter/vf_ciescope.c Normal file

File diff suppressed because it is too large Load Diff