libswscale/swscale_internal.h File Reference

#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 Documentation

#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

Definition at line 47 of file swscale_internal.h.

Referenced by rgbToRgbWrapper().

#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

Definition at line 57 of file swscale_internal.h.

Referenced by initFilter().

#define BLUE_DITHER   "2*8"

#define CHR_MMX_FILTER_OFFSET   "11*8+4*4*256"

Definition at line 193 of file swscale_internal.h.

Referenced by yuv2yuvX_TMPL().

#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"

Definition at line 195 of file swscale_internal.h.

Referenced by yuv2packed2_TMPL().

#define GREEN_DITHER   "1*8"

#define is16BPS (  ) 

Value:

Definition at line 341 of file swscale_internal.h.

Referenced by planarCopyWrapper().

#define isALPHA (  ) 

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 (  ) 

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)&1)

Definition at line 353 of file swscale_internal.h.

Referenced by planarCopyWrapper(), and yuv2yuvX16inC().

#define isBGRinBytes (  ) 

Value:

(           \
           (x)==PIX_FMT_BGRA        \
        || (x)==PIX_FMT_ABGR        \
        || (x)==PIX_FMT_BGR24       \
    )

Definition at line 429 of file swscale_internal.h.

#define isBGRinInt (  ) 

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 (  ) 

Value:

(           \
           (x)==PIX_FMT_GRAY8       \
        || (x)==PIX_FMT_GRAY16BE    \
        || (x)==PIX_FMT_GRAY16LE    \
    )

Definition at line 379 of file swscale_internal.h.

#define isGray16 (  ) 

Value:

(           \
           (x)==PIX_FMT_GRAY16BE    \
        || (x)==PIX_FMT_GRAY16LE    \
    )

Definition at line 384 of file swscale_internal.h.

#define isPlanar8YUV (  ) 

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 (  ) 

Value:

Definition at line 365 of file swscale_internal.h.

Referenced by ff_get_unscaled_swscale(), reset_ptr(), and sws_getContext().

#define isRGBinBytes (  ) 

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 (  ) 

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 (  ) 

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"

Definition at line 192 of file swscale_internal.h.

Referenced by yuv2yuvX_TMPL().

#define MAX_FILTER_SIZE   256

Definition at line 34 of file swscale_internal.h.

Referenced by initFilter().

#define RED_DITHER   "0*8"

#define STR (  )     AV_TOSTRING(s)

Definition at line 32 of file swscale_internal.h.

Referenced by av_register_all().

#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 (  )     (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

#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"

Definition at line 199 of file swscale_internal.h.

Referenced by yuv2packedX_TMPL().


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 62 of file swscale_internal.h.


Function Documentation

void ff_bfin_get_unscaled_swscale ( SwsContext c  ) 

Definition at line 79 of file swscale_bfin.c.

Referenced by ff_get_unscaled_swscale().

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 
)

Definition at line 780 of file yuv2rgb_altivec.c.

Referenced by yuv2packedX_TMPL().

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

Definition at line 623 of file yuv2rgb.c.

Referenced by sws_setColorspaceDetails().

SwsFunc ff_yuv2rgb_get_func_ptr ( SwsContext c  ) 

Definition at line 543 of file yuv2rgb.c.

Referenced by ff_get_unscaled_swscale().

SwsFunc ff_yuv2rgb_get_func_ptr_bfin ( SwsContext c  ) 

Definition at line 184 of file yuv2rgb_bfin.c.

Referenced by ff_yuv2rgb_get_func_ptr().

SwsFunc ff_yuv2rgb_init_altivec ( SwsContext c  ) 

Definition at line 693 of file yuv2rgb_altivec.c.

Referenced by ff_yuv2rgb_get_func_ptr().

SwsFunc ff_yuv2rgb_init_mlib ( SwsContext c  ) 

Definition at line 79 of file yuv2rgb_mlib.c.

Referenced by ff_yuv2rgb_get_func_ptr().

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 
)

Definition at line 753 of file yuv2rgb_altivec.c.

Referenced by sws_setColorspaceDetails().

SwsFunc ff_yuv2rgb_init_vis ( SwsContext c  ) 

Definition at line 189 of file yuv2rgb_vis.c.

Referenced by ff_yuv2rgb_get_func_ptr().

const char* sws_format_name ( enum PixelFormat  format  ) 

Definition at line 153 of file utils.c.


Variable Documentation

const uint64_t ff_dither4[2]

Referenced by yuv420_rgb16_TMPL().

const uint64_t ff_dither8[2]

Definition at line 61 of file options.c.

Referenced by sws_getContext().


Generated on Fri Oct 26 02:36:56 2012 for FFmpeg by  doxygen 1.5.8