43 #define OFFSET(x) offsetof(SetParamsContext, x)
44 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
65 {
"auto",
"keep the same color primaries", 0,
AV_OPT_TYPE_CONST, {.i64=-1}, INT_MIN, INT_MAX,
FLAGS,
"color_primaries"},
80 {
"auto",
"keep the same color transfer", 0,
AV_OPT_TYPE_CONST, {.i64=-1}, INT_MIN, INT_MAX,
FLAGS,
"color_trc"},
100 {
"auto",
"keep the same colorspace", 0,
AV_OPT_TYPE_CONST, {.i64=-1}, INT_MIN, INT_MAX,
FLAGS,
"colorspace"},
166 .description =
NULL_IF_CONFIG_SMALL(
"Force field, or color property for the output video frame."),
168 .priv_class = &setparams_class,
173 #if CONFIG_SETRANGE_FILTER
175 static const AVOption setrange_options[] = {
206 .
init = init_setrange,
207 .priv_class = &setrange_class,
213 #if CONFIG_SETFIELD_FILTER
214 static const AVOption setfield_options[] = {
240 .
init = init_setfield,
241 .priv_class = &setfield_class,
ITU-R BT2020 for 12-bit system.
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
This structure describes decoded (raw) audio or video data.
"Linear transfer characteristics"
Main libavfilter public API header.
static av_cold int init(AVCodecContext *avctx)
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 ...
SMPTE ST 432-1 (2010) / P3 D65 / Display P3.
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
SMPTE ST 431-2 (2011) / DCI P3.
order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB)
functionally identical to above
const char * name
Pad name.
static const AVOption setparams_options[]
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16.
also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM
int interlaced_frame
The content of the picture is interlaced.
static const AVFilterPad inputs[]
A filter pad used for either input or output.
A link between two filters.
also FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
ITU-R BT1361 Extended Colour Gamut.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
enum AVColorRange color_range
MPEG vs JPEG YUV range.
enum AVColorSpace colorspace
YUV colorspace type.
also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
SMPTE ST 428-1 (CIE 1931 XYZ)
SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems.
colour filters using Illuminant C
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
ITU-R BT2020 non-constant luminance system.
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
static const struct ColorPrimaries color_primaries[AVCOL_PRI_NB]
static const AVFilterPad outputs[]
FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
the normal 2^n-1 "JPEG" YUV ranges
also ITU-R BT601-6 525 or 625 / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC
functionally identical to above
Chromaticity-derived constant luminance system.
Chromaticity-derived non-constant luminance system.
Describe the class of an AVClass context structure.
"Logarithmic transfer characteristic (100 * Sqrt(10) : 1 range)"
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
the normal 219*2^(n-8) "MPEG" YUV ranges
ITU-R BT2020 constant luminance system.
IEC 61966-2-1 (sRGB or sYCC)
ARIB STD-B67, known as "Hybrid log-gamma".
int top_field_first
If the content is interlaced, is top field displayed first.
AVFilterContext * dst
dest filter
enum AVColorPrimaries color_primaries
ITU-R BT2020 for 10-bit system.
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
enum AVColorTransferCharacteristic color_trc
AVFILTER_DEFINE_CLASS(setparams)
"Logarithmic transfer characteristic (100:1 range)"