libswscale/rgb2rgb_template.c File Reference

#include <stddef.h>

Go to the source code of this file.

Defines

#define MMREG_SIZE   8
#define PREFETCH   "prefetch"
#define PREFETCHW   "prefetchw"
#define PAVGB   "pavgusb"
#define EMMS   "femms"
#define MOVNTQ   "movq"
#define SFENCE   " # nop"

Functions

static void rgb24tobgr32_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr24_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15to16_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16to15_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32to16_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr16_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32to15_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr15_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr16_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24to16_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr15_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24to15_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15tobgr24_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16tobgr24_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15to32_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16to32_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr32_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr24_TMPL (const uint8_t *src, uint8_t *dst, long src_size)
static void yuvPlanartoyuy2_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma)
static void yv12toyuy2_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
static void yuvPlanartouyvy_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma)
static void yv12touyvy_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride)
 Height should be a multiple of 2 and width should be a multiple of 16 (If this is a problem for anyone then tell me, and I will fix it.
static void yuv422ptouyvy_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride)
 Width should be a multiple of 16.
static void yuv422ptoyuy2_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride)
 Width should be a multiple of 16.
static void yuy2toyv12_TMPL (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
static void yvu9toyv12_TMPL (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride)
static void planar2x_TMPL (const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride)
static void uyvytoyv12_TMPL (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
static void rgb24toyv12_TMPL (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride)
 Height should be a multiple of 2 and width should be a multiple of 2.
static void interleaveBytes_TMPL (uint8_t *src1, uint8_t *src2, uint8_t *dest, long width, long height, long src1Stride, long src2Stride, long dstStride)
static void vu9_to_vu12_TMPL (const uint8_t *src1, const uint8_t *src2, uint8_t *dst1, uint8_t *dst2, long width, long height, long srcStride1, long srcStride2, long dstStride1, long dstStride2)
static void yvu9_to_yuy2_TMPL (const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, uint8_t *dst, long width, long height, long srcStride1, long srcStride2, long srcStride3, long dstStride)
static void rgb2rgb_init_TMPL (void)


Define Documentation

#define EMMS   "femms"

#define MMREG_SIZE   8

Definition at line 43 of file rgb2rgb_template.c.

#define MOVNTQ   "movq"

#define PAVGB   "pavgusb"

Definition at line 49 of file rgb2rgb_template.c.

#define PREFETCH   "prefetch"

Definition at line 47 of file rgb2rgb_template.c.

#define PREFETCHW   "prefetchw"

Definition at line 48 of file rgb2rgb_template.c.

#define SFENCE   " # nop"


Function Documentation

static void interleaveBytes_TMPL ( uint8_t *  src1,
uint8_t *  src2,
uint8_t *  dest,
long  width,
long  height,
long  src1Stride,
long  src2Stride,
long  dstStride 
) [static]

Definition at line 2432 of file rgb2rgb_template.c.

static void planar2x_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  srcWidth,
long  srcHeight,
long  srcStride,
long  dstStride 
) [inline, static]

Definition at line 1901 of file rgb2rgb_template.c.

static void rgb15to16_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 226 of file rgb2rgb_template.c.

static void rgb15to32_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 1205 of file rgb2rgb_template.c.

static void rgb15tobgr24_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 922 of file rgb2rgb_template.c.

static void rgb16to15_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 275 of file rgb2rgb_template.c.

static void rgb16to32_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 1283 of file rgb2rgb_template.c.

static void rgb16tobgr24_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 1064 of file rgb2rgb_template.c.

static void rgb24to15_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 838 of file rgb2rgb_template.c.

static void rgb24to16_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 712 of file rgb2rgb_template.c.

static void rgb24tobgr15_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 775 of file rgb2rgb_template.c.

static void rgb24tobgr16_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 649 of file rgb2rgb_template.c.

static void rgb24tobgr24_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 1419 of file rgb2rgb_template.c.

static void rgb24tobgr32_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 74 of file rgb2rgb_template.c.

static void rgb24toyv12_TMPL ( const uint8_t *  src,
uint8_t *  ydst,
uint8_t *  udst,
uint8_t *  vdst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  srcStride 
) [inline, static]

Height should be a multiple of 2 and width should be a multiple of 2.

(If this is a problem for anyone then tell me, and I will fix it.) Chrominance data is only taken from every second line, others are ignored in the C version. FIXME: Write HQ version.

Definition at line 2136 of file rgb2rgb_template.c.

static void rgb2rgb_init_TMPL ( void   )  [inline, static]

Definition at line 2707 of file rgb2rgb_template.c.

static void rgb32to15_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 490 of file rgb2rgb_template.c.

static void rgb32to16_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 331 of file rgb2rgb_template.c.

static void rgb32tobgr15_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 588 of file rgb2rgb_template.c.

static void rgb32tobgr16_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 429 of file rgb2rgb_template.c.

static void rgb32tobgr24_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 134 of file rgb2rgb_template.c.

static void rgb32tobgr32_TMPL ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 1355 of file rgb2rgb_template.c.

static void uyvytoyv12_TMPL ( const uint8_t *  src,
uint8_t *  ydst,
uint8_t *  udst,
uint8_t *  vdst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  srcStride 
) [inline, static]

Height should be a multiple of 2 and width should be a multiple of 16.

(If this is a problem for anyone then tell me, and I will fix it.) Chrominance data is only taken from every second line, others are ignored. FIXME: Write HQ version.

Definition at line 2009 of file rgb2rgb_template.c.

static void vu9_to_vu12_TMPL ( const uint8_t *  src1,
const uint8_t *  src2,
uint8_t *  dst1,
uint8_t *  dst2,
long  width,
long  height,
long  srcStride1,
long  srcStride2,
long  dstStride1,
long  dstStride2 
) [inline, static]

Definition at line 2513 of file rgb2rgb_template.c.

static void yuv422ptouyvy_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride 
) [inline, static]

Width should be a multiple of 16.

Definition at line 1750 of file rgb2rgb_template.c.

static void yuv422ptoyuy2_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride 
) [inline, static]

Width should be a multiple of 16.

Definition at line 1760 of file rgb2rgb_template.c.

static void yuvPlanartouyvy_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride,
long  vertLumPerChroma 
) [inline, static]

Definition at line 1641 of file rgb2rgb_template.c.

static void yuvPlanartoyuy2_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride,
long  vertLumPerChroma 
) [inline, static]

Definition at line 1489 of file rgb2rgb_template.c.

static void yuy2toyv12_TMPL ( const uint8_t *  src,
uint8_t *  ydst,
uint8_t *  udst,
uint8_t *  vdst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  srcStride 
) [inline, static]

Height should be a multiple of 2 and width should be a multiple of 16.

(If this is a problem for anyone then tell me, and I will fix it.)

Definition at line 1771 of file rgb2rgb_template.c.

static void yv12touyvy_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride 
) [inline, static]

Height should be a multiple of 2 and width should be a multiple of 16 (If this is a problem for anyone then tell me, and I will fix it.

)

Definition at line 1739 of file rgb2rgb_template.c.

static void yv12toyuy2_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  dst,
long  width,
long  height,
long  lumStride,
long  chromStride,
long  dstStride 
) [inline, static]

Height should be a multiple of 2 and width should be a multiple of 16.

(If this is a problem for anyone then tell me, and I will fix it.)

Definition at line 1633 of file rgb2rgb_template.c.

static void yvu9_to_yuy2_TMPL ( const uint8_t *  src1,
const uint8_t *  src2,
const uint8_t *  src3,
uint8_t *  dst,
long  width,
long  height,
long  srcStride1,
long  srcStride2,
long  srcStride3,
long  dstStride 
) [inline, static]

Definition at line 2616 of file rgb2rgb_template.c.

static void yvu9toyv12_TMPL ( const uint8_t *  ysrc,
const uint8_t *  usrc,
const uint8_t *  vsrc,
uint8_t *  ydst,
uint8_t *  udst,
uint8_t *  vdst,
long  width,
long  height,
long  lumStride,
long  chromStride 
) [inline, static]

Definition at line 1891 of file rgb2rgb_template.c.


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