Go to the documentation of this file.
105 typedef struct Range {
117 static const Range nominal_range[] = {{{0, 1}, {4096, 65536}}, {{4096, 65536}, {60161, 65536}}, {{60161, 65536}, {1, 1}}};
118 static const Range preferred_range[] = {{{0, 1}, {1280, 65536}}, {{1280, 65536}, {62977, 65536}}, {{62977, 65536}, {1, 1}}};
119 static const Range total_range[] = {{{0, 1}, {256, 65536}}, {{256, 65536}, {65280, 65536}}, {{65280, 65536}, {1, 1}}};
120 static const Range spec1_range[] = {{{0, 1}, {16, 256}}, {{16, 256}, {236, 256}}, {{236, 256}, {256, 256}}};
121 static const Range spec2_range[] = {{{0, 1}, {16, 256}}, {{16, 256}, {22, 256}}, {{22, 256}, {226, 256}}, {{226, 256}, {236, 256}}, {{236, 256}, {256, 256}}};
123 static const Range highlights_range[] = {{{0,1}, {214,256}}, {{214, 256}, {224, 256}}, {{224, 256}, {256, 256}}};
125 static const Fill spec1_fills[] = {{{0.5f, 0.f, .5f, 1.f}}, {{-1.f, -1.f, -1.f, 1.f}}, {{1.f, 0.f, 0.f, 1.f}}};
126 static const Fill spec2_fills[] = {{{0.5f, 0.f, .5f, 1.f}}, {{0.f, 1.f, 1.f, 1.f}}, {{-1.f, -1.f, -1.f, 1.f}}, {{1.f, 1.f, 0.f, 1.f}}, {{1.f, 0.f, 0.f, 1.f}}};
128 static const Fill highlights_fills[] = {{{-1.f, -1.f, -1.f, 1.f}}, {{1.f, 0.3f, 0.6f, 1.f}}, {{1.f, 0.2f, .5f, 1.f}}};
137 return 0.5 * sin(x) + 0.5;
143 {-7.5631093e-16, 7.4289183e-13, -2.8525484e-10, 5.4446085e-08, -5.5596238e-06, 3.0569325e-04, -2.3137421e-03, 1.2152095e-02 },
144 { 1.3217636e-15, -1.2214648e-12, 4.4319712e-10, -8.0197993e-08, 7.6598370e-06, -3.6523704e-04, 8.4836670e-03, -2.5536888e-02 },
145 {-1.1446568e-15, 1.0013446e-12, -3.5651575e-10, 6.6775016e-08, -6.7120346e-06, 2.7346619e-04, 4.7969657e-03, 1.1971441e-02 },
148 {-3.9848859e-18, 9.4821649e-14, -6.7371977e-11, 1.8469937e-08, -2.5359307e-06, 1.7959053e-04, 3.9782564e-04, 2.8845935e-04 },
149 { 6.8408539e-16, -6.5499979e-13, 2.4562526e-10, -4.5989298e-08, 4.5723324e-06, -2.2111913e-04, 5.2023164e-03, -1.1226064e-02 },
150 {-2.9921470e-15, 2.5864165e-12, -8.7403799e-10, 1.4713388e-07, -1.2701505e-05, 4.5159935e-04, 3.1087989e-03, 1.9122831e-02 },
153 { 3.6196089e-16, -3.3623041e-13, 1.2324010e-10, -2.2769060e-08, 2.2297792e-06, -1.2567829e-04, 9.9791629e-03, 5.7247918e-02 },
154 { 5.0262888e-16, -5.3193896e-13, 2.2451715e-10, -4.7529623e-08, 5.1374873e-06, -2.3260136e-04, 3.1502825e-03, 1.5362491e-02 },
155 {-1.7782261e-16, 2.2487839e-13, -1.0610236e-10, 2.4112644e-08, -2.6331623e-06, 8.9499751e-05, 2.1386328e-03, 5.3824268e-01 },
158 { 9.4850045e-16, -8.6629383e-13, 3.0310944e-10, -5.1340396e-08, 4.6024275e-06, -2.2744239e-04, 4.5559993e-03, 2.5662350e-01 },
159 { 9.6461041e-17, -6.9209477e-14, 1.7625397e-11, -2.0229773e-09, 1.4900110e-07, -1.9315187e-05, 5.8967339e-03, 3.9544827e-03 },
160 { 5.1785449e-16, -3.6663004e-13, 1.0249990e-10, -1.5431998e-08, 1.5007941e-06, -1.2001502e-04, 7.6951526e-03, 3.2292815e-01 },
163 {-4.3683890e-15, 3.7020347e-12, -1.1712592e-09, 1.6401790e-07, -8.6842919e-06, -1.8542465e-06, 8.4485325e-03, 1.6267077e-01 },
164 {-4.0011069e-16, 2.7861423e-13, -6.3388921e-11, 5.8872238e-09, -5.4466522e-07, 1.8037114e-05, 1.0599869e-02, 7.6914696e-02 },
165 {-2.8242609e-15, 2.9234108e-12, -1.1726546e-09, 2.2552115e-07, -2.0059387e-05, 5.0595552e-04, 1.7714932e-02, 2.7271836e-01 },
168 {-9.5484131e-16, 9.6988184e-13, -4.0058766e-10, 8.5743924e-08, -9.9644797e-06, 5.9197908e-04, -1.0361579e-02, 3.3164429e-02 },
169 { 1.2731941e-17, -9.4238449e-15, 2.2808841e-12, -1.1548296e-10, -2.3888913e-08, 3.8986680e-06, 2.5879330e-03, 1.2769733e-01 },
170 { 4.6004608e-16, -5.0686849e-13, 2.2753449e-10, -5.3074099e-08, 6.7196096e-06, -4.4120020e-04, 1.3435551e-02, 2.8293355e-01 },
173 { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
174 { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
175 { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
177 .offset = { 0., -9., 9. },
180 { -1.6820e-15, 1.4982e-12, -5.0442e-10, 8.0490e-08, -6.1903e-06, 1.5821e-04, 6.4359e-03, 6.2887e-01 },
181 { 1.2526e-15, -1.2203e-12, 4.7013e-10, -8.9360e-08, 8.3839e-06, -3.6642e-04, 1.4784e-02, -9.8075e-03 },
182 { 1.4755e-15, -1.6765e-12, 7.3188e-10, -1.5522e-07, 1.6406e-05, -7.7883e-04, 1.4502e-02, 2.1597e-01 },
221 const uint8_t *
index,
const uint8_t *
src,
230 #define OFFSET(x) offsetof(PseudoColorContext, x)
231 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
291 static inline float lerpf(
float v0,
float v1,
float f)
293 return v0 + (v1 -
v0) *
f;
296 #define PCLIP(v, max, dst, src, x) \
297 if (v >= 0 && v <= max) { \
298 dst[x] = lerpf(src[x], v, opacity);\
304 const uint8_t *
index,
315 for (y = 0; y <
height; y++) {
316 for (x = 0; x <
width; x++) {
317 int v = lut[
index[x]];
328 const uint8_t *
index,
339 for (y = 0; y <
height; y++) {
340 for (x = 0; x <
width; x++) {
341 int v = lut[
index[(y << 1) * ilinesize + (x << 1)]];
351 const uint8_t *
index,
362 for (y = 0; y <
height; y++) {
363 for (x = 0; x <
width; x++) {
364 int v = lut[
index[(y >> 1) * ilinesize + (x >> 1)]];
374 const uint8_t *
index,
385 for (y = 0; y <
height; y++) {
386 for (x = 0; x <
width; x++) {
387 int v = lut[
index[x << 1]];
398 const uint8_t *
index,
409 for (y = 0; y <
height; y++) {
410 for (x = 0; x <
width; x++) {
411 int v = lut[
index[x >> 1]];
422 const uint8_t *iindex,
431 const uint16_t *
index = (
const uint16_t *)iindex;
432 const uint16_t *
src = (
const uint16_t *)ssrc;
433 uint16_t *dst = (uint16_t *)ddst;
436 for (y = 0; y <
height; y++) {
437 for (x = 0; x <
width; x++) {
438 int v = lut[
index[x]];
442 index += ilinesize / 2;
443 src += slinesize / 2;
444 dst += dlinesize / 2;
449 const uint8_t *iindex,
458 const uint16_t *
index = (
const uint16_t *)iindex;
459 const uint16_t *
src = (
const uint16_t *)ssrc;
460 uint16_t *dst = (uint16_t *)ddst;
463 for (y = 0; y <
height; y++) {
464 for (x = 0; x <
width; x++) {
465 int v = lut[
index[x << 1]];
469 index += ilinesize / 2;
470 src += slinesize / 2;
471 dst += dlinesize / 2;
476 const uint8_t *iindex,
485 const uint16_t *
index = (
const uint16_t *)iindex;
486 const uint16_t *
src = (
const uint16_t *)ssrc;
487 uint16_t *dst = (uint16_t *)ddst;
490 for (y = 0; y <
height; y++) {
491 for (x = 0; x <
width; x++) {
492 int v = lut[
index[x >> 1]];
496 index += ilinesize / 2;
497 src += slinesize / 2;
498 dst += dlinesize / 2;
503 const uint8_t *iindex,
512 const uint16_t *
index = (
const uint16_t *)iindex;
513 const uint16_t *
src = (
const uint16_t *)ssrc;
514 uint16_t *dst = (uint16_t *)ddst;
521 for (y = 0; y <
height; y++) {
522 for (x = 0; x <
width; x++) {
523 int v = lut[
index[(y << 1) * ilinesize + (x << 1)]];
533 const uint8_t *iindex,
542 const uint16_t *
index = (
const uint16_t *)iindex;
543 const uint16_t *
src = (
const uint16_t *)ssrc;
544 uint16_t *dst = (uint16_t *)ddst;
551 for (y = 0; y <
height; y++) {
552 for (x = 0; x <
width; x++) {
553 int v = lut[
index[(y >> 1) * ilinesize + (x >> 1)]];
562 #define RGB_TO_Y_BT709(r, g, b) \
563 ((0.21260*219.0/255.0) * (r) + (0.71520*219.0/255.0) * (g) + \
564 (0.07220*219.0/255.0) * (b))
566 #define RGB_TO_U_BT709(r1, g1, b1, max) \
567 (-(0.11457*224.0/255.0) * r1 - (0.38543*224.0/255.0) * g1 + \
568 (0.50000*224.0/255.0) * b1 + max * 0.5)
570 #define RGB_TO_V_BT709(r1, g1, b1, max) \
571 ((0.50000*224.0/255.0) * r1 - (0.45415*224.0/255.0) * g1 - \
572 (0.04585*224.0/255.0) * b1 + max * 0.5)
578 for (
int i = 0;
i < 8;
i++) {
579 res += pow(x,
i) * poly[7-
i];
593 depth =
desc->comp[0].depth;
594 s->max = (1 << depth) - 1;
597 if (
s->index >=
s->nb_planes) {
606 vsub =
desc->log2_chroma_h;
608 s->height[0] =
s->height[3] =
inlink->h;
610 s->width[0] =
s->width[3] =
inlink->w;
615 s->var_values[
VAR_YMIN] = 16 * (1 << (depth - 8));
616 s->var_values[
VAR_UMIN] = 16 * (1 << (depth - 8));
617 s->var_values[
VAR_VMIN] = 16 * (1 << (depth - 8));
619 s->var_values[
VAR_YMAX] = 235 * (1 << (depth - 8));
620 s->var_values[
VAR_UMAX] = 240 * (1 << (depth - 8));
621 s->var_values[
VAR_VMAX] = 240 * (1 << (depth - 8));
635 "Error when parsing the expression '%s' for the component %d and color %d.\n",
647 "Error when evaluating the expression '%s' for the value %d for the component %d.\n",
655 if (
s->preset >= 0) {
658 for (
int seg = 0; seg < nb_segments; seg++) {
664 for (
int i = start;
i < end;
i++) {
674 if (
g >= 0.
f &&
b >= 0.
f &&
r >= 0.
f) {
693 s->lut[3][
i] =
a *
s->max;
696 const double lf =
i / (
double)
s->max * 256.;
716 s->lut[3][
i] = 1.f *
s->max;
841 for (
int plane = 0; plane <
s->nb_planes; plane++) {
842 const int slice_start = (
s->height[plane] * jobnr) / nb_jobs;
843 const int slice_end = (
s->height[plane] * (jobnr+1)) / nb_jobs;
844 const int islice_start = (
s->height[
s->index] * jobnr) / nb_jobs;
845 ptrdiff_t ilinesize = in->
linesize[
s->index];
846 ptrdiff_t slinesize = in->
linesize[plane];
847 ptrdiff_t dlinesize =
out->linesize[plane];
848 const uint8_t *
index = in->
data[
s->index] + islice_start * ilinesize;
849 const uint8_t *
src = in->
data[plane] + slice_start * slinesize;
850 uint8_t *dst =
out->data[plane] + slice_start * dlinesize;
852 s->filter[plane](
s->max,
s->width[plane],
slice_end - slice_start,
853 index,
src, dst, ilinesize, slinesize,
854 dlinesize,
s->lut[plane],
s->opacity);
884 char *res,
int res_len,
int flags)
915 for (
i = 0;
i < 4;
i++) {
924 .
name =
"pseudocolor",
927 .priv_class = &pseudocolor_class,
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
#define AV_PIX_FMT_YUVA422P16
#define AV_PIX_FMT_GBRAP16
static void pseudocolor_filter_10(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
AVPixelFormat
Pixel format.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
static const Curve curves[]
#define u(width, name, range_min, range_max)
static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define FILTER_PIXFMTS_ARRAY(array)
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
static const Fill spec2_fills[]
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#define AV_PIX_FMT_YUVA422P9
This structure describes decoded (raw) audio or video data.
#define AV_PIX_FMT_YUVA420P16
static const Range spec1_range[]
#define AV_PIX_FMT_YUVA420P10
static double solarfun(double x)
#define AV_PIX_FMT_YUV420P10
static float lerpf(float v0, float v1, float f)
const char * name
Filter name.
A link between two filters.
#define AV_PIX_FMT_YUVA422P10
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static void pseudocolor_filter_16_10(int max, int width, int height, const uint8_t *iindex, const uint8_t *ssrc, uint8_t *ddst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
int av_expr_parse(AVExpr **expr, const char *s, const char *const *const_names, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), int log_offset, void *log_ctx)
Parse an expression.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_YUVA420P9
#define AV_PIX_FMT_GBRP14
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
static const Fill highlights_fills[]
static const Preset presets[]
#define AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_YUVA444P16
static void pseudocolor_filter_16(int max, int width, int height, const uint8_t *iindex, const uint8_t *ssrc, uint8_t *ddst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
static void pseudocolor_filter_16_11d(int max, int width, int height, const uint8_t *iindex, const uint8_t *ssrc, uint8_t *ddst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
#define AV_PIX_FMT_YUV422P9
static double val(void *priv, double ch)
@ AV_ROUND_UP
Round toward +infinity.
#define AV_PIX_FMT_GRAY16
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
A filter pad used for either input or output.
#define AV_PIX_FMT_YUV444P10
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_ARRAY_ELEMS(a)
#define AV_PIX_FMT_YUV422P16
#define AV_PIX_FMT_GBRAP10
int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width)
Fill plane linesizes for an image with pixel format pix_fmt and width width.
#define RGB_TO_Y_BT709(r, g, b)
#define AV_PIX_FMT_GBRAP12
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV444P16
#define AV_CEIL_RSHIFT(a, b)
#define RGB_TO_U_BT709(r1, g1, b1, max)
static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Handle slice ends.
static const Range nominal_range[]
static const Fill shadows_fills[]
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
Evaluate a previously parsed expression.
#define AV_PIX_FMT_GRAY14
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_INPUTS(array)
#define AV_PIX_FMT_GRAY10
static void pseudocolor_filter_10d(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
#define AV_PIX_FMT_GBRP16
static const Range shadows_range[]
Describe the class of an AVClass context structure.
static const AVFilterPad outputs[]
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
static void pseudocolor_filter_16_10d(int max, int width, int height, const uint8_t *iindex, const uint8_t *ssrc, uint8_t *ddst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
static const Range spec2_range[]
Rational number (pair of numerator and denominator).
static const char *const var_names[]
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static const Range total_range[]
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
#define RGB_TO_V_BT709(r1, g1, b1, max)
static const AVOption pseudocolor_options[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AV_PIX_FMT_FLAG_RGB
The pixel format contains RGB-like data (as opposed to YUV/grayscale).
#define AV_PIX_FMT_YUV422P12
#define PCLIP(v, max, dst, src, x)
static double poly_eval(const double *const poly, double x, curve_fun fun)
static const uint32_t color[16+AV_CLASS_CATEGORY_NB]
#define AV_PIX_FMT_YUV444P12
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
static void pseudocolor_filter(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
double(* curve_fun)(double x)
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
static const Range full_range
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define i(width, name, range_min, range_max)
int w
agreed upon image width
static av_cold void uninit(AVFilterContext *ctx)
#define AV_PIX_FMT_GBRP12
int ff_filter_get_nb_threads(AVFilterContext *ctx)
Get number of threads for current filter instance.
static void pseudocolor_filter_16_11(int max, int width, int height, const uint8_t *iindex, const uint8_t *ssrc, uint8_t *ddst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
Used for passing data between threads.
static void pseudocolor_filter_11(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
const char * name
Pad name.
static enum AVPixelFormat pix_fmts[]
static const AVFilterPad inputs[]
#define AV_PIX_FMT_YUV444P9
static double limit(double x)
static int config_input(AVFilterLink *inlink)
double var_values[VAR_VARS_NB]
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV422P14
static const Fill spec1_fills[]
const AVFilter ff_vf_pseudocolor
int h
agreed upon image height
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
AVFILTER_DEFINE_CLASS(pseudocolor)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
void(* filter[4])(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
#define FILTER_OUTPUTS(array)
static void pseudocolor_filter_11d(int max, int width, int height, const uint8_t *index, const uint8_t *src, uint8_t *dst, ptrdiff_t ilinesize, ptrdiff_t slinesize, ptrdiff_t dlinesize, float *lut, float opacity)
#define flags(name, subs,...)
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
static const SheerTable rgb[2]
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define AV_PIX_FMT_YUV444P14
static const Range preferred_range[]
#define AV_PIX_FMT_GRAY12
static av_always_inline int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
static const Range highlights_range[]
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
#define AV_PIX_FMT_YUV420P14