libswscale/rgb2rgb_template.c File Reference

#include <stddef.h>

Go to the source code of this file.

Functions

static void rgb24tobgr32_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb32tobgr24_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb15to16_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb16to15_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb32to16_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb32tobgr16_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb32to15_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb32tobgr15_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb24tobgr16_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb24to16_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb24tobgr15_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb24to15_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb15tobgr24_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb16tobgr24_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb15to32_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb16to32_c (const uint8_t *src, uint8_t *dst, int src_size)
static void shuffle_bytes_2103_c (const uint8_t *src, uint8_t *dst, int src_size)
static void rgb24tobgr24_c (const uint8_t *src, uint8_t *dst, int src_size)
static void yuvPlanartoyuy2_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int dstStride, int vertLumPerChroma)
static void yv12toyuy2_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int dstStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
static void yuvPlanartouyvy_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int dstStride, int vertLumPerChroma)
static void yv12touyvy_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int 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_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int dstStride)
 Width should be a multiple of 16.
static void yuv422ptoyuy2_c (const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, int width, int height, int lumStride, int chromStride, int dstStride)
 Width should be a multiple of 16.
static void yuy2toyv12_c (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
static void planar2x_c (const uint8_t *src, uint8_t *dst, int srcWidth, int srcHeight, int srcStride, int dstStride)
static void uyvytoyv12_c (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride)
 Height should be a multiple of 2 and width should be a multiple of 16.
void rgb24toyv12_c (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride)
 Height should be a multiple of 2 and width should be a multiple of 2.
static void interleaveBytes_c (const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride)
static void vu9_to_vu12_c (const uint8_t *src1, const uint8_t *src2, uint8_t *dst1, uint8_t *dst2, int width, int height, int srcStride1, int srcStride2, int dstStride1, int dstStride2)
static void yvu9_to_yuy2_c (const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, uint8_t *dst, int width, int height, int srcStride1, int srcStride2, int srcStride3, int dstStride)
static void extract_even_c (const uint8_t *src, uint8_t *dst, int count)
static void extract_even2_c (const uint8_t *src, uint8_t *dst0, uint8_t *dst1, int count)
static void extract_even2avg_c (const uint8_t *src0, const uint8_t *src1, uint8_t *dst0, uint8_t *dst1, int count)
static void extract_odd2_c (const uint8_t *src, uint8_t *dst0, uint8_t *dst1, int count)
static void extract_odd2avg_c (const uint8_t *src0, const uint8_t *src1, uint8_t *dst0, uint8_t *dst1, int count)
static void yuyvtoyuv420_c (uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride)
static void yuyvtoyuv422_c (uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride)
static void uyvytoyuv420_c (uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride)
static void uyvytoyuv422_c (uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride)
static void rgb2rgb_init_c (void)


Function Documentation

static void extract_even2_c ( const uint8_t src,
uint8_t dst0,
uint8_t dst1,
int  count 
) [static]

Definition at line 755 of file rgb2rgb_template.c.

Referenced by uyvytoyuv422_c().

static void extract_even2avg_c ( const uint8_t src0,
const uint8_t src1,
uint8_t dst0,
uint8_t dst1,
int  count 
) [static]

Definition at line 769 of file rgb2rgb_template.c.

Referenced by uyvytoyuv420_c().

static void extract_even_c ( const uint8_t src,
uint8_t dst,
int  count 
) [static]

Definition at line 744 of file rgb2rgb_template.c.

Referenced by uyvytoyuv420_c(), uyvytoyuv422_c(), yuyvtoyuv420_c(), and yuyvtoyuv422_c().

static void extract_odd2_c ( const uint8_t src,
uint8_t dst0,
uint8_t dst1,
int  count 
) [static]

Definition at line 784 of file rgb2rgb_template.c.

Referenced by yuyvtoyuv422_c().

static void extract_odd2avg_c ( const uint8_t src0,
const uint8_t src1,
uint8_t dst0,
uint8_t dst1,
int  count 
) [static]

Definition at line 799 of file rgb2rgb_template.c.

Referenced by yuyvtoyuv420_c().

static void interleaveBytes_c ( const uint8_t src1,
const uint8_t src2,
uint8_t dest,
int  width,
int  height,
int  src1Stride,
int  src2Stride,
int  dstStride 
) [static]

Definition at line 673 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void planar2x_c ( const uint8_t src,
uint8_t dst,
int  srcWidth,
int  srcHeight,
int  srcStride,
int  dstStride 
) [inline, static]

Definition at line 527 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb15to16_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 83 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb15to32_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 271 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb15tobgr24_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 241 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb16to15_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 102 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb16to32_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 293 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb16tobgr24_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 256 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24to15_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 227 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24to16_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 198 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24tobgr15_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 212 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24tobgr16_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 183 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24tobgr24_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 329 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb24tobgr32_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 29 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

void rgb24toyv12_c ( const uint8_t src,
uint8_t ydst,
uint8_t udst,
uint8_t vdst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  srcStride 
)

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 615 of file rgb2rgb_template.c.

Referenced by rgb24toyv12_TMPL(), and rgb2rgb_init_c().

static void rgb2rgb_init_c ( void   )  [inline, static]

Definition at line 892 of file rgb2rgb_template.c.

Referenced by sws_rgb2rgb_init().

static void rgb32to15_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 152 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb32to16_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 121 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb32tobgr15_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 167 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb32tobgr16_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 136 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void rgb32tobgr24_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 53 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void shuffle_bytes_2103_c ( const uint8_t src,
uint8_t dst,
int  src_size 
) [inline, static]

Definition at line 315 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void uyvytoyuv420_c ( uint8_t ydst,
uint8_t udst,
uint8_t vdst,
const uint8_t src,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  srcStride 
) [static]

Definition at line 854 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void uyvytoyuv422_c ( uint8_t ydst,
uint8_t udst,
uint8_t vdst,
const uint8_t src,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  srcStride 
) [static]

Definition at line 874 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void uyvytoyv12_c ( const uint8_t src,
uint8_t ydst,
uint8_t udst,
uint8_t vdst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  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 578 of file rgb2rgb_template.c.

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

Definition at line 691 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yuv422ptouyvy_c ( const uint8_t ysrc,
const uint8_t usrc,
const uint8_t vsrc,
uint8_t dst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  dstStride 
) [inline, static]

Width should be a multiple of 16.

Definition at line 472 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yuv422ptoyuy2_c ( const uint8_t ysrc,
const uint8_t usrc,
const uint8_t vsrc,
uint8_t dst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  dstStride 
) [inline, static]

Width should be a multiple of 16.

Definition at line 484 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

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

Definition at line 405 of file rgb2rgb_template.c.

Referenced by yuv422ptouyvy_c(), and yv12touyvy_c().

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

Definition at line 341 of file rgb2rgb_template.c.

Referenced by yuv422ptoyuy2_c(), and yv12toyuy2_c().

static void yuy2toyv12_c ( const uint8_t src,
uint8_t ydst,
uint8_t udst,
uint8_t vdst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  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 497 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yuyvtoyuv420_c ( uint8_t ydst,
uint8_t udst,
uint8_t vdst,
const uint8_t src,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  srcStride 
) [static]

Definition at line 816 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yuyvtoyuv422_c ( uint8_t ydst,
uint8_t udst,
uint8_t vdst,
const uint8_t src,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  srcStride 
) [static]

Definition at line 836 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yv12touyvy_c ( const uint8_t ysrc,
const uint8_t usrc,
const uint8_t vsrc,
uint8_t dst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  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 459 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

static void yv12toyuy2_c ( const uint8_t ysrc,
const uint8_t usrc,
const uint8_t vsrc,
uint8_t dst,
int  width,
int  height,
int  lumStride,
int  chromStride,
int  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 395 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().

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

Definition at line 715 of file rgb2rgb_template.c.

Referenced by rgb2rgb_init_c().


Generated on Fri Oct 26 02:48:03 2012 for FFmpeg by  doxygen 1.5.8