libswscale/rgb2rgb_template.c File Reference

#include <stddef.h>

Go to the source code of this file.

Defines

#define MMREG_SIZE   8
#define PREFETCH   " # nop"
#define PREFETCHW   " # nop"
#define EMMS   "emms"
#define MOVNTQ   "movq"
#define SFENCE   " # nop"

Functions

static void rgb24tobgr32_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr24_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15to16_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16to15_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32to16_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr16_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32to15_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr15_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr16_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24to16_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr15_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24to15_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15tobgr24_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16tobgr24_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb15to32_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb16to32_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb32tobgr32_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void rgb24tobgr24_SSE2 (const uint8_t *src, uint8_t *dst, long src_size)
static void yuvPlanartoyuy2_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (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_SSE2 (const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride)
static void uyvytoyv12_SSE2 (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_SSE2 (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_SSE2 (uint8_t *src1, uint8_t *src2, uint8_t *dest, long width, long height, long src1Stride, long src2Stride, long dstStride)
static void vu9_to_vu12_SSE2 (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_SSE2 (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_SSE2 (void)

Define Documentation

#define EMMS   "emms"
#define MMREG_SIZE   8

Definition at line 43 of file rgb2rgb_template.c.

#define MOVNTQ   "movq"
#define PREFETCH   " # nop"

Definition at line 55 of file rgb2rgb_template.c.

#define PREFETCHW   " # nop"

Definition at line 56 of file rgb2rgb_template.c.

#define SFENCE   " # nop"

Function Documentation

static void interleaveBytes_SSE2 ( 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_SSE2 ( 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_SSE2 ( const uint8_t *  src,
uint8_t *  dst,
long  src_size 
) [inline, static]

Definition at line 226 of file rgb2rgb_template.c.

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

Definition at line 1205 of file rgb2rgb_template.c.

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

Definition at line 922 of file rgb2rgb_template.c.

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

Definition at line 275 of file rgb2rgb_template.c.

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

Definition at line 1283 of file rgb2rgb_template.c.

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

Definition at line 1064 of file rgb2rgb_template.c.

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

Definition at line 838 of file rgb2rgb_template.c.

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

Definition at line 712 of file rgb2rgb_template.c.

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

Definition at line 775 of file rgb2rgb_template.c.

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

Definition at line 649 of file rgb2rgb_template.c.

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

Definition at line 1419 of file rgb2rgb_template.c.

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

Definition at line 74 of file rgb2rgb_template.c.

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

Definition at line 2707 of file rgb2rgb_template.c.

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

Definition at line 490 of file rgb2rgb_template.c.

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

Definition at line 331 of file rgb2rgb_template.c.

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

Definition at line 588 of file rgb2rgb_template.c.

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

Definition at line 429 of file rgb2rgb_template.c.

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

Definition at line 134 of file rgb2rgb_template.c.

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

Definition at line 1355 of file rgb2rgb_template.c.

static void uyvytoyv12_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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_SSE2 ( 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 Sep 16 17:05:49 2011 for ffmpeg by  doxygen 1.6.3