Go to the documentation of this file.
30 #define OFFSET(x) offsetof(SwsContext, x)
32 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
67 {
"src_v_chr_pos",
"source vertical chroma position in luma grid/256" ,
OFFSET(src_v_chr_pos),
AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024,
VE },
68 {
"src_h_chr_pos",
"source horizontal chroma position in luma grid/256",
OFFSET(src_h_chr_pos),
AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024,
VE },
69 {
"dst_v_chr_pos",
"destination vertical chroma position in luma grid/256" ,
OFFSET(dst_v_chr_pos),
AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024,
VE },
70 {
"dst_h_chr_pos",
"destination horizontal chroma position in luma grid/256",
OFFSET(dst_h_chr_pos),
AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024,
VE },
85 {
"threads",
"number of threads",
OFFSET(threads),
AV_OPT_TYPE_INT, {.i64 = 1 }, .flags =
VE, .unit =
"threads", .max = INT_MAX },
86 {
"auto",
"automatic selection", 0,
AV_OPT_TYPE_CONST, {.i64 = 0 }, .flags =
VE, .unit =
"threads" },
101 .parent_log_context_offset = offsetof(
SwsInternal, parent),
@ SWS_INTENT_SATURATION
Saturation mapping.
@ SWS_ALPHA_BLEND_CHECKERBOARD
@ SWS_BILINEAR
bilinear filtering
@ SWS_BICUBLIN
bicubic luma, bilinear chroma
@ SWS_FAST_BILINEAR
Scaler selection options.
@ SWS_FULL_CHR_H_INP
Perform full chroma interpolation when downscaling RGB sources.
const AVClass * sws_get_class(void)
Get the AVClass for SwsContext.
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
@ SWS_BICUBIC
2-tap cubic B-spline
@ SWS_INTENT_PERCEPTUAL
Perceptual tone mapping.
const AVClass ff_sws_context_class
@ SWS_INTENT_ABSOLUTE_COLORIMETRIC
Absolute colorimetric clipping.
#define SWS_PARAM_DEFAULT
@ SWS_ALPHA_BLEND_UNIFORM
@ SWS_POINT
nearest neighbor
@ SWS_SPLINE
cubic Keys spline
@ SWS_INTENT_NB
not part of the ABI
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
@ SWS_FULL_CHR_H_INT
Perform full chroma upsampling when upscaling to RGB.
@ SWS_INTENT_RELATIVE_COLORIMETRIC
Relative colorimetric clipping.
static const AVOption swscale_options[]
@ SWS_PRINT_INFO
Emit verbose log of scaling parameters.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ SWS_ERROR_DIFFUSION
Set SwsContext.dither instead.
@ SWS_GAUSS
gaussian approximation
@ AV_CLASS_CATEGORY_SWSCALER
@ AV_OPT_TYPE_PIXEL_FMT
Underlying C type is enum AVPixelFormat.
static const char * sws_context_to_name(void *ptr)
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
#define flags(name, subs,...)
@ SWS_ACCURATE_RND
Force bit-exact output.
@ SWS_LANCZOS
3-tap sinc/sinc
@ SWS_SINC
unwindowed sinc
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
static const uint8_t dither[8][8]