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 isPlanarYUV(x)
#define isYUV(x)
#define isGray(x)
#define isGray16(x)
#define isRGB(x)
#define isBGR(x)
#define isALPHA(x)

Typedefs

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

Functions

SwsFunc sws_yuv2rgb_get_func_ptr (SwsContext *c)
int sws_yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
void sws_yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation)
SwsFunc sws_yuv2rgb_init_altivec (SwsContext *c)
void altivec_yuv2packedX (SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY)
const char * sws_format_name (int format)
static int fmt_depth (int fmt)

Variables

const uint64_t ff_dither4 [2]
const uint64_t ff_dither8 [2]
const AVClass sws_context_class


Define Documentation

#define ALT32_CORR   1

Definition at line 42 of file swscale_internal.h.

Referenced by hcscale_TMPL(), hyscale_TMPL(), and rgb2rgbWrapper().

#define APCK_COEF   8

Definition at line 51 of file swscale_internal.h.

#define APCK_PTR2   4

Definition at line 50 of file swscale_internal.h.

#define APCK_SIZE   16

Definition at line 52 of file swscale_internal.h.

Referenced by initFilter().

#define BLUE_DITHER   "2*8"

Definition at line 143 of file swscale_internal.h.

Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), and yuv420_rgb16_TMPL().

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

Definition at line 153 of file swscale_internal.h.

Referenced by yuv2yuvX_TMPL().

#define DSTW_OFFSET   "11*8+4*4*256*2"

Definition at line 154 of file swscale_internal.h.

#define ESP_OFFSET   "11*8+4*4*256*2+8"

Definition at line 155 of file swscale_internal.h.

Referenced by yuv2packed2_TMPL().

#define GREEN_DITHER   "1*8"

Definition at line 142 of file swscale_internal.h.

Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), and yuv420_rgb16_TMPL().

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

#define isBGR (  ) 

Value:

(           \
           (x)==PIX_FMT_BGR32       \
        || (x)==PIX_FMT_BGR32_1     \
        || (x)==PIX_FMT_BGR24       \
        || (x)==PIX_FMT_BGR565      \
        || (x)==PIX_FMT_BGR555      \
        || (x)==PIX_FMT_BGR8        \
        || (x)==PIX_FMT_BGR4        \
        || (x)==PIX_FMT_BGR4_BYTE   \
        || (x)==PIX_FMT_MONOBLACK   \
        || (x)==PIX_FMT_MONOWHITE   \
    )

Definition at line 264 of file swscale_internal.h.

Referenced by hcscale_TMPL(), hyscale_TMPL(), rgb2rgbWrapper(), and sws_getContext().

#define isGray (  ) 

#define isGray16 (  ) 

Value:

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

Definition at line 248 of file swscale_internal.h.

Referenced by sws_getContext().

#define isPlanarYUV (  ) 

Value:

(           \
           (x)==PIX_FMT_YUV410P     \
        || (x)==PIX_FMT_YUV420P     \
        || (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 228 of file swscale_internal.h.

Referenced by sws_getContext().

#define isRGB (  ) 

Value:

(           \
           (x)==PIX_FMT_RGB32       \
        || (x)==PIX_FMT_RGB32_1     \
        || (x)==PIX_FMT_RGB24       \
        || (x)==PIX_FMT_RGB565      \
        || (x)==PIX_FMT_RGB555      \
        || (x)==PIX_FMT_RGB8        \
        || (x)==PIX_FMT_RGB4        \
        || (x)==PIX_FMT_RGB4_BYTE   \
        || (x)==PIX_FMT_MONOBLACK   \
        || (x)==PIX_FMT_MONOWHITE   \
    )

Definition at line 252 of file swscale_internal.h.

Referenced by hcscale_TMPL(), hyscale_TMPL(), rgb2rgbWrapper(), and sws_getContext().

#define isYUV (  ) 

Value:

(           \
           (x)==PIX_FMT_UYVY422     \
        || (x)==PIX_FMT_YUYV422     \
        || isPlanarYUV(x)           \
    )

Definition at line 238 of file swscale_internal.h.

Referenced by sws_getColorspaceDetails(), and sws_setColorspaceDetails().

#define LUM_MMX_FILTER_OFFSET   "11*8"

Definition at line 152 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"

Definition at line 141 of file swscale_internal.h.

Referenced by yuv2packed2_TMPL(), yuv2packedX_TMPL(), and yuv420_rgb16_TMPL().

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

#define U_TEMP   "11*8+4*4*256*2+24"

Definition at line 157 of file swscale_internal.h.

#define UB_COEFF   "5*8"

Definition at line 146 of file swscale_internal.h.

#define UG_COEFF   "7*8"

Definition at line 148 of file swscale_internal.h.

#define V_OFFSET   "10*8"

Definition at line 151 of file swscale_internal.h.

#define V_TEMP   "11*8+4*4*256*2+32"

Definition at line 158 of file swscale_internal.h.

#define VG_COEFF   "6*8"

Definition at line 147 of file swscale_internal.h.

#define VOF   (VOFW*2)

Definition at line 37 of file swscale_internal.h.

Referenced by hcscale_TMPL(), sws_getContext(), and yuv2yuvX_TMPL().

#define VOFW   2048

#define VR_COEFF   "4*8"

Definition at line 145 of file swscale_internal.h.

#define VROUNDER_OFFSET   "11*8+4*4*256*2+16"

Definition at line 156 of file swscale_internal.h.

#define Y_COEFF   "3*8"

Definition at line 144 of file swscale_internal.h.

#define Y_OFFSET   "8*8"

Definition at line 149 of file swscale_internal.h.


Typedef Documentation

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

Definition at line 57 of file swscale_internal.h.


Function Documentation

void altivec_yuv2packedX ( SwsContext c,
int16_t *  lumFilter,
int16_t **  lumSrc,
int  lumFilterSize,
int16_t *  chrFilter,
int16_t **  chrSrc,
int  chrFilterSize,
uint8_t *  dest,
int  dstW,
int  dstY 
)

Definition at line 789 of file yuv2rgb_altivec.c.

Referenced by yuv2packedX_TMPL().

static int fmt_depth ( int  fmt  )  [inline, static]

const char* sws_format_name ( int  format  ) 

void sws_yuv2rgb_altivec_init_tables ( 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().

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

Definition at line 520 of file yuv2rgb.c.

Referenced by sws_setColorspaceDetails().

SwsFunc sws_yuv2rgb_get_func_ptr ( SwsContext c  ) 

Definition at line 429 of file yuv2rgb.c.

Referenced by sws_getContext().

SwsFunc sws_yuv2rgb_init_altivec ( SwsContext c  ) 

Definition at line 693 of file yuv2rgb_altivec.c.

Referenced by sws_yuv2rgb_get_func_ptr().


Variable Documentation

const uint64_t ff_dither4[2]

Referenced by yuv420_rgb16_TMPL().

const uint64_t ff_dither8[2]

Referenced by yuv420_rgb16_TMPL().

Definition at line 60 of file swscale_avoption.c.

Referenced by sws_getContext().


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8