- sws_addVec
void sws_addVec(SwsVector* a, SwsVector* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_allocVec
SwsVector* sws_allocVec(int length)
Allocate and return an uninitialized vector with length coefficients.
- sws_alloc_context
SwsContext* sws_alloc_context()
Allocate an empty SwsContext. This must be filled and passed to
sws_init_context(). For filling see AVOptions, options.c and
sws_setColorspaceDetails().
- sws_cloneVec
SwsVector* sws_cloneVec(SwsVector* a)
Allocate and return a clone of the vector a, that is a vector
with the same coefficients as a.
- sws_convVec
void sws_convVec(SwsVector* a, SwsVector* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_convertPalette8ToPacked24
void sws_convertPalette8ToPacked24(uint8_t* src, uint8_t* dst, int num_pixels, uint8_t* palette)
Convert an 8-bit paletted frame into a frame with a color depth of 24 bits.
- sws_convertPalette8ToPacked32
void sws_convertPalette8ToPacked32(uint8_t* src, uint8_t* dst, int num_pixels, uint8_t* palette)
Convert an 8-bit paletted frame into a frame with a color depth of 32 bits.
- sws_freeContext
void sws_freeContext(SwsContext* swsContext)
Free the swscaler context swsContext.
If swsContext is NULL, then does nothing.
- sws_freeFilter
void sws_freeFilter(SwsFilter* filter)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_freeVec
void sws_freeVec(SwsVector* a)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_getCachedContext
SwsContext* sws_getCachedContext(SwsContext* context, int srcW, int srcH, AVPixelFormat srcFormat, int dstW, int dstH, AVPixelFormat dstFormat, int flags, SwsFilter* srcFilter, SwsFilter* dstFilter, double* param)
Check if context can be reused, otherwise reallocate a new one.
- sws_getCoefficients
int* sws_getCoefficients(int colorspace)
Return a pointer to yuv<->rgb coefficients for the given colorspace
suitable for sws_setColorspaceDetails().
- sws_getColorspaceDetails
int sws_getColorspaceDetails(SwsContext* c, int** inv_table, int* srcRange, int** table, int* dstRange, int* brightness, int* contrast, int* saturation)
@return -1 if not supported
- sws_getConstVec
SwsVector* sws_getConstVec(double c, int length)
Allocate and return a vector with length coefficients, all
with the same value c.
- sws_getContext
SwsContext* sws_getContext(int srcW, int srcH, AVPixelFormat srcFormat, int dstW, int dstH, AVPixelFormat dstFormat, int flags, SwsFilter* srcFilter, SwsFilter* dstFilter, double* param)
Allocate and return an SwsContext. You need it to perform
scaling/conversion operations using sws_scale().
- sws_getDefaultFilter
SwsFilter* sws_getDefaultFilter(float lumaGBlur, float chromaGBlur, float lumaSharpen, float chromaSharpen, float chromaHShift, float chromaVShift, int verbose)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_getGaussianVec
SwsVector* sws_getGaussianVec(double variance, double quality)
Return a normalized Gaussian curve used to filter stuff
quality = 3 is high quality, lower is lower quality.
- sws_getIdentityVec
SwsVector* sws_getIdentityVec()
Allocate and return a vector with just one coefficient, with
value 1.0.
- sws_get_class
AVClass* sws_get_class()
Get the AVClass for swsContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.
- sws_init_context
int sws_init_context(SwsContext* sws_context, SwsFilter* srcFilter, SwsFilter* dstFilter)
Initialize the swscaler context sws_context.
- sws_isSupportedEndiannessConversion
int sws_isSupportedEndiannessConversion(AVPixelFormat pix_fmt)
@paramin pix_fmt the pixel format
@return a positive value if an endianness conversion for pix_fmt is
supported, 0 otherwise.
- sws_isSupportedInput
int sws_isSupportedInput(AVPixelFormat pix_fmt)
Return a positive value if pix_fmt is a supported input format, 0
otherwise.
- sws_isSupportedOutput
int sws_isSupportedOutput(AVPixelFormat pix_fmt)
Return a positive value if pix_fmt is a supported output format, 0
otherwise.
- sws_normalizeVec
void sws_normalizeVec(SwsVector* a, double height)
Scale all the coefficients of a so that their sum equals height.
- sws_printVec2
void sws_printVec2(SwsVector* a, AVClass* log_ctx, int log_level)
Print with av_log() a textual representation of the vector a
if log_level <= av_log_level.
- sws_scale
int sws_scale(SwsContext* c, uint8_t** srcSlice, int* srcStride, int srcSliceY, int srcSliceH, uint8_t** dst, int* dstStride)
Scale the image slice in srcSlice and put the resulting scaled
slice in the image in dst. A slice is a sequence of consecutive
rows in an image.
- sws_scaleVec
void sws_scaleVec(SwsVector* a, double scalar)
Scale all the coefficients of a by the scalar value.
- sws_setColorspaceDetails
int sws_setColorspaceDetails(SwsContext* c, int[4] inv_table, int srcRange, int[4] table, int dstRange, int brightness, int contrast, int saturation)
@param dstRange flag indicating the while-black range of the output (1=jpeg / 0=mpeg)
@param srcRange flag indicating the while-black range of the input (1=jpeg / 0=mpeg)
@param table the yuv2rgb coefficients describing the output yuv space, normally ff_yuv2rgb_coeffsx
@param inv_table the yuv2rgb coefficients describing the input yuv space, normally ff_yuv2rgb_coeffsx
@param brightness 16.16 fixed point brightness correction
@param contrast 16.16 fixed point contrast correction
@param saturation 16.16 fixed point saturation correction
@return -1 if not supported
- sws_shiftVec
void sws_shiftVec(SwsVector* a, int shift)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- sws_subVec
void sws_subVec(SwsVector* a, SwsVector* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- swscale_configuration
char* swscale_configuration()
Return the libswscale build-time configuration.
- swscale_license
char* swscale_license()
Return the libswscale license.
- swscale_version
uint swscale_version()
@defgroup libsws Color conversion and scaling
@{
- SWS_ACCURATE_RND
enum SWS_ACCURATE_RND;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_AREA
enum SWS_AREA;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_BICUBIC
enum SWS_BICUBIC;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_BICUBLIN
enum SWS_BICUBLIN;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_BILINEAR
enum SWS_BILINEAR;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_BITEXACT
enum SWS_BITEXACT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_DEFAULT
enum SWS_CS_DEFAULT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_FCC
enum SWS_CS_FCC;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_ITU601
enum SWS_CS_ITU601;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_ITU624
enum SWS_CS_ITU624;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_ITU709
enum SWS_CS_ITU709;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_SMPTE170M
enum SWS_CS_SMPTE170M;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_CS_SMPTE240M
enum SWS_CS_SMPTE240M;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_DIRECT_BGR
enum SWS_DIRECT_BGR;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_ERROR_DIFFUSION
enum SWS_ERROR_DIFFUSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_FAST_BILINEAR
enum SWS_FAST_BILINEAR;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_FULL_CHR_H_INP
enum SWS_FULL_CHR_H_INP;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_FULL_CHR_H_INT
enum SWS_FULL_CHR_H_INT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_GAUSS
enum SWS_GAUSS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_LANCZOS
enum SWS_LANCZOS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_MAX_REDUCE_CUTOFF
enum SWS_MAX_REDUCE_CUTOFF;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_PARAM_DEFAULT
enum SWS_PARAM_DEFAULT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_POINT
enum SWS_POINT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_PRINT_INFO
enum SWS_PRINT_INFO;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_SINC
enum SWS_SINC;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_SPLINE
enum SWS_SPLINE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_SRC_V_CHR_DROP_MASK
enum SWS_SRC_V_CHR_DROP_MASK;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_SRC_V_CHR_DROP_SHIFT
enum SWS_SRC_V_CHR_DROP_SHIFT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- SWS_X
enum SWS_X;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.