#include "config.h"#include "libavutil/avutil.h"Go to the source code of this file.
Data Structures | |
| struct | SwsContext |
Defines | |
| #define | STR(s) AV_TOSTRING(s) |
| #define | MAX_FILTER_SIZE 256 |
| #define | VOFW 2048 |
| #define | VOF (VOFW*2) |
| #define | ALT32_CORR 1 |
| #define | APCK_PTR2 4 |
| #define | APCK_COEF 8 |
| #define | APCK_SIZE 16 |
| #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*256" |
| #define | DSTW_OFFSET "11*8+4*4*256*2" |
| #define | ESP_OFFSET "11*8+4*4*256*2+8" |
| #define | VROUNDER_OFFSET "11*8+4*4*256*2+16" |
| #define | U_TEMP "11*8+4*4*256*2+24" |
| #define | V_TEMP "11*8+4*4*256*2+32" |
| #define | Y_TEMP "11*8+4*4*256*2+40" |
| #define | ALP_MMX_FILTER_OFFSET "11*8+4*4*256*2+48" |
| #define | is16BPS(x) |
| #define | isBE(x) ((x)&1) |
| #define | isPlanar8YUV(x) |
| #define | isPlanarYUV(x) |
| #define | isYUV(x) |
| #define | isGray(x) |
| #define | isGray16(x) |
| #define | isRGBinInt(x) |
| #define | isBGRinInt(x) |
| #define | isRGBinBytes(x) |
| #define | isBGRinBytes(x) |
| #define | isAnyRGB(x) |
| #define | isALPHA(x) |
| #define | usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) |
Typedefs | |
| typedef int(* | SwsFunc )(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) |
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_altivec (SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation) |
| SwsFunc | ff_yuv2rgb_init_mmx (SwsContext *c) |
| SwsFunc | ff_yuv2rgb_init_vis (SwsContext *c) |
| SwsFunc | ff_yuv2rgb_init_mlib (SwsContext *c) |
| SwsFunc | ff_yuv2rgb_init_altivec (SwsContext *c) |
| SwsFunc | ff_yuv2rgb_get_func_ptr_bfin (SwsContext *c) |
| void | ff_bfin_get_unscaled_swscale (SwsContext *c) |
| void | ff_yuv2packedX_altivec (SwsContext *c, const int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) |
| const char * | sws_format_name (enum PixelFormat format) |
| void | ff_get_unscaled_swscale (SwsContext *c) |
| Sets c->swScale to an unscaled converter if one exists for the specific source and destination formats, bit depths, flags, etc. | |
| int | ff_hardcodedcpuflags (void) |
| Returns the SWS_CPU_CAPS for the optimized code compiled into swscale. | |
| SwsFunc | ff_getSwsFunc (SwsContext *c) |
| Returns function pointer to fastest main scaler path function depending on architecture and available optimizations. | |
Variables | |
| const uint64_t | ff_dither4 [2] |
| const uint64_t | ff_dither8 [2] |
| const AVClass | sws_context_class |
| #define ALP_MMX_FILTER_OFFSET "11*8+4*4*256*2+48" |
Definition at line 200 of file swscale_internal.h.
Referenced by yuv2packedX_TMPL(), and yuv2yuvX_TMPL().
| #define ALT32_CORR 1 |
| #define APCK_COEF 8 |
Definition at line 56 of file swscale_internal.h.
| #define APCK_PTR2 4 |
Definition at line 55 of file swscale_internal.h.
| #define APCK_SIZE 16 |
| #define BLUE_DITHER "2*8" |
Definition at line 183 of file swscale_internal.h.
Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().
| #define CHR_MMX_FILTER_OFFSET "11*8+4*4*256" |
| #define DSTW_OFFSET "11*8+4*4*256*2" |
Definition at line 194 of file swscale_internal.h.
| #define ESP_OFFSET "11*8+4*4*256*2+8" |
| #define GREEN_DITHER "1*8" |
Definition at line 182 of file swscale_internal.h.
Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().
| #define is16BPS | ( | x | ) |
Value:
( \
(x)==PIX_FMT_GRAY16BE \
|| (x)==PIX_FMT_GRAY16LE \
|| (x)==PIX_FMT_RGB48BE \
|| (x)==PIX_FMT_RGB48LE \
|| (x)==PIX_FMT_YUV420P16LE \
|| (x)==PIX_FMT_YUV422P16LE \
|| (x)==PIX_FMT_YUV444P16LE \
|| (x)==PIX_FMT_YUV420P16BE \
|| (x)==PIX_FMT_YUV422P16BE \
|| (x)==PIX_FMT_YUV444P16BE \
)
Definition at line 341 of file swscale_internal.h.
Referenced by planarCopyWrapper().
| #define isALPHA | ( | x | ) |
Value:
( \
(x)==PIX_FMT_BGR32 \
|| (x)==PIX_FMT_BGR32_1 \
|| (x)==PIX_FMT_RGB32 \
|| (x)==PIX_FMT_RGB32_1 \
|| (x)==PIX_FMT_YUVA420P \
)
Definition at line 438 of file swscale_internal.h.
| #define isAnyRGB | ( | x | ) |
Value:
( \
isRGBinInt(x) \
|| isBGRinInt(x) \
)
Definition at line 434 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), and sws_getContext().
| #define isBE | ( | x | ) | ((x)&1) |
Definition at line 353 of file swscale_internal.h.
Referenced by planarCopyWrapper(), and yuv2yuvX16inC().
| #define isBGRinBytes | ( | x | ) |
Value:
( \
(x)==PIX_FMT_BGRA \
|| (x)==PIX_FMT_ABGR \
|| (x)==PIX_FMT_BGR24 \
)
Definition at line 429 of file swscale_internal.h.
| #define isBGRinInt | ( | x | ) |
Value:
( \
(x)==PIX_FMT_BGR32 \
|| (x)==PIX_FMT_BGR32_1 \
|| (x)==PIX_FMT_BGR24 \
|| (x)==PIX_FMT_BGR565BE \
|| (x)==PIX_FMT_BGR565LE \
|| (x)==PIX_FMT_BGR555BE \
|| (x)==PIX_FMT_BGR555LE \
|| (x)==PIX_FMT_BGR444BE \
|| (x)==PIX_FMT_BGR444LE \
|| (x)==PIX_FMT_BGR8 \
|| (x)==PIX_FMT_BGR4 \
|| (x)==PIX_FMT_BGR4_BYTE \
|| (x)==PIX_FMT_MONOBLACK \
|| (x)==PIX_FMT_MONOWHITE \
)
Definition at line 406 of file swscale_internal.h.
Referenced by rgbToRgbWrapper().
| #define isGray | ( | x | ) |
Value:
( \
(x)==PIX_FMT_GRAY8 \
|| (x)==PIX_FMT_GRAY16BE \
|| (x)==PIX_FMT_GRAY16LE \
)
Definition at line 379 of file swscale_internal.h.
| #define isGray16 | ( | x | ) |
Value:
( \
(x)==PIX_FMT_GRAY16BE \
|| (x)==PIX_FMT_GRAY16LE \
)
Definition at line 384 of file swscale_internal.h.
| #define isPlanar8YUV | ( | x | ) |
Value:
( \
(x)==PIX_FMT_YUV410P \
|| (x)==PIX_FMT_YUV420P \
|| (x)==PIX_FMT_YUVA420P \
|| (x)==PIX_FMT_YUV411P \
|| (x)==PIX_FMT_YUV422P \
|| (x)==PIX_FMT_YUV444P \
|| (x)==PIX_FMT_YUV440P \
|| (x)==PIX_FMT_NV12 \
|| (x)==PIX_FMT_NV21 \
)
Definition at line 354 of file swscale_internal.h.
| #define isPlanarYUV | ( | x | ) |
Value:
( \
isPlanar8YUV(x) \
|| (x)==PIX_FMT_YUV420P16LE \
|| (x)==PIX_FMT_YUV422P16LE \
|| (x)==PIX_FMT_YUV444P16LE \
|| (x)==PIX_FMT_YUV420P16BE \
|| (x)==PIX_FMT_YUV422P16BE \
|| (x)==PIX_FMT_YUV444P16BE \
)
Definition at line 365 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), reset_ptr(), and sws_getContext().
| #define isRGBinBytes | ( | x | ) |
Value:
( \
(x)==PIX_FMT_RGB48BE \
|| (x)==PIX_FMT_RGB48LE \
|| (x)==PIX_FMT_RGBA \
|| (x)==PIX_FMT_ARGB \
|| (x)==PIX_FMT_RGB24 \
)
Definition at line 422 of file swscale_internal.h.
| #define isRGBinInt | ( | x | ) |
Value:
( \
(x)==PIX_FMT_RGB48BE \
|| (x)==PIX_FMT_RGB48LE \
|| (x)==PIX_FMT_RGB32 \
|| (x)==PIX_FMT_RGB32_1 \
|| (x)==PIX_FMT_RGB24 \
|| (x)==PIX_FMT_RGB565BE \
|| (x)==PIX_FMT_RGB565LE \
|| (x)==PIX_FMT_RGB555BE \
|| (x)==PIX_FMT_RGB555LE \
|| (x)==PIX_FMT_RGB444BE \
|| (x)==PIX_FMT_RGB444LE \
|| (x)==PIX_FMT_RGB8 \
|| (x)==PIX_FMT_RGB4 \
|| (x)==PIX_FMT_RGB4_BYTE \
|| (x)==PIX_FMT_MONOBLACK \
|| (x)==PIX_FMT_MONOWHITE \
)
Definition at line 388 of file swscale_internal.h.
Referenced by rgbToRgbWrapper().
| #define isYUV | ( | x | ) |
Value:
( \
(x)==PIX_FMT_UYVY422 \
|| (x)==PIX_FMT_YUYV422 \
|| isPlanarYUV(x) \
)
Definition at line 374 of file swscale_internal.h.
Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().
| #define LUM_MMX_FILTER_OFFSET "11*8" |
| #define MAX_FILTER_SIZE 256 |
| #define RED_DITHER "0*8" |
Definition at line 181 of file swscale_internal.h.
Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().
| #define STR | ( | s | ) | AV_TOSTRING(s) |
| #define U_OFFSET "9*8" |
Definition at line 190 of file swscale_internal.h.
| #define U_TEMP "11*8+4*4*256*2+24" |
Definition at line 197 of file swscale_internal.h.
Referenced by yuv2packed2_TMPL(), and yuv2packedX_TMPL().
| #define UB_COEFF "5*8" |
Definition at line 186 of file swscale_internal.h.
| #define UG_COEFF "7*8" |
Definition at line 188 of file swscale_internal.h.
| #define usePal | ( | x | ) | (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) |
Definition at line 445 of file swscale_internal.h.
Referenced by ff_get_unscaled_swscale(), palToRgbWrapper(), reset_ptr(), and sws_scale().
| #define V_OFFSET "10*8" |
Definition at line 191 of file swscale_internal.h.
| #define V_TEMP "11*8+4*4*256*2+32" |
Definition at line 198 of file swscale_internal.h.
Referenced by yuv2packed2_TMPL(), and yuv2packedX_TMPL().
| #define VG_COEFF "6*8" |
Definition at line 187 of file swscale_internal.h.
| #define VOF (VOFW*2) |
Definition at line 42 of file swscale_internal.h.
Referenced by hcscale_fast_TMPL(), sws_getContext(), and yuv2yuvX_TMPL().
| #define VOFW 2048 |
Definition at line 39 of file swscale_internal.h.
Referenced by chrRangeFromJpeg_TMPL(), chrRangeToJpeg_TMPL(), hcscale_fast_TMPL(), hcscale_TMPL(), sws_getContext(), yuv2nv12XinC(), yuv2yuv1_TMPL(), yuv2yuvX16inC_template(), and yuv2yuvXinC().
| #define VR_COEFF "4*8" |
Definition at line 185 of file swscale_internal.h.
| #define VROUNDER_OFFSET "11*8+4*4*256*2+16" |
Definition at line 196 of file swscale_internal.h.
| #define Y_COEFF "3*8" |
Definition at line 184 of file swscale_internal.h.
| #define Y_OFFSET "8*8" |
Definition at line 189 of file swscale_internal.h.
| #define Y_TEMP "11*8+4*4*256*2+40" |
| typedef int(* SwsFunc)(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) |
Definition at line 62 of file swscale_internal.h.
| void ff_bfin_get_unscaled_swscale | ( | SwsContext * | c | ) |
| void ff_get_unscaled_swscale | ( | SwsContext * | c | ) |
Sets c->swScale to an unscaled converter if one exists for the specific source and destination formats, bit depths, flags, etc.
Definition at line 1704 of file swscale.c.
Referenced by sws_getContext().
| SwsFunc ff_getSwsFunc | ( | SwsContext * | c | ) |
Returns function pointer to fastest main scaler path function depending on architecture and available optimizations.
CONFIG_RUNTIME_CPUDETECT
Definition at line 1240 of file swscale.c.
Referenced by sws_getContext().
| int ff_hardcodedcpuflags | ( | void | ) |
Returns the SWS_CPU_CAPS for the optimized code compiled into swscale.
Definition at line 1687 of file swscale.c.
Referenced by sws_getContext().
| void ff_yuv2packedX_altivec | ( | SwsContext * | c, | |
| const int16_t * | lumFilter, | |||
| int16_t ** | lumSrc, | |||
| int | lumFilterSize, | |||
| const int16_t * | chrFilter, | |||
| int16_t ** | chrSrc, | |||
| int | chrFilterSize, | |||
| uint8_t * | dest, | |||
| int | dstW, | |||
| int | dstY | |||
| ) |
| int ff_yuv2rgb_c_init_tables | ( | SwsContext * | c, | |
| const int | inv_table[4], | |||
| int | fullRange, | |||
| int | brightness, | |||
| int | contrast, | |||
| int | saturation | |||
| ) |
| SwsFunc ff_yuv2rgb_get_func_ptr | ( | SwsContext * | c | ) |
| SwsFunc ff_yuv2rgb_get_func_ptr_bfin | ( | SwsContext * | c | ) |
| SwsFunc ff_yuv2rgb_init_altivec | ( | SwsContext * | c | ) |
| SwsFunc ff_yuv2rgb_init_mlib | ( | SwsContext * | c | ) |
| SwsFunc ff_yuv2rgb_init_mmx | ( | SwsContext * | c | ) |
Referenced by ff_yuv2rgb_get_func_ptr().
| void ff_yuv2rgb_init_tables_altivec | ( | SwsContext * | c, | |
| const int | inv_table[4], | |||
| int | brightness, | |||
| int | contrast, | |||
| int | saturation | |||
| ) |
| SwsFunc ff_yuv2rgb_init_vis | ( | SwsContext * | c | ) |
| const char* sws_format_name | ( | enum PixelFormat | format | ) |
| const uint64_t ff_dither4[2] |
Referenced by yuv420_rgb16_TMPL().
| const uint64_t ff_dither8[2] |
Referenced by yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().
| const AVClass sws_context_class |
1.5.8