Go to the documentation of this file.
  103 typedef struct Range {
 
  115 static const Range nominal_range[] = {{{0, 1}, {4096, 65536}}, {{4096, 65536}, {60161, 65536}}, {{60161, 65536}, {1, 1}}};
 
  116 static const Range preferred_range[] = {{{0, 1}, {1280, 65536}}, {{1280, 65536}, {62977, 65536}}, {{62977, 65536}, {1, 1}}};
 
  117 static const Range total_range[] = {{{0, 1}, {256, 65536}}, {{256, 65536}, {65280, 65536}}, {{65280, 65536}, {1, 1}}};
 
  118 static const Range spec1_range[] = {{{0, 1}, {16, 256}}, {{16, 256}, {236, 256}}, {{236, 256}, {256, 256}}};
 
  119 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}}};
 
  121 static const Range highlights_range[] = {{{0,1}, {214,256}}, {{214, 256}, {224, 256}}, {{224, 256}, {256, 256}}};
 
  123 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}}};
 
  124 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}}};
 
  126 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}}};
 
  135     return 0.5 * sin(x) + 0.5;
 
  141         {-7.5631093e-16,  7.4289183e-13, -2.8525484e-10,  5.4446085e-08, -5.5596238e-06,  3.0569325e-04, -2.3137421e-03,  1.2152095e-02 },
 
  142         { 1.3217636e-15, -1.2214648e-12,  4.4319712e-10, -8.0197993e-08,  7.6598370e-06, -3.6523704e-04,  8.4836670e-03, -2.5536888e-02 },
 
  143         {-1.1446568e-15,  1.0013446e-12, -3.5651575e-10,  6.6775016e-08, -6.7120346e-06,  2.7346619e-04,  4.7969657e-03,  1.1971441e-02 },
 
  146         {-3.9848859e-18,  9.4821649e-14, -6.7371977e-11,  1.8469937e-08, -2.5359307e-06,  1.7959053e-04,  3.9782564e-04,  2.8845935e-04 },
 
  147         { 6.8408539e-16, -6.5499979e-13,  2.4562526e-10, -4.5989298e-08,  4.5723324e-06, -2.2111913e-04,  5.2023164e-03, -1.1226064e-02 },
 
  148         {-2.9921470e-15,  2.5864165e-12, -8.7403799e-10,  1.4713388e-07, -1.2701505e-05,  4.5159935e-04,  3.1087989e-03,  1.9122831e-02 },
 
  151         { 3.6196089e-16, -3.3623041e-13,  1.2324010e-10, -2.2769060e-08,  2.2297792e-06, -1.2567829e-04,  9.9791629e-03,  5.7247918e-02 },
 
  152         { 5.0262888e-16, -5.3193896e-13,  2.2451715e-10, -4.7529623e-08,  5.1374873e-06, -2.3260136e-04,  3.1502825e-03,  1.5362491e-02 },
 
  153         {-1.7782261e-16,  2.2487839e-13, -1.0610236e-10,  2.4112644e-08, -2.6331623e-06,  8.9499751e-05,  2.1386328e-03,  5.3824268e-01 },
 
  156         { 9.4850045e-16, -8.6629383e-13,  3.0310944e-10, -5.1340396e-08,  4.6024275e-06, -2.2744239e-04,  4.5559993e-03,  2.5662350e-01 },
 
  157         { 9.6461041e-17, -6.9209477e-14,  1.7625397e-11, -2.0229773e-09,  1.4900110e-07, -1.9315187e-05,  5.8967339e-03,  3.9544827e-03 },
 
  158         { 5.1785449e-16, -3.6663004e-13,  1.0249990e-10, -1.5431998e-08,  1.5007941e-06, -1.2001502e-04,  7.6951526e-03,  3.2292815e-01 },
 
  161         {-4.3683890e-15,  3.7020347e-12, -1.1712592e-09,  1.6401790e-07, -8.6842919e-06, -1.8542465e-06,  8.4485325e-03,  1.6267077e-01 },
 
  162         {-4.0011069e-16,  2.7861423e-13, -6.3388921e-11,  5.8872238e-09, -5.4466522e-07,  1.8037114e-05,  1.0599869e-02,  7.6914696e-02 },
 
  163         {-2.8242609e-15,  2.9234108e-12, -1.1726546e-09,  2.2552115e-07, -2.0059387e-05,  5.0595552e-04,  1.7714932e-02,  2.7271836e-01 },
 
  166         {-9.5484131e-16,  9.6988184e-13, -4.0058766e-10,  8.5743924e-08, -9.9644797e-06,  5.9197908e-04, -1.0361579e-02,  3.3164429e-02 },
 
  167         { 1.2731941e-17, -9.4238449e-15,  2.2808841e-12, -1.1548296e-10, -2.3888913e-08,  3.8986680e-06,  2.5879330e-03,  1.2769733e-01 },
 
  168         { 4.6004608e-16, -5.0686849e-13,  2.2753449e-10, -5.3074099e-08,  6.7196096e-06, -4.4120020e-04,  1.3435551e-02,  2.8293355e-01 },
 
  171         { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
 
  172         { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
 
  173         { 0, 0, 0, 0, 0.000001983938313, -0.0007618323, 0.2, -
M_PI_2 },
 
  175     .offset = { 0., -9., 9. },
 
  213                       const uint8_t *
index, 
const uint8_t *
src,
 
  222 #define OFFSET(x) offsetof(PseudoColorContext, x) 
  223 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM 
  282 static inline float lerpf(
float v0, 
float v1, 
float f)
 
  284     return v0 + (v1 - 
v0) * 
f;
 
  287 #define PCLIP(v, max, dst, src, x) \ 
  288     if (v >= 0 && v <= max) {      \ 
  289         dst[x] = lerpf(src[x], v, opacity);\ 
  295                                const uint8_t *
index,
 
  306     for (y = 0; y < 
height; y++) {
 
  307         for (x = 0; x < 
width; x++) {
 
  308             int v = lut[
index[x]];
 
  319                                   const uint8_t *
index,
 
  330     for (y = 0; y < 
height; y++) {
 
  331         for (x = 0; x < 
width; x++) {
 
  332             int v = lut[
index[(y << 1) * ilinesize + (x << 1)]];
 
  342                                    const uint8_t *
index,
 
  353     for (y = 0; y < 
height; y++) {
 
  354         for (x = 0; x < 
width; x++) {
 
  355             int v = lut[
index[(y >> 1) * ilinesize + (x >> 1)]];
 
  365                                   const uint8_t *
index,
 
  376     for (y = 0; y < 
height; y++) {
 
  377         for (x = 0; x < 
width; x++) {
 
  378             int v = lut[
index[x << 1]];
 
  389                                    const uint8_t *
index,
 
  400     for (y = 0; y < 
height; y++) {
 
  401         for (x = 0; x < 
width; x++) {
 
  402             int v = lut[
index[x >> 1]];
 
  413                                   const uint8_t *iindex,
 
  422     const uint16_t *
index = (
const uint16_t *)iindex;
 
  423     const uint16_t *
src = (
const uint16_t *)ssrc;
 
  424     uint16_t *dst = (uint16_t *)ddst;
 
  427     for (y = 0; y < 
height; y++) {
 
  428         for (x = 0; x < 
width; x++) {
 
  429             int v = lut[
index[x]];
 
  433         index += ilinesize / 2;
 
  434         src += slinesize / 2;
 
  435         dst += dlinesize / 2;
 
  440                                      const uint8_t *iindex,
 
  449     const uint16_t *
index = (
const uint16_t *)iindex;
 
  450     const uint16_t *
src = (
const uint16_t *)ssrc;
 
  451     uint16_t *dst = (uint16_t *)ddst;
 
  454     for (y = 0; y < 
height; y++) {
 
  455         for (x = 0; x < 
width; x++) {
 
  456             int v = lut[
index[x << 1]];
 
  460         index += ilinesize / 2;
 
  461         src += slinesize / 2;
 
  462         dst += dlinesize / 2;
 
  467                                       const uint8_t *iindex,
 
  476     const uint16_t *
index = (
const uint16_t *)iindex;
 
  477     const uint16_t *
src = (
const uint16_t *)ssrc;
 
  478     uint16_t *dst = (uint16_t *)ddst;
 
  481     for (y = 0; y < 
height; y++) {
 
  482         for (x = 0; x < 
width; x++) {
 
  483             int v = lut[
index[x >> 1]];
 
  487         index += ilinesize / 2;
 
  488         src += slinesize / 2;
 
  489         dst += dlinesize / 2;
 
  494                                      const uint8_t *iindex,
 
  503     const uint16_t *
index = (
const uint16_t *)iindex;
 
  504     const uint16_t *
src = (
const uint16_t *)ssrc;
 
  505     uint16_t *dst = (uint16_t *)ddst;
 
  512     for (y = 0; y < 
height; y++) {
 
  513         for (x = 0; x < 
width; x++) {
 
  514             int v = lut[
index[(y << 1) * ilinesize + (x << 1)]];
 
  524                                       const uint8_t *iindex,
 
  533     const uint16_t *
index = (
const uint16_t *)iindex;
 
  534     const uint16_t *
src = (
const uint16_t *)ssrc;
 
  535     uint16_t *dst = (uint16_t *)ddst;
 
  542     for (y = 0; y < 
height; y++) {
 
  543         for (x = 0; x < 
width; x++) {
 
  544             int v = lut[
index[(y >> 1) * ilinesize + (x >> 1)]];
 
  553 #define RGB_TO_Y_BT709(r, g, b) \ 
  554 ((0.21260*219.0/255.0) * (r) + (0.71520*219.0/255.0) * (g) + \ 
  555  (0.07220*219.0/255.0) * (b)) 
  557 #define RGB_TO_U_BT709(r1, g1, b1, max) \ 
  558 (-(0.11457*224.0/255.0) * r1 - (0.38543*224.0/255.0) * g1 + \ 
  559     (0.50000*224.0/255.0) * b1 + max * 0.5) 
  561 #define RGB_TO_V_BT709(r1, g1, b1, max) \ 
  562 ((0.50000*224.0/255.0) * r1 - (0.45415*224.0/255.0) * g1 - \ 
  563    (0.04585*224.0/255.0) * b1 + max * 0.5) 
  569     for (
int i = 0; 
i < 8; 
i++) {
 
  570         res += pow(x, 
i) * poly[7-
i];
 
  584     depth = 
desc->comp[0].depth;
 
  585     s->max = (1 << depth) - 1;
 
  588     if (
s->index >= 
s->nb_planes) {
 
  597     vsub = 
desc->log2_chroma_h;
 
  599     s->height[0] = 
s->height[3] = 
inlink->h;
 
  601     s->width[0]  = 
s->width[3]  = 
inlink->w;
 
  606     s->var_values[
VAR_YMIN] = 16 * (1 << (depth - 8));
 
  607     s->var_values[
VAR_UMIN] = 16 * (1 << (depth - 8));
 
  608     s->var_values[
VAR_VMIN] = 16 * (1 << (depth - 8));
 
  610     s->var_values[
VAR_YMAX] = 235 * (1 << (depth - 8));
 
  611     s->var_values[
VAR_UMAX] = 240 * (1 << (depth - 8));
 
  612     s->var_values[
VAR_VMAX] = 240 * (1 << (depth - 8));
 
  626                    "Error when parsing the expression '%s' for the component %d and color %d.\n",
 
  638                        "Error when evaluating the expression '%s' for the value %d for the component %d.\n",
 
  646     if (
s->preset >= 0) {
 
  649         for (
int seg = 0; seg < nb_segments; seg++) {
 
  655             for (
int i = start; 
i < end; 
i++) {
 
  665                     if (
g >= 0.
f && 
b >= 0.
f && 
r >= 0.
f) {
 
  684                     s->lut[3][
i] = 
a * 
s->max;
 
  687                     const double lf = 
i / (
double)
s->max * 256.;
 
  707                     s->lut[3][
i] = 1.f * 
s->max;
 
  832     for (
int plane = 0; plane < 
s->nb_planes; plane++) {
 
  833         const int slice_start = (
s->height[plane] * jobnr) / nb_jobs;
 
  834         const int slice_end = (
s->height[plane] * (jobnr+1)) / nb_jobs;
 
  835         const int islice_start = (
s->height[
s->index] * jobnr) / nb_jobs;
 
  836         ptrdiff_t ilinesize = in->
linesize[
s->index];
 
  837         ptrdiff_t slinesize = in->
linesize[plane];
 
  838         ptrdiff_t dlinesize = 
out->linesize[plane];
 
  839         const uint8_t *
index = in->
data[
s->index] + islice_start * ilinesize;
 
  840         const uint8_t *
src = in->
data[plane] + slice_start * slinesize;
 
  841         uint8_t *dst = 
out->data[plane] + slice_start * dlinesize;
 
  843         s->filter[plane](
s->max, 
s->width[plane], 
slice_end - slice_start,
 
  844                          index, 
src, dst, ilinesize, slinesize,
 
  845                          dlinesize, 
s->lut[plane], 
s->opacity);
 
  875                            char *res, 
int res_len, 
int flags)
 
  906     for (
i = 0; 
i < 4; 
i++) {
 
  915     .
name          = 
"pseudocolor",
 
  918     .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