libswscale/swscale_template.c File Reference

Go to the source code of this file.

Defines

#define YUV_NBPS(depth, endianness, rfunc)
#define DEBUG_SWSCALE_BUFFERS   0
#define DEBUG_BUFFERS(...)   if (DEBUG_SWSCALE_BUFFERS) av_log(c, AV_LOG_DEBUG, __VA_ARGS__)

Functions

static void yuv2yuvX_c (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, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, int dstW, int chrDstW, const uint8_t *lumDither, const uint8_t *chrDither)
static void yuv2nv12X_c (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, uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, enum PixelFormat dstFormat, const uint8_t *dither, const uint8_t *chrDither)
static void yuv2yuv1_c (SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc, const int16_t *chrVSrc, const int16_t *alpSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, int dstW, int chrDstW, const uint8_t *lumDither, const uint8_t *chrDither)
static void yuv2packedX_c (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 dstY)
 vertical scale YV12 to RGB
static void yuv2packed2_c (SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
 vertical bilinear scale YV12 to RGB
static void yuv2packed1_c (SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y)
 YV12 to RGB without scaling or interpolating.
static void yuy2ToY_c (uint8_t *dst, const uint8_t *src, int width, uint32_t *unused)
static void yuy2ToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void LEToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void uyvyToY_c (uint8_t *dst, const uint8_t *src, int width, uint32_t *unused)
static void uyvyToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void BEToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void nvXXtoUV_c (uint8_t *dst1, uint8_t *dst2, const uint8_t *src, int width)
static void nv12ToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void nv21ToUV_c (uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)
static void hScale_c (int16_t *dst, int dstW, const uint8_t *src, int srcW, int xInc, const int16_t *filter, const int16_t *filterPos, int filterSize)
static void updateMMXDitherTables (SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf)
static int swScale_c (SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
static void sws_init_swScale_c (SwsContext *c)


Define Documentation

#define DEBUG_BUFFERS ( ...   )     if (DEBUG_SWSCALE_BUFFERS) av_log(c, AV_LOG_DEBUG, __VA_ARGS__)

Definition at line 267 of file swscale_template.c.

#define DEBUG_SWSCALE_BUFFERS   0

Definition at line 266 of file swscale_template.c.

#define YUV_NBPS ( depth,
endianness,
rfunc   ) 

Value:

static inline void endianness ## depth ## ToUV_c(uint8_t *dstU, uint8_t *dstV, \
                                          const uint16_t *srcU, const uint16_t *srcV, \
                                          int width, uint32_t *unused) \
{ \
    int i; \
    for (i = 0; i < width; i++) { \
        dstU[i] = rfunc(&srcU[i])>>(depth-8); \
        dstV[i] = rfunc(&srcV[i])>>(depth-8); \
    } \
} \
\
static inline void endianness ## depth ## ToY_c(uint8_t *dstY, const uint16_t *srcY, int width, uint32_t *unused) \
{ \
    int i; \
    for (i = 0; i < width; i++) \
        dstY[i] = rfunc(&srcY[i])>>(depth-8); \
} \

Definition at line 206 of file swscale_template.c.


Function Documentation

static void BEToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 184 of file swscale_template.c.

static void hScale_c ( int16_t *  dst,
int  dstW,
const uint8_t *  src,
int  srcW,
int  xInc,
const int16_t *  filter,
const int16_t *  filterPos,
int  filterSize 
) [inline, static]

Definition at line 246 of file swscale_template.c.

static void LEToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 151 of file swscale_template.c.

static void nv12ToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 231 of file swscale_template.c.

static void nv21ToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 238 of file swscale_template.c.

static void nvXXtoUV_c ( uint8_t *  dst1,
uint8_t *  dst2,
const uint8_t *  src,
int  width 
) [inline, static]

Definition at line 194 of file swscale_template.c.

static void sws_init_swScale_c ( SwsContext c  )  [static]

Definition at line 600 of file swscale_template.c.

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

Definition at line 274 of file swscale_template.c.

static void updateMMXDitherTables ( SwsContext c,
int  dstY,
int  lumBufIndex,
int  chrBufIndex,
int  lastInLumBuf,
int  lastInChrBuf 
) [static]

static void uyvyToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 173 of file swscale_template.c.

static void uyvyToY_c ( uint8_t *  dst,
const uint8_t *  src,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 165 of file swscale_template.c.

static void yuv2nv12X_c ( 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,
uint8_t *  dest,
uint8_t *  uDest,
int  dstW,
int  chrDstW,
enum PixelFormat  dstFormat,
const uint8_t *  dither,
const uint8_t *  chrDither 
) [inline, static]

Definition at line 34 of file swscale_template.c.

static void yuv2packed1_c ( SwsContext c,
const uint16_t *  buf0,
const uint16_t *  ubuf0,
const uint16_t *  ubuf1,
const uint16_t *  vbuf0,
const uint16_t *  vbuf1,
const uint16_t *  abuf0,
uint8_t *  dest,
int  dstW,
int  uvalpha,
enum PixelFormat  dstFormat,
int  flags,
int  y 
) [inline, static]

YV12 to RGB without scaling or interpolating.

Definition at line 110 of file swscale_template.c.

static void yuv2packed2_c ( SwsContext c,
const uint16_t *  buf0,
const uint16_t *  buf1,
const uint16_t *  ubuf0,
const uint16_t *  ubuf1,
const uint16_t *  vbuf0,
const uint16_t *  vbuf1,
const uint16_t *  abuf0,
const uint16_t *  abuf1,
uint8_t *  dest,
int  dstW,
int  yalpha,
int  uvalpha,
int  y 
) [inline, static]

vertical bilinear scale YV12 to RGB

Definition at line 93 of file swscale_template.c.

static void yuv2packedX_c ( 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  dstY 
) [inline, static]

vertical scale YV12 to RGB

Definition at line 78 of file swscale_template.c.

static void yuv2yuv1_c ( SwsContext c,
const int16_t *  lumSrc,
const int16_t *  chrUSrc,
const int16_t *  chrVSrc,
const int16_t *  alpSrc,
uint8_t *  dest,
uint8_t *  uDest,
uint8_t *  vDest,
uint8_t *  aDest,
int  dstW,
int  chrDstW,
const uint8_t *  lumDither,
const uint8_t *  chrDither 
) [inline, static]

Definition at line 46 of file swscale_template.c.

static void yuv2yuvX_c ( 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,
uint8_t *  uDest,
uint8_t *  vDest,
uint8_t *  aDest,
int  dstW,
int  chrDstW,
const uint8_t *  lumDither,
const uint8_t *  chrDither 
) [inline, static]

Definition at line 21 of file swscale_template.c.

static void yuy2ToUV_c ( uint8_t *  dstU,
uint8_t *  dstV,
const uint8_t *  src1,
const uint8_t *  src2,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 140 of file swscale_template.c.

static void yuy2ToY_c ( uint8_t *  dst,
const uint8_t *  src,
int  width,
uint32_t *  unused 
) [inline, static]

Definition at line 132 of file swscale_template.c.


Generated on Fri Oct 26 02:38:22 2012 for FFmpeg by  doxygen 1.5.8