FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
swscale_internal.h File Reference
#include "config.h"
#include "version.h"
#include "libavutil/avassert.h"
#include "libavutil/avutil.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/pixfmt.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Data Structures

struct  SwsContext
 
struct  SwsPlane
 Slice plane. More...
 
struct  SwsSlice
 Struct which defines a slice of an image to be scaled or an output for a scaled slice. More...
 
struct  SwsFilterDescriptor
 Struct which holds all necessary data for processing a slice. More...
 

Macros

#define STR(s)   AV_TOSTRING(s)
 
#define YUVRGB_TABLE_HEADROOM   512
 
#define YUVRGB_TABLE_LUMA_HEADROOM   512
 
#define MAX_FILTER_SIZE   SWS_MAX_FILTER_SIZE
 
#define DITHER1XBPP
 
#define ALT32_CORR   1
 
#define APCK_PTR2   4
 
#define APCK_COEF   8
 
#define APCK_SIZE   16
 
#define RETCODE_USE_CASCADE   -12345
 
#define RY_IDX   0
 
#define GY_IDX   1
 
#define BY_IDX   2
 
#define RU_IDX   3
 
#define GU_IDX   4
 
#define BU_IDX   5
 
#define RV_IDX   6
 
#define GV_IDX   7
 
#define BV_IDX   8
 
#define RGB2YUV_SHIFT   15
 
#define RED_DITHER   "0*8"
 
#define GREEN_DITHER   "1*8"
 
#define BLUE_DITHER   "2*8"
 
#define Y_COEFF   "3*8"
 
#define VR_COEFF   "4*8"
 
#define UB_COEFF   "5*8"
 
#define VG_COEFF   "6*8"
 
#define UG_COEFF   "7*8"
 
#define Y_OFFSET   "8*8"
 
#define U_OFFSET   "9*8"
 
#define V_OFFSET   "10*8"
 
#define LUM_MMX_FILTER_OFFSET   "11*8"
 
#define CHR_MMX_FILTER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)
 
#define DSTW_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2"
 
#define ESP_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+8"
 
#define VROUNDER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+16"
 
#define U_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+24"
 
#define V_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+32"
 
#define Y_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+40"
 
#define ALP_MMX_FILTER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+48"
 
#define UV_OFF_PX   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+48"
 
#define UV_OFF_BYTE   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+56"
 
#define DITHER16   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+64"
 
#define DITHER32   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+80"
 
#define DITHER32_INT   (11*8+4*4*MAX_FILTER_SIZE*3+80)
 
#define XYZ_GAMMA   (2.6f)
 
#define RGB_GAMMA   (2.2f)
 
#define isNBPS(x)   is9_OR_10BPS(x)
 
#define isGray(x)
 
#define isRGBinInt(x)
 
#define isBGRinInt(x)
 
#define isRGBinBytes(x)
 
#define isBGRinBytes(x)
 
#define isBayer(x)
 
#define isAnyRGB(x)
 
#define isPacked(x)
 
#define FILL(wfunc)
 
#define MAX_SLICE_PLANES   4
 
#define MAX_LINES_AHEAD   4
 

Typedefs

typedef int(* SwsFunc )(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
 
typedef void(* yuv2planar1_fn )(const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 Write one line of horizontally scaled data to planar output without any additional vertical scaling (or point-scaling). More...
 
typedef void(* yuv2planarX_fn )(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 Write one line of horizontally scaled data to planar output with multi-point vertical scaling between input pixels. More...
 
typedef void(* yuv2interleavedX_fn )(struct SwsContext *c, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest, int dstW)
 Write one line of horizontally scaled chroma to interleaved output with multi-point vertical scaling between input pixels. More...
 
typedef void(* yuv2packed1_fn )(struct SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc, uint8_t *dest, int dstW, int uvalpha, int y)
 Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output without any additional vertical scaling (or point-scaling). More...
 
typedef void(* yuv2packed2_fn )(struct SwsContext *c, const int16_t *lumSrc[2], const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
 Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing bilinear scaling between two input lines. More...
 
typedef void(* yuv2packedX_fn )(struct SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y)
 Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing multi-point vertical scaling between input pixels. More...
 
typedef void(* yuv2anyX_fn )(struct SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t **dest, int dstW, int y)
 Write one line of horizontally scaled Y/U/V/A to YUV/RGB output by doing multi-point vertical scaling between input pixels. More...
 

Enumerations

enum  SwsDither {
  SWS_DITHER_NONE = 0, SWS_DITHER_AUTO, SWS_DITHER_BAYER, SWS_DITHER_ED,
  SWS_DITHER_A_DITHER, SWS_DITHER_X_DITHER, NB_SWS_DITHER
}
 
enum  SwsAlphaBlend { SWS_ALPHA_BLEND_NONE = 0, SWS_ALPHA_BLEND_UNIFORM, SWS_ALPHA_BLEND_CHECKERBOARD, SWS_ALPHA_BLEND_NB }
 

Functions

SwsFunc ff_yuv2rgb_get_func_ptr (SwsContext *c)
 
int ff_yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
 
void ff_yuv2rgb_init_tables_ppc (SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation)
 
void ff_updateMMXDitherTables (SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf)
 
av_cold void ff_sws_init_range_convert (SwsContext *c)
 
SwsFunc ff_yuv2rgb_init_x86 (SwsContext *c)
 
SwsFunc ff_yuv2rgb_init_ppc (SwsContext *c)
 
static av_always_inline int is16BPS (enum AVPixelFormat pix_fmt)
 
static av_always_inline int is9_OR_10BPS (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isBE (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isYUV (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isPlanarYUV (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isRGB (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isALPHA (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isPlanar (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isPackedRGB (enum AVPixelFormat pix_fmt)
 
static av_always_inline int isPlanarRGB (enum AVPixelFormat pix_fmt)
 
static av_always_inline int usePal (enum AVPixelFormat pix_fmt)
 
void ff_get_unscaled_swscale (SwsContext *c)
 Set c->swscale to an unscaled converter if one exists for the specific source and destination formats, bit depths, flags, etc. More...
 
void ff_get_unscaled_swscale_ppc (SwsContext *c)
 
void ff_get_unscaled_swscale_arm (SwsContext *c)
 
void ff_get_unscaled_swscale_aarch64 (SwsContext *c)
 
SwsFunc ff_getSwsFunc (SwsContext *c)
 Return function pointer to fastest main scaler path function depending on architecture and available optimizations. More...
 
void ff_sws_init_input_funcs (SwsContext *c)
 
void ff_sws_init_output_funcs (SwsContext *c, yuv2planar1_fn *yuv2plane1, yuv2planarX_fn *yuv2planeX, yuv2interleavedX_fn *yuv2nv12cX, yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2, yuv2packedX_fn *yuv2packedX, yuv2anyX_fn *yuv2anyX)
 
void ff_sws_init_swscale_ppc (SwsContext *c)
 
void ff_sws_init_swscale_x86 (SwsContext *c)
 
void ff_sws_init_swscale_aarch64 (SwsContext *c)
 
void ff_sws_init_swscale_arm (SwsContext *c)
 
void ff_hyscale_fast_c (SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc)
 
void ff_hcscale_fast_c (SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc)
 
int ff_init_hscaler_mmxext (int dstW, int xInc, uint8_t *filterCode, int16_t *filter, int32_t *filterPos, int numSplits)
 
void ff_hyscale_fast_mmxext (SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc)
 
void ff_hcscale_fast_mmxext (SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc)
 
struct SwsContextsws_alloc_set_opts (int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, const double *param)
 Allocate and return an SwsContext. More...
 
int ff_sws_alphablendaway (SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
 
static void fillPlane16 (uint8_t *plane, int stride, int width, int height, int y, int alpha, int bits, const int big_endian)
 
int ff_init_slice_from_src (SwsSlice *s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative)
 
int ff_init_filters (SwsContext *c)
 
int ff_free_filters (SwsContext *c)
 
int ff_rotate_slice (SwsSlice *s, int lum, int chr)
 
int ff_init_gamma_convert (SwsFilterDescriptor *desc, SwsSlice *src, uint16_t *table)
 initializes gamma conversion descriptor More...
 
int ff_init_desc_fmt_convert (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint32_t *pal)
 initializes lum pixel format conversion descriptor More...
 
int ff_init_desc_hscale (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int *filter_pos, int filter_size, int xInc)
 initializes lum horizontal scaling descriptor More...
 
int ff_init_desc_cfmt_convert (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint32_t *pal)
 initializes chr pixel format conversion descriptor More...
 
int ff_init_desc_chscale (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int *filter_pos, int filter_size, int xInc)
 initializes chr horizontal scaling descriptor More...
 
int ff_init_desc_no_chr (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst)
 
int ff_init_vscale (SwsContext *c, SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst)
 initializes vertical scaling descriptors More...
 
void ff_init_vscale_pfn (SwsContext *c, yuv2planar1_fn yuv2plane1, yuv2planarX_fn yuv2planeX, yuv2interleavedX_fn yuv2nv12cX, yuv2packed1_fn yuv2packed1, yuv2packed2_fn yuv2packed2, yuv2packedX_fn yuv2packedX, yuv2anyX_fn yuv2anyX, int use_mmx)
 setup vertical scaler functions More...
 

Variables

const uint64_t ff_dither4 [2]
 
const uint64_t ff_dither8 [2]
 
const uint8_t ff_dither_2x2_4 [3][8]
 
const uint8_t ff_dither_2x2_8 [3][8]
 
const uint8_t ff_dither_4x4_16 [5][8]
 
const uint8_t ff_dither_8x8_32 [9][8]
 
const uint8_t ff_dither_8x8_73 [9][8]
 
const uint8_t ff_dither_8x8_128 [9][8]
 
const uint8_t ff_dither_8x8_220 [9][8]
 
const int32_t ff_yuv2rgb_coeffs [11][4]
 
const AVClass ff_sws_context_class
 

Macro Definition Documentation

#define STR (   s)    AV_TOSTRING(s)

Definition at line 40 of file swscale_internal.h.

Referenced by av_register_all().

#define YUVRGB_TABLE_HEADROOM   512
#define YUVRGB_TABLE_LUMA_HEADROOM   512

Definition at line 43 of file swscale_internal.h.

Referenced by ff_yuv2rgb_c_init_tables().

#define MAX_FILTER_SIZE   SWS_MAX_FILTER_SIZE

Definition at line 45 of file swscale_internal.h.

Referenced by initFilter().

#define DITHER1XBPP

Definition at line 47 of file swscale_internal.h.

Referenced by sws_init_context().

#define ALT32_CORR   1

Definition at line 52 of file swscale_internal.h.

Referenced by findRgbConvFn(), and rgbToRgbWrapper().

#define APCK_PTR2   4

Definition at line 60 of file swscale_internal.h.

#define APCK_COEF   8

Definition at line 61 of file swscale_internal.h.

#define APCK_SIZE   16

Definition at line 62 of file swscale_internal.h.

Referenced by initFilter().

#define RETCODE_USE_CASCADE   -12345

Definition at line 65 of file swscale_internal.h.

Referenced by initFilter(), and sws_init_context().

#define RY_IDX   0
#define GY_IDX   1
#define BY_IDX   2
#define RU_IDX   3
#define GU_IDX   4
#define BU_IDX   5
#define RV_IDX   6
#define GV_IDX   7
#define BV_IDX   8
#define RGB2YUV_SHIFT   15

Definition at line 417 of file swscale_internal.h.

#define RED_DITHER   "0*8"
#define GREEN_DITHER   "1*8"
#define BLUE_DITHER   "2*8"
#define Y_COEFF   "3*8"

Definition at line 445 of file swscale_internal.h.

#define VR_COEFF   "4*8"

Definition at line 446 of file swscale_internal.h.

#define UB_COEFF   "5*8"

Definition at line 447 of file swscale_internal.h.

#define VG_COEFF   "6*8"

Definition at line 448 of file swscale_internal.h.

#define UG_COEFF   "7*8"

Definition at line 449 of file swscale_internal.h.

#define Y_OFFSET   "8*8"

Definition at line 450 of file swscale_internal.h.

#define U_OFFSET   "9*8"

Definition at line 451 of file swscale_internal.h.

#define V_OFFSET   "10*8"

Definition at line 452 of file swscale_internal.h.

#define LUM_MMX_FILTER_OFFSET   "11*8"

Definition at line 453 of file swscale_internal.h.

#define CHR_MMX_FILTER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)

Definition at line 454 of file swscale_internal.h.

#define DSTW_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2"
#define ESP_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+8"
#define VROUNDER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+16"

Definition at line 457 of file swscale_internal.h.

#define U_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+24"

Definition at line 458 of file swscale_internal.h.

Referenced by yuv2rgb32_2_TMPL(), and yuv2rgb32_X_ar_TMPL().

#define V_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+32"

Definition at line 459 of file swscale_internal.h.

Referenced by yuv2rgb32_2_TMPL(), and yuv2rgb32_X_ar_TMPL().

#define Y_TEMP   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+40"

Definition at line 460 of file swscale_internal.h.

Referenced by yuv2rgb32_X_ar_TMPL().

#define ALP_MMX_FILTER_OFFSET   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*2+48"

Definition at line 461 of file swscale_internal.h.

Referenced by yuv2bgr32_X_TMPL(), yuv2rgb32_X_ar_TMPL(), and yuv2rgb32_X_TMPL().

#define UV_OFF_PX   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+48"

Definition at line 462 of file swscale_internal.h.

#define UV_OFF_BYTE   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+56"

Definition at line 463 of file swscale_internal.h.

#define DITHER16   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+64"

Definition at line 464 of file swscale_internal.h.

#define DITHER32   "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+80"

Definition at line 465 of file swscale_internal.h.

#define DITHER32_INT   (11*8+4*4*MAX_FILTER_SIZE*3+80)

Definition at line 466 of file swscale_internal.h.

Referenced by sws_alloc_context().

#define XYZ_GAMMA   (2.6f)

Definition at line 513 of file swscale_internal.h.

Referenced by fill_xyztables().

#define RGB_GAMMA   (2.2f)

Definition at line 514 of file swscale_internal.h.

Referenced by fill_xyztables().

#define isNBPS (   x)    is9_OR_10BPS(x)
#define isGray (   x)
Value:
((x) == AV_PIX_FMT_GRAY8 || \
(x) == AV_PIX_FMT_YA8 || \
(x) == AV_PIX_FMT_GRAY16BE || \
(x) == AV_PIX_FMT_GRAY16LE || \
(x) == AV_PIX_FMT_YA16BE || \
8 bits gray, 8 bits alpha
Definition: pixfmt.h:154
16 bits gray, 16 bits alpha (big-endian)
Definition: pixfmt.h:225
Y , 16bpp, big-endian.
Definition: pixfmt.h:98
Y , 8bpp.
Definition: pixfmt.h:70
Y , 16bpp, little-endian.
Definition: pixfmt.h:99
16 bits gray, 16 bits alpha (little-endian)
Definition: pixfmt.h:226

Definition at line 697 of file swscale_internal.h.

Referenced by ff_init_filters(), ff_init_vscale(), ff_init_vscale_pfn(), ff_sws_alphablendaway(), and sws_setColorspaceDetails().

#define isRGBinInt (   x)
Value:
( \
(x) == AV_PIX_FMT_RGB48BE || \
(x) == AV_PIX_FMT_RGB48LE || \
(x) == AV_PIX_FMT_RGB32 || \
(x) == AV_PIX_FMT_RGB32_1 || \
(x) == AV_PIX_FMT_RGB24 || \
(x) == AV_PIX_FMT_RGB565BE || \
(x) == AV_PIX_FMT_RGB565LE || \
(x) == AV_PIX_FMT_RGB555BE || \
(x) == AV_PIX_FMT_RGB555LE || \
(x) == AV_PIX_FMT_RGB444BE || \
(x) == AV_PIX_FMT_RGB444LE || \
(x) == AV_PIX_FMT_RGB8 || \
(x) == AV_PIX_FMT_RGB4 || \
(x) == AV_PIX_FMT_RGBA64BE || \
(x) == AV_PIX_FMT_RGBA64LE || \
)
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:64
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:116
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined
Definition: pixfmt.h:151
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in ...
Definition: pixfmt.h:88
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Definition: pixfmt.h:114
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:111
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:216
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:150
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition: pixfmt.h:113
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
Definition: pixfmt.h:89
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:318
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:115
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:72
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:71
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:110
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Definition: pixfmt.h:87
#define AV_PIX_FMT_RGB32_1
Definition: pixfmt.h:319
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:217

Definition at line 706 of file swscale_internal.h.

Referenced by findRgbConvFn().

#define isBGRinInt (   x)
Value:
( \
(x) == AV_PIX_FMT_BGR48BE || \
(x) == AV_PIX_FMT_BGR48LE || \
(x) == AV_PIX_FMT_BGR32 || \
(x) == AV_PIX_FMT_BGR32_1 || \
(x) == AV_PIX_FMT_BGR24 || \
(x) == AV_PIX_FMT_BGR565BE || \
(x) == AV_PIX_FMT_BGR565LE || \
(x) == AV_PIX_FMT_BGR555BE || \
(x) == AV_PIX_FMT_BGR555LE || \
(x) == AV_PIX_FMT_BGR444BE || \
(x) == AV_PIX_FMT_BGR444LE || \
(x) == AV_PIX_FMT_BGR8 || \
(x) == AV_PIX_FMT_BGR4 || \
(x) == AV_PIX_FMT_BGRA64BE || \
(x) == AV_PIX_FMT_BGRA64LE || \
)
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:219
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in ...
Definition: pixfmt.h:85
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:218
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Definition: pixfmt.h:119
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
Definition: pixfmt.h:86
#define AV_PIX_FMT_BGR32_1
Definition: pixfmt.h:321
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:160
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:159
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
Definition: pixfmt.h:118
#define AV_PIX_FMT_BGR32
Definition: pixfmt.h:320
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
Definition: pixfmt.h:84
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:121
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian, X=unused/undefined
Definition: pixfmt.h:153
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:72
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:71
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:120
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:152

Definition at line 727 of file swscale_internal.h.

Referenced by findRgbConvFn().

#define isRGBinBytes (   x)
Value:
( \
|| (x) == AV_PIX_FMT_RGB48LE \
|| (x) == AV_PIX_FMT_RGBA64BE \
|| (x) == AV_PIX_FMT_RGBA64LE \
|| (x) == AV_PIX_FMT_RGBA \
|| (x) == AV_PIX_FMT_ARGB \
|| (x) == AV_PIX_FMT_RGB24 \
)
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:64
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:111
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:216
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:93
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:94
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:110
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:217

Definition at line 749 of file swscale_internal.h.

#define isBGRinBytes (   x)
Value:
( \
|| (x) == AV_PIX_FMT_BGR48LE \
|| (x) == AV_PIX_FMT_BGRA64BE \
|| (x) == AV_PIX_FMT_BGRA64LE \
|| (x) == AV_PIX_FMT_BGRA \
|| (x) == AV_PIX_FMT_ABGR \
|| (x) == AV_PIX_FMT_BGR24 \
)
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:219
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:218
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:95
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:96
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:160
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:159

Definition at line 758 of file swscale_internal.h.

#define isBayer (   x)
Value:
( \
)
bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples */
Definition: pixfmt.h:275
bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples */
Definition: pixfmt.h:276
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:283
bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples */
Definition: pixfmt.h:273
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:281
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:282
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:277
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:280
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:284
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:278
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:279
bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples */
Definition: pixfmt.h:274

Definition at line 768 of file swscale_internal.h.

Referenced by ff_get_unscaled_swscale(), sws_init_context(), and sws_scale().

#define isAnyRGB (   x)
Value:
( \
isBayer(x) || \
isRGB(x) \
)
#define isRGBinInt(x)
#define isBGRinInt(x)
#define isBayer(x)
static av_always_inline int isRGB(enum AVPixelFormat pix_fmt)

Definition at line 783 of file swscale_internal.h.

Referenced by ff_get_unscaled_swscale(), ff_sws_init_range_convert(), hScale16To15_c(), hScale16To19_c(), and sws_init_context().

#define isPacked (   x)
Value:
( \
|| (x)==AV_PIX_FMT_YA8 \
|| isRGBinInt(x) \
|| isBGRinInt(x) \
)
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Definition: pixfmt.h:82
8 bits gray, 8 bits alpha
Definition: pixfmt.h:154
8 bits with AV_PIX_FMT_RGB32 palette
Definition: pixfmt.h:73
#define isRGBinInt(x)
16 bits gray, 16 bits alpha (big-endian)
Definition: pixfmt.h:225
#define isBGRinInt(x)
packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
Definition: pixfmt.h:221
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:63
packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), big-endian
Definition: pixfmt.h:293
16 bits gray, 16 bits alpha (little-endian)
Definition: pixfmt.h:226
packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), little-endian
Definition: pixfmt.h:292

Definition at line 801 of file swscale_internal.h.

Referenced by ff_get_unscaled_swscale(), and swscale().

#define FILL (   wfunc)
Value:
for (j = 0; j < width; j++) {\
wfunc(ptr+2*j, v);\
}
#define width

Referenced by fillPlane16().

#define MAX_SLICE_PLANES   4

Definition at line 947 of file swscale_internal.h.

#define MAX_LINES_AHEAD   4

Definition at line 1035 of file swscale_internal.h.

Referenced by ff_init_filters().

Typedef Documentation

typedef int(* SwsFunc)(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])

Definition at line 86 of file swscale_internal.h.

typedef void(* yuv2planar1_fn)(const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)

Write one line of horizontally scaled data to planar output without any additional vertical scaling (or point-scaling).

Parameters
srcscaled source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
destpointer to the output plane. For >8-bit output, this is in uint16_t
dstWwidth of destination in pixels
ditherordered dither array of type int16_t and size 8
offsetDither offset

Definition at line 102 of file swscale_internal.h.

typedef void(* yuv2planarX_fn)(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)

Write one line of horizontally scaled data to planar output with multi-point vertical scaling between input pixels.

Parameters
filtervertical luma/alpha scaling coefficients, 12 bits [0,4096]
srcscaled luma (Y) or alpha (A) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
filterSizenumber of vertical input lines to scale
destpointer to output plane. For >8-bit output, this is in uint16_t
dstWwidth of destination pixels
offsetDither offset

Definition at line 118 of file swscale_internal.h.

typedef void(* yuv2interleavedX_fn)(struct SwsContext *c, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest, int dstW)

Write one line of horizontally scaled chroma to interleaved output with multi-point vertical scaling between input pixels.

Parameters
cSWS scaling context
chrFiltervertical chroma scaling coefficients, 12 bits [0,4096]
chrUSrcscaled chroma (U) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrVSrcscaled chroma (V) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrFilterSizenumber of vertical chroma input lines to scale
destpointer to the output plane. For >8-bit output, this is in uint16_t
dstWwidth of chroma planes

Definition at line 137 of file swscale_internal.h.

typedef void(* yuv2packed1_fn)(struct SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc, uint8_t *dest, int dstW, int uvalpha, int y)

Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output without any additional vertical scaling (or point-scaling).

Note that this function may do chroma scaling, see the "uvalpha" argument.

Parameters
cSWS scaling context
lumSrcscaled luma (Y) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrUSrcscaled chroma (U) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrVSrcscaled chroma (V) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
alpSrcscaled alpha (A) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
destpointer to the output plane. For 16-bit output, this is uint16_t
dstWwidth of lumSrc and alpSrc in pixels, number of pixels to write into dest[]
uvalphachroma scaling coefficient for the second line of chroma pixels, either 2048 or 0. If 0, one chroma input is used for 2 output pixels (or if the SWS_FLAG_FULL_CHR_INT flag is set, it generates 1 output pixel). If 2048, two chroma input pixels should be averaged for 2 output pixels (this only happens if SWS_FLAG_FULL_CHR_INT is not set)
yvertical line number for this output. This does not need to be used to calculate the offset in the destination, but can be used to generate comfort noise using dithering for some output formats.

Definition at line 173 of file swscale_internal.h.

typedef void(* yuv2packed2_fn)(struct SwsContext *c, const int16_t *lumSrc[2], const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)

Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing bilinear scaling between two input lines.

Parameters
cSWS scaling context
lumSrcscaled luma (Y) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrUSrcscaled chroma (U) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrVSrcscaled chroma (V) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
alpSrcscaled alpha (A) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
destpointer to the output plane. For 16-bit output, this is uint16_t
dstWwidth of lumSrc and alpSrc in pixels, number of pixels to write into dest[]
yalphaluma/alpha scaling coefficients for the second input line. The first line's coefficients can be calculated by using 4096 - yalpha
uvalphachroma scaling coefficient for the second input line. The first line's coefficients can be calculated by using 4096 - uvalpha
yvertical line number for this output. This does not need to be used to calculate the offset in the destination, but can be used to generate comfort noise using dithering for some output formats.

Definition at line 206 of file swscale_internal.h.

typedef void(* yuv2packedX_fn)(struct SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y)

Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing multi-point vertical scaling between input pixels.

Parameters
cSWS scaling context
lumFiltervertical luma/alpha scaling coefficients, 12 bits [0,4096]
lumSrcscaled luma (Y) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
lumFilterSizenumber of vertical luma/alpha input lines to scale
chrFiltervertical chroma scaling coefficients, 12 bits [0,4096]
chrUSrcscaled chroma (U) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrVSrcscaled chroma (V) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrFilterSizenumber of vertical chroma input lines to scale
alpSrcscaled alpha (A) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
destpointer to the output plane. For 16-bit output, this is uint16_t
dstWwidth of lumSrc and alpSrc in pixels, number of pixels to write into dest[]
yvertical line number for this output. This does not need to be used to calculate the offset in the destination, but can be used to generate comfort noise using dithering or some output formats.

Definition at line 238 of file swscale_internal.h.

typedef void(* yuv2anyX_fn)(struct SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t **dest, int dstW, int y)

Write one line of horizontally scaled Y/U/V/A to YUV/RGB output by doing multi-point vertical scaling between input pixels.

Parameters
cSWS scaling context
lumFiltervertical luma/alpha scaling coefficients, 12 bits [0,4096]
lumSrcscaled luma (Y) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
lumFilterSizenumber of vertical luma/alpha input lines to scale
chrFiltervertical chroma scaling coefficients, 12 bits [0,4096]
chrUSrcscaled chroma (U) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrVSrcscaled chroma (V) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
chrFilterSizenumber of vertical chroma input lines to scale
alpSrcscaled alpha (A) source data, 15 bits for 8-10-bit output, 19 bits for 16-bit output (in int32_t)
destpointer to the output planes. For 16-bit output, this is uint16_t
dstWwidth of lumSrc and alpSrc in pixels, number of pixels to write into dest[]
yvertical line number for this output. This does not need to be used to calculate the offset in the destination, but can be used to generate comfort noise using dithering or some output formats.

Definition at line 272 of file swscale_internal.h.

Enumeration Type Documentation

enum SwsDither
Enumerator
SWS_DITHER_NONE 
SWS_DITHER_AUTO 
SWS_DITHER_BAYER 
SWS_DITHER_ED 
SWS_DITHER_A_DITHER 
SWS_DITHER_X_DITHER 
NB_SWS_DITHER 

Definition at line 69 of file swscale_internal.h.

Enumerator
SWS_ALPHA_BLEND_NONE 
SWS_ALPHA_BLEND_UNIFORM 
SWS_ALPHA_BLEND_CHECKERBOARD 
SWS_ALPHA_BLEND_NB 

Definition at line 79 of file swscale_internal.h.

Function Documentation

SwsFunc ff_yuv2rgb_get_func_ptr ( SwsContext c)

Definition at line 670 of file yuv2rgb.c.

Referenced by ff_get_unscaled_swscale().

int ff_yuv2rgb_c_init_tables ( SwsContext c,
const int  inv_table[4],
int  fullRange,
int  brightness,
int  contrast,
int  saturation 
)

Definition at line 765 of file yuv2rgb.c.

Referenced by sws_setColorspaceDetails().

void ff_yuv2rgb_init_tables_ppc ( SwsContext c,
const int  inv_table[4],
int  brightness,
int  contrast,
int  saturation 
)

Definition at line 603 of file yuv2rgb_altivec.c.

Referenced by sws_setColorspaceDetails().

void ff_updateMMXDitherTables ( SwsContext c,
int  dstY,
int  lumBufIndex,
int  chrBufIndex,
int  lastInLumBuf,
int  lastInChrBuf 
)

Referenced by swscale().

av_cold void ff_sws_init_range_convert ( SwsContext c)

Definition at line 534 of file swscale.c.

Referenced by sws_init_swscale(), and sws_setColorspaceDetails().

SwsFunc ff_yuv2rgb_init_x86 ( SwsContext c)

Definition at line 72 of file yuv2rgb.c.

Referenced by ff_yuv2rgb_get_func_ptr().

SwsFunc ff_yuv2rgb_init_ppc ( SwsContext c)

Definition at line 540 of file yuv2rgb_altivec.c.

Referenced by ff_yuv2rgb_get_func_ptr().

static av_always_inline int is16BPS ( enum AVPixelFormat  pix_fmt)
static
static av_always_inline int is9_OR_10BPS ( enum AVPixelFormat  pix_fmt)
static
static av_always_inline int isBE ( enum AVPixelFormat  pix_fmt)
static
static av_always_inline int isYUV ( enum AVPixelFormat  pix_fmt)
static

Definition at line 671 of file swscale_internal.h.

Referenced by isPlanarYUV(), and sws_setColorspaceDetails().

static av_always_inline int isPlanarYUV ( enum AVPixelFormat  pix_fmt)
static
static av_always_inline int isRGB ( enum AVPixelFormat  pix_fmt)
static

Definition at line 685 of file swscale_internal.h.

static av_always_inline int isALPHA ( enum AVPixelFormat  pix_fmt)
static

Definition at line 791 of file swscale_internal.h.

static av_always_inline int isPlanar ( enum AVPixelFormat  pix_fmt)
static
static av_always_inline int isPackedRGB ( enum AVPixelFormat  pix_fmt)
static

Definition at line 831 of file swscale_internal.h.

Referenced by ff_get_unscaled_swscale().

static av_always_inline int isPlanarRGB ( enum AVPixelFormat  pix_fmt)
static

Definition at line 838 of file swscale_internal.h.

Referenced by sws_init_context().

static av_always_inline int usePal ( enum AVPixelFormat  pix_fmt)
static
void ff_get_unscaled_swscale ( SwsContext c)

Set c->swscale to an unscaled converter if one exists for the specific source and destination formats, bit depths, flags, etc.

Definition at line 1575 of file swscale_unscaled.c.

Referenced by sws_init_context().

void ff_get_unscaled_swscale_ppc ( SwsContext c)

Definition at line 187 of file yuv2yuv_altivec.c.

Referenced by ff_get_unscaled_swscale().

void ff_get_unscaled_swscale_arm ( SwsContext c)

Definition at line 175 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale().

void ff_get_unscaled_swscale_aarch64 ( SwsContext c)

Definition at line 127 of file swscale_unscaled.c.

Referenced by ff_get_unscaled_swscale().

SwsFunc ff_getSwsFunc ( SwsContext c)

Return function pointer to fastest main scaler path function depending on architecture and available optimizations.

Definition at line 592 of file swscale.c.

Referenced by sws_init_context().

void ff_sws_init_input_funcs ( SwsContext c)

Referenced by sws_init_swscale().

void ff_sws_init_output_funcs ( SwsContext c,
yuv2planar1_fn yuv2plane1,
yuv2planarX_fn yuv2planeX,
yuv2interleavedX_fn yuv2nv12cX,
yuv2packed1_fn yuv2packed1,
yuv2packed2_fn yuv2packed2,
yuv2packedX_fn yuv2packedX,
yuv2anyX_fn yuv2anyX 
)

Definition at line 2076 of file output.c.

Referenced by sws_init_swscale(), and swscale().

void ff_sws_init_swscale_ppc ( SwsContext c)

Definition at line 329 of file swscale_altivec.c.

Referenced by ff_getSwsFunc().

void ff_sws_init_swscale_x86 ( SwsContext c)

Definition at line 384 of file swscale.c.

Referenced by ff_getSwsFunc().

void ff_sws_init_swscale_aarch64 ( SwsContext c)

Definition at line 32 of file swscale.c.

Referenced by ff_getSwsFunc().

void ff_sws_init_swscale_arm ( SwsContext c)

Definition at line 32 of file swscale.c.

Referenced by ff_getSwsFunc().

void ff_hyscale_fast_c ( SwsContext c,
int16_t *  dst,
int  dstWidth,
const uint8_t src,
int  srcW,
int  xInc 
)

Definition at line 23 of file hscale_fast_bilinear.c.

Referenced by sws_init_swscale().

void ff_hcscale_fast_c ( SwsContext c,
int16_t *  dst1,
int16_t *  dst2,
int  dstWidth,
const uint8_t src1,
const uint8_t src2,
int  srcW,
int  xInc 
)

Definition at line 38 of file hscale_fast_bilinear.c.

Referenced by sws_init_swscale().

int ff_init_hscaler_mmxext ( int  dstW,
int  xInc,
uint8_t filterCode,
int16_t *  filter,
int32_t filterPos,
int  numSplits 
)

Referenced by sws_init_context().

void ff_hyscale_fast_mmxext ( SwsContext c,
int16_t *  dst,
int  dstWidth,
const uint8_t src,
int  srcW,
int  xInc 
)

Referenced by sws_init_swscale_TMPL().

void ff_hcscale_fast_mmxext ( SwsContext c,
int16_t *  dst1,
int16_t *  dst2,
int  dstWidth,
const uint8_t src1,
const uint8_t src2,
int  srcW,
int  xInc 
)

Referenced by sws_init_swscale_TMPL().

struct SwsContext* sws_alloc_set_opts ( int  srcW,
int  srcH,
enum AVPixelFormat  srcFormat,
int  dstW,
int  dstH,
enum AVPixelFormat  dstFormat,
int  flags,
const double *  param 
)

Allocate and return an SwsContext.

This is like sws_getContext() but does not perform the init step, allowing the user to set additional AVOptions.

See Also
sws_getContext()

Definition at line 1829 of file utils.c.

Referenced by sws_getContext(), sws_init_context(), and sws_setColorspaceDetails().

int ff_sws_alphablendaway ( SwsContext c,
const uint8_t src[],
int  srcStride[],
int  srcSliceY,
int  srcSliceH,
uint8_t dst[],
int  dstStride[] 
)

Definition at line 23 of file alphablend.c.

Referenced by sws_init_context().

static void fillPlane16 ( uint8_t plane,
int  stride,
int  width,
int  height,
int  y,
int  alpha,
int  bits,
const int  big_endian 
)
inlinestatic

Definition at line 927 of file swscale_internal.h.

Referenced by planarCopyWrapper(), and swscale().

int ff_init_slice_from_src ( SwsSlice s,
uint8_t src[4],
int  stride[4],
int  srcW,
int  lumY,
int  lumH,
int  chrY,
int  chrH,
int  relative 
)

Definition at line 147 of file slice.c.

Referenced by swscale().

int ff_init_filters ( SwsContext c)

Definition at line 249 of file slice.c.

Referenced by sws_init_context().

int ff_free_filters ( SwsContext c)

Definition at line 377 of file slice.c.

Referenced by ff_init_filters(), sws_freeContext(), and sws_init_context().

int ff_rotate_slice ( SwsSlice s,
int  lum,
int  chr 
)

Definition at line 119 of file slice.c.

Referenced by swscale().

int ff_init_gamma_convert ( SwsFilterDescriptor desc,
SwsSlice src,
uint16_t *  table 
)

initializes gamma conversion descriptor

Definition at line 58 of file gamma.c.

Referenced by ff_init_filters().

int ff_init_desc_fmt_convert ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint32_t *  pal 
)

initializes lum pixel format conversion descriptor

Definition at line 127 of file hscale.c.

Referenced by ff_init_filters().

int ff_init_desc_hscale ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint16_t *  filter,
int *  filter_pos,
int  filter_size,
int  xInc 
)

initializes lum horizontal scaling descriptor

Definition at line 144 of file hscale.c.

Referenced by ff_init_filters().

int ff_init_desc_cfmt_convert ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint32_t *  pal 
)

initializes chr pixel format conversion descriptor

Definition at line 235 of file hscale.c.

Referenced by ff_init_filters().

int ff_init_desc_chscale ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint16_t *  filter,
int *  filter_pos,
int  filter_size,
int  xInc 
)

initializes chr horizontal scaling descriptor

Definition at line 250 of file hscale.c.

Referenced by ff_init_filters().

int ff_init_desc_no_chr ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst 
)

Definition at line 281 of file hscale.c.

Referenced by ff_init_filters().

int ff_init_vscale ( SwsContext c,
SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst 
)

initializes vertical scaling descriptors

Definition at line 206 of file vscale.c.

Referenced by ff_init_filters().

void ff_init_vscale_pfn ( SwsContext c,
yuv2planar1_fn  yuv2plane1,
yuv2planarX_fn  yuv2planeX,
yuv2interleavedX_fn  yuv2nv12cX,
yuv2packed1_fn  yuv2packed1,
yuv2packed2_fn  yuv2packed2,
yuv2packedX_fn  yuv2packedX,
yuv2anyX_fn  yuv2anyX,
int  use_mmx 
)

setup vertical scaler functions

Definition at line 250 of file vscale.c.

Referenced by ff_init_vscale(), and swscale().

Variable Documentation

const uint64_t ff_dither4[2]

Referenced by yuv420_rgb16_TMPL().

const uint64_t ff_dither8[2]
const uint8_t ff_dither_2x2_4[3][8]

Definition at line 39 of file output.c.

Referenced by yuv2rgb_write().

const uint8_t ff_dither_2x2_8[3][8]

Definition at line 45 of file output.c.

Referenced by yuv2rgb_write().

const uint8_t ff_dither_4x4_16[5][8]

Definition at line 51 of file output.c.

Referenced by yuv2rgb_write().

const uint8_t ff_dither_8x8_32[9][8]

Definition at line 59 of file output.c.

Referenced by yuv2rgb_write().

const uint8_t ff_dither_8x8_73[9][8]

Definition at line 71 of file output.c.

Referenced by yuv2rgb_write().

const uint8_t ff_dither_8x8_128[9][8]

Definition at line 39 of file swscale.c.

Referenced by swscale().

const uint8_t ff_dither_8x8_220[9][8]
const int32_t ff_yuv2rgb_coeffs[11][4]

Definition at line 49 of file yuv2rgb.c.

Referenced by sws_getCoefficients(), and sws_init_context().

const AVClass ff_sws_context_class

Definition at line 87 of file options.c.

Referenced by sws_alloc_context(), and sws_get_class().