Go to the source code of this file.
|
enum | var_name {
VAR_CH,
VAR_N,
VAR_NB_IN_CHANNELS,
VAR_NB_OUT_CHANNELS,
VAR_T,
VAR_S,
VAR_VARS_NB,
VAR_W,
VAR_H,
VAR_CW,
VAR_CH,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_VALUE1,
VAR_VALUE2,
VAR_VARS_NB,
VAR_TB,
VAR_PTS,
VAR_START_PTS,
VAR_PREV_PTS,
VAR_PREV_SELECTED_PTS,
VAR_T,
VAR_START_T,
VAR_PREV_T,
VAR_PREV_SELECTED_T,
VAR_PICT_TYPE,
VAR_I,
VAR_P,
VAR_B,
VAR_S,
VAR_SI,
VAR_SP,
VAR_BI,
VAR_PICT_TYPE_I,
VAR_PICT_TYPE_P,
VAR_PICT_TYPE_B,
VAR_PICT_TYPE_S,
VAR_PICT_TYPE_SI,
VAR_PICT_TYPE_SP,
VAR_PICT_TYPE_BI,
VAR_INTERLACE_TYPE,
VAR_INTERLACE_TYPE_P,
VAR_INTERLACE_TYPE_T,
VAR_INTERLACE_TYPE_B,
VAR_CONSUMED_SAMPLES_N,
VAR_SAMPLES_N,
VAR_SAMPLE_RATE,
VAR_N,
VAR_SELECTED_N,
VAR_PREV_SELECTED_N,
VAR_KEY,
VAR_POS,
VAR_SCENE,
VAR_CONCATDEC_SELECT,
VAR_VARS_NB,
VAR_PI,
VAR_PHI,
VAR_E,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_A,
VAR_SAR,
VAR_DAR,
VAR_HSUB,
VAR_VSUB,
VAR_OHSUB,
VAR_OVSUB,
VARS_NB,
VAR_FRAME_RATE,
VAR_INTERLACED,
VAR_N,
VAR_NB_CONSUMED_SAMPLES,
VAR_NB_SAMPLES,
VAR_POS,
VAR_PREV_INPTS,
VAR_PREV_INT,
VAR_PREV_OUTPTS,
VAR_PREV_OUTT,
VAR_PTS,
VAR_SAMPLE_RAT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H,
CW,
CH,
CX,
CY,
VAR_VARS_NB,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_IN,
VAR_ON,
VAR_DURATION,
VAR_PDURATION,
VAR_TIME,
VAR_FRAME,
VAR_ZOOM,
VAR_PZOOM,
VAR_X,
VAR_PX,
VAR_Y,
VAR_PY,
VAR_A,
VAR_SAR,
VAR_DAR,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_A,
VAR_SAR,
VAR_DAR,
VAR_HSUB,
VAR_VSUB,
VAR_OHSUB,
VAR_OVSUB,
VARS_NB,
VAR_X,
VAR_Y,
VAR_W,
VAR_H,
VAR_TIME,
VAR_SPEED,
VAR_TEMPO,
VAR_ORDER,
VAR_PATTERN,
VAR_ROW,
VAR_VARS_NB
} |
|
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static double | clip (void *opaque, double val) |
| Clip value val in the minval - maxval range. More...
|
|
static double | compute_gammaval (void *opaque, double gamma) |
| Compute gamma correction for value val, assuming the minval-maxval range, val is clipped to a value contained in the same interval. More...
|
|
static double | compute_gammaval709 (void *opaque, double gamma) |
| Compute ITU Rec.709 gamma correction of value val. More...
|
|
static int | config_props (AVFilterLink *inlink) |
|
static int | lut_packed_16bits (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | lut_packed_8bits (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | lut_planar_16bits (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | lut_planar_8bits (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
Compute a look-up table for binding the input value to the output value, and apply it to input video.
Definition in file vf_lut.c.
◆ OFFSET
◆ FLAGS
◆ YUV_FORMATS
◆ RGB_FORMATS
Value:
AV_PIX_FMT_GBRAP10LE, \
AV_PIX_FMT_GBRAP16LE
Definition at line 126 of file vf_lut.c.
◆ GRAY_FORMATS
◆ LOAD_PACKED_COMMON
#define LOAD_PACKED_COMMON |
Value:
\
const uint16_t (*
tab)[256*256] = (
const uint16_t (*)[256*256])
s->lut;\
const int step =
s->step;\
\
const int slice_start = (
h * jobnr ) / nb_jobs;\
Definition at line 348 of file vf_lut.c.
◆ LOAD_PLANAR_COMMON
#define LOAD_PLANAR_COMMON |
◆ PLANAR_COMMON
Value:
\
const
int slice_start = (
h * jobnr ) / nb_jobs;\
Definition at line 436 of file vf_lut.c.
◆ PACKED_THREAD_DATA
#define PACKED_THREAD_DATA |
◆ PLANAR_THREAD_DATA
#define PLANAR_THREAD_DATA |
◆ DEFINE_LUT_FILTER
#define DEFINE_LUT_FILTER |
( |
|
name_, |
|
|
|
description_ |
|
) |
| |
Value:
.priv_class = &name_ ## _class, \
}
Definition at line 584 of file vf_lut.c.
◆ var_name
Enumerator |
---|
VAR_CH | |
VAR_N | |
VAR_NB_IN_CHANNELS | |
VAR_NB_OUT_CHANNELS | |
VAR_T | |
VAR_S | |
VAR_VARS_NB | |
VAR_W | |
VAR_H | |
VAR_CW | |
VAR_CH | |
VAR_HSUB | |
VAR_VSUB | |
VARS_NB | |
VAR_VALUE1 | |
VAR_VALUE2 | |
VAR_VARS_NB | |
VAR_TB | |
VAR_PTS | |
VAR_START_PTS | |
VAR_PREV_PTS | |
VAR_PREV_SELECTED_PTS | |
VAR_T | |
VAR_START_T | |
VAR_PREV_T | |
VAR_PREV_SELECTED_T | |
VAR_PICT_TYPE | |
VAR_I | |
VAR_P | |
VAR_B | |
VAR_S | |
VAR_SI | |
VAR_SP | |
VAR_BI | |
VAR_PICT_TYPE_I | |
VAR_PICT_TYPE_P | |
VAR_PICT_TYPE_B | |
VAR_PICT_TYPE_S | |
VAR_PICT_TYPE_SI | |
VAR_PICT_TYPE_SP | |
VAR_PICT_TYPE_BI | |
VAR_INTERLACE_TYPE | |
VAR_INTERLACE_TYPE_P | |
VAR_INTERLACE_TYPE_T | |
VAR_INTERLACE_TYPE_B | |
VAR_CONSUMED_SAMPLES_N | |
VAR_SAMPLES_N | |
VAR_SAMPLE_RATE | |
VAR_N | |
VAR_SELECTED_N | |
VAR_PREV_SELECTED_N | |
VAR_KEY | |
VAR_POS | |
VAR_SCENE | |
VAR_CONCATDEC_SELECT | |
VAR_VARS_NB | |
VAR_PI | |
VAR_PHI | |
VAR_E | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_A | |
VAR_SAR | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VAR_OHSUB | |
VAR_OVSUB | |
VARS_NB | |
VAR_FRAME_RATE | |
VAR_INTERLACED | |
VAR_N | |
VAR_NB_CONSUMED_SAMPLES | |
VAR_NB_SAMPLES | |
VAR_POS | |
VAR_PREV_INPTS | |
VAR_PREV_INT | |
VAR_PREV_OUTPTS | |
VAR_PREV_OUTT | |
VAR_PTS | |
VAR_SAMPLE_RATE | |
VAR_STARTPTS | |
VAR_STARTT | |
VAR_T | |
VAR_TB | |
VAR_RTCTIME | |
VAR_RTCSTART | |
VAR_S | |
VAR_SR | |
VAR_FR | |
VAR_VARS_NB | |
VAR_AVTB | |
VAR_INTB | |
VAR_SR | |
VAR_VARS_NB | |
VAR_W | |
VAR_H | |
VAR_A | |
VAR_DAR | |
VAR_SAR | |
VAR_HSUB | |
VAR_VSUB | |
VARS_NB | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_A | |
VAR_SAR | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VAR_X | |
VAR_Y | |
VAR_N | |
VAR_POS | |
VAR_T | |
VAR_VARS_NB | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VAR_IN_H | |
VAR_IH | |
VAR_IN_W | |
VAR_IW | |
VAR_SAR | |
VAR_X | |
VAR_Y | |
VAR_H | |
VAR_W | |
VAR_T | |
VAR_MAX | |
VARS_NB | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VAR_LINE_H | |
VAR_LH | |
VAR_MAIN_H | |
VAR_h | |
VAR_H | |
VAR_MAIN_W | |
VAR_w | |
VAR_W | |
VAR_MAX_GLYPH_A | |
VAR_ASCENT | |
VAR_MAX_GLYPH_D | |
VAR_DESCENT | |
VAR_MAX_GLYPH_H | |
VAR_MAX_GLYPH_W | |
VAR_N | |
VAR_SAR | |
VAR_T | |
VAR_TEXT_H | |
VAR_TH | |
VAR_TEXT_W | |
VAR_TW | |
VAR_X | |
VAR_Y | |
VAR_PICT_TYPE | |
VAR_PKT_POS | |
VAR_PKT_DURATION | |
VAR_PKT_SIZE | |
VAR_VARS_NB | |
VAR_N | |
VAR_POS | |
VAR_R | |
VAR_T | |
VAR_NB | |
VAR_N | |
VAR_PTS | |
VAR_R | |
VAR_T | |
VAR_TB | |
VAR_NB | |
VAR_W | |
VAR_H | |
VAR_VAL | |
VAR_MAXVAL | |
VAR_MINVAL | |
VAR_NEGVAL | |
VAR_CLIPVAL | |
VAR_VARS_NB | |
VAR_W | |
VAR_H | |
VAR_X | |
VAR_Y | |
VAR_BITDEPTHX | |
VAR_BITDEPTHY | |
VAR_VARS_NB | |
VAR_MAIN_W | |
VAR_MW | |
VAR_MAIN_H | |
VAR_MH | |
VAR_OVERLAY_W | |
VAR_OW | |
VAR_OVERLAY_H | |
VAR_OH | |
VAR_HSUB | |
VAR_VSUB | |
VAR_X | |
VAR_Y | |
VAR_N | |
VAR_POS | |
VAR_T | |
VAR_VARS_NB | |
VAR_MAIN_iW | |
VAR_MW | |
VAR_MAIN_iH | |
VAR_MH | |
VAR_OVERLAY_iW | |
VAR_OVERLAY_iH | |
VAR_OVERLAY_X | |
VAR_OX | |
VAR_OVERLAY_Y | |
VAR_OY | |
VAR_OVERLAY_W | |
VAR_OW | |
VAR_OVERLAY_H | |
VAR_OH | |
VAR_VARS_NB | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_X | |
VAR_Y | |
VAR_A | |
VAR_SAR | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VARS_NB | |
VAR_W | |
VAR_H | |
VAR_VAL | |
VAR_YMIN | |
VAR_UMIN | |
VAR_VMIN | |
VAR_AMIN | |
VAR_YMAX | |
VAR_UMAX | |
VAR_VMAX | |
VAR_AMAX | |
VAR_VARS_NB | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_HSUB | |
VAR_VSUB | |
VAR_N | |
VAR_T | |
VAR_VARS_NB | |
VAR_PI | |
VAR_PHI | |
VAR_E | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_A | |
VAR_DAR | |
VAR_SAR | |
VARS_NB | |
VAR_W | |
VAR_H | |
VAR_N | |
VAR_PTS | |
VAR_R | |
VAR_T | |
VAR_TB | |
VAR_NB | |
VAR_iW | |
VAR_IN_W | |
VAR_iH | |
VAR_IN_H | |
VAR_oW | |
VAR_OUT_W | |
VAR_W | |
VAR_oH | |
VAR_OUT_H | |
VAR_H | |
CW | |
CH | |
CX | |
CY | |
VAR_VARS_NB | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_IN | |
VAR_ON | |
VAR_DURATION | |
VAR_PDURATION | |
VAR_TIME | |
VAR_FRAME | |
VAR_ZOOM | |
VAR_PZOOM | |
VAR_X | |
VAR_PX | |
VAR_Y | |
VAR_PY | |
VAR_A | |
VAR_SAR | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VARS_NB | |
VAR_IN_W | |
VAR_IW | |
VAR_IN_H | |
VAR_IH | |
VAR_OUT_W | |
VAR_OW | |
VAR_OUT_H | |
VAR_OH | |
VAR_A | |
VAR_SAR | |
VAR_DAR | |
VAR_HSUB | |
VAR_VSUB | |
VAR_OHSUB | |
VAR_OVSUB | |
VARS_NB | |
VAR_X | |
VAR_Y | |
VAR_W | |
VAR_H | |
VAR_TIME | |
VAR_SPEED | |
VAR_TEMPO | |
VAR_ORDER | |
VAR_PATTERN | |
VAR_ROW | |
VAR_VARS_NB | |
Definition at line 50 of file vf_lut.c.
◆ uninit()
◆ query_formats()
◆ clip()
static double clip |
( |
void * |
opaque, |
|
|
double |
val |
|
) |
| |
|
static |
◆ compute_gammaval()
static double compute_gammaval |
( |
void * |
opaque, |
|
|
double |
gamma |
|
) |
| |
|
static |
Compute gamma correction for value val, assuming the minval-maxval range, val is clipped to a value contained in the same interval.
Definition at line 175 of file vf_lut.c.
◆ compute_gammaval709()
static double compute_gammaval709 |
( |
void * |
opaque, |
|
|
double |
gamma |
|
) |
| |
|
static |
Compute ITU Rec.709 gamma correction of value val.
Definition at line 188 of file vf_lut.c.
◆ config_props()
◆ lut_packed_16bits()
◆ lut_packed_8bits()
◆ lut_planar_16bits()
◆ lut_planar_8bits()
◆ filter_frame()
◆ var_names
const char* const var_names[] |
|
static |
Initial value:= {
"w",
"h",
"val",
"maxval",
"minval",
"negval",
"clipval",
}
Definition at line 39 of file vf_lut.c.
Referenced by config_props().
◆ options
Initial value:
Definition at line 86 of file vf_lut.c.
◆ yuv_pix_fmts
◆ rgb_pix_fmts
◆ all_pix_fmts
◆ funcs1
double(* const funcs1[])(void *, double) |
|
static |
◆ funcs1_names
const char* const funcs1_names[] |
|
static |
Initial value:= {
"clip",
"gammaval",
"gammaval709",
}
Definition at line 207 of file vf_lut.c.
Referenced by config_props().
◆ inputs
Initial value:= {
{ .name = "default",
},
}
Definition at line 569 of file vf_lut.c.
◆ outputs
Initial value:= {
{ .name = "default",
},
}
Definition at line 577 of file vf_lut.c.
@ AV_PIX_FMT_YUV420P9LE
planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
static av_cold int init(AVCodecContext *avctx)
static double compute_gammaval709(void *opaque, double gamma)
Compute ITU Rec.709 gamma correction of value val.
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
@ AV_PIX_FMT_YUV422P14LE
planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
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
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But a word about which is also called distortion Distortion can be quantified by almost any quality measurement one chooses the sum of squared differences is used but more complex methods that consider psychovisual effects can be used as well It makes no difference in this discussion First step
@ AV_PIX_FMT_YUV420P16LE
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
const char * name
Filter name.
@ AV_PIX_FMT_GRAY10LE
Y , 10bpp, little-endian.
@ AV_PIX_FMT_GBRAP12LE
planar GBR 4:4:4:4 48bpp, little-endian
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
@ AV_PIX_FMT_YUV420P12LE
planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
static const struct twinvq_data tab
@ AV_PIX_FMT_GRAY9LE
Y , 9bpp, little-endian.
@ AV_PIX_FMT_YUV420P10LE
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
#define AV_CEIL_RSHIFT(a, b)
static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Handle slice ends.
@ AV_PIX_FMT_GBRP10LE
planar GBR 4:4:4 30bpp, little-endian
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
@ AV_PIX_FMT_YUV422P16LE
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
@ AV_PIX_FMT_RGBA64LE
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
@ AV_PIX_FMT_YUVA420P16LE
planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
@ AV_PIX_FMT_YUV440P10LE
planar YUV 4:4:0,20bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_YUV420P14LE
planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
@ AV_PIX_FMT_YUV440P12LE
planar YUV 4:4:0,24bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_YUV422P10LE
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> in
#define i(width, name, range_min, range_max)
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
static int query_formats(AVFilterContext *ctx)
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_GRAY16LE
Y , 16bpp, little-endian.
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_GRAY14LE
Y , 14bpp, little-endian.
@ AV_PIX_FMT_YUV422P9LE
planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
@ AV_PIX_FMT_YUVA422P16LE
planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
@ AV_PIX_FMT_GBRP14LE
planar GBR 4:4:4 42bpp, little-endian
#define flags(name, subs,...)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
static int config_props(AVFilterLink *inlink)
@ AV_PIX_FMT_YUV422P12LE
planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
static av_cold void uninit(AVFilterContext *ctx)
static double clip(void *opaque, double val)
Clip value val in the minval - maxval range.
static double compute_gammaval(void *opaque, double gamma)
Compute gamma correction for value val, assuming the minval-maxval range, val is clipped to a value c...
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)