#include <stddef.h>#include <inttypes.h>Go to the source code of this file.
Defines | |
| #define | __WORDSIZE MP_WORDSIZE |
| #define | MMREG_SIZE 8 |
| #define | PREFETCH "prefetch" |
| #define | PREFETCHW "prefetchw" |
| #define | PAVGB "pavgusb" |
| #define | EMMS "femms" |
| #define | MOVNTQ "movntq" |
| #define | SFENCE "sfence" |
Functions | |
| static void | rgb24to32_TMPL (const uint8_t *src, uint8_t *dst, long src_size) |
| static void | rgb32to24_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 | rgb24to16_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 | rgb24to15_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 | rgb15to24_TMPL (const uint8_t *src, uint8_t *dst, long src_size) |
| static void | rgb16to24_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 (if this is a problem for anyone then tell me, and I will fix it). | |
| 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 | 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 (if this is a problem for anyone then tell me, and I will fix it). | |
| 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 (if this is a problem for anyone then tell me, and I will fix it). | |
| 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 (if this is a problem for anyone then tell me, and I will fix it). | |
| 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 __WORDSIZE MP_WORDSIZE |
Definition at line 35 of file rgb2rgb_template.c.
| #define EMMS "femms" |
Definition at line 72 of file rgb2rgb_template.c.
Referenced by interleaveBytes_TMPL(), planar2x_TMPL(), rgb15to16_TMPL(), rgb15to24_TMPL(), rgb15to32_TMPL(), rgb16to15_TMPL(), rgb16to24_TMPL(), rgb16to32_TMPL(), rgb24to15_TMPL(), rgb24to16_TMPL(), rgb24to32_TMPL(), rgb24tobgr15_TMPL(), rgb24tobgr16_TMPL(), rgb24tobgr24_TMPL(), rgb24toyv12_TMPL(), rgb32to15_TMPL(), rgb32to16_TMPL(), rgb32to24_TMPL(), rgb32tobgr15_TMPL(), rgb32tobgr16_TMPL(), rgb32tobgr32_TMPL(), swScale_TMPL(), uyvytoyv12_TMPL(), vu9_to_vu12_TMPL(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_TMPL(), and yvu9_to_yuy2_TMPL().
| #define MMREG_SIZE 8 |
Definition at line 49 of file rgb2rgb_template.c.
| #define MOVNTQ "movntq" |
Definition at line 78 of file rgb2rgb_template.c.
Referenced by interleaveBytes_TMPL(), planar2x_TMPL(), rgb15to16_TMPL(), rgb15to24_TMPL(), rgb15to32_TMPL(), rgb16to15_TMPL(), rgb16to24_TMPL(), rgb16to32_TMPL(), rgb24to15_TMPL(), rgb24to16_TMPL(), rgb24to32_TMPL(), rgb24tobgr15_TMPL(), rgb24tobgr16_TMPL(), rgb24tobgr24_TMPL(), rgb24toyv12_TMPL(), rgb32to15_TMPL(), rgb32to16_TMPL(), rgb32to24_TMPL(), rgb32tobgr15_TMPL(), rgb32tobgr16_TMPL(), rgb32tobgr32_TMPL(), uyvytoyv12_TMPL(), vu9_to_vu12_TMPL(), yuv2packed2_TMPL(), yuv420_rgb16_TMPL(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_TMPL(), and yvu9_to_yuy2_TMPL().
| #define PAVGB "pavgusb" |
Definition at line 55 of file rgb2rgb_template.c.
| #define PREFETCH "prefetch" |
Definition at line 53 of file rgb2rgb_template.c.
| #define PREFETCHW "prefetchw" |
Definition at line 54 of file rgb2rgb_template.c.
| #define SFENCE "sfence" |
Definition at line 79 of file rgb2rgb_template.c.
Referenced by interleaveBytes_TMPL(), planar2x_TMPL(), rgb15to16_TMPL(), rgb15to24_TMPL(), rgb15to32_TMPL(), rgb16to15_TMPL(), rgb16to24_TMPL(), rgb16to32_TMPL(), rgb24to15_TMPL(), rgb24to16_TMPL(), rgb24to32_TMPL(), rgb24tobgr15_TMPL(), rgb24tobgr16_TMPL(), rgb24tobgr24_TMPL(), rgb24toyv12_TMPL(), rgb32to15_TMPL(), rgb32to16_TMPL(), rgb32to24_TMPL(), rgb32tobgr15_TMPL(), rgb32tobgr16_TMPL(), rgb32tobgr32_TMPL(), swScale_TMPL(), uyvytoyv12_TMPL(), vu9_to_vu12_TMPL(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_TMPL(), and yvu9_to_yuy2_TMPL().
| void interleaveBytes_TMPL | ( | uint8_t * | src1, | |
| uint8_t * | src2, | |||
| uint8_t * | dest, | |||
| long | width, | |||
| long | height, | |||
| long | src1Stride, | |||
| long | src2Stride, | |||
| long | dstStride | |||
| ) |
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.
Definition at line 237 of file rgb2rgb_template.c.
Definition at line 933 of file rgb2rgb_template.c.
Definition at line 1216 of file rgb2rgb_template.c.
Definition at line 286 of file rgb2rgb_template.c.
Definition at line 1075 of file rgb2rgb_template.c.
Definition at line 1294 of file rgb2rgb_template.c.
Definition at line 786 of file rgb2rgb_template.c.
Definition at line 660 of file rgb2rgb_template.c.
Definition at line 85 of file rgb2rgb_template.c.
| static void rgb24tobgr15_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 849 of file rgb2rgb_template.c.
| static void rgb24tobgr16_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 723 of file rgb2rgb_template.c.
| static void rgb24tobgr24_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 1429 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 secound 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.
Definition at line 501 of file rgb2rgb_template.c.
Definition at line 342 of file rgb2rgb_template.c.
Definition at line 145 of file rgb2rgb_template.c.
| static void rgb32tobgr15_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 599 of file rgb2rgb_template.c.
| static void rgb32tobgr16_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 440 of file rgb2rgb_template.c.
| static void rgb32tobgr32_TMPL | ( | const uint8_t * | src, | |
| uint8_t * | dst, | |||
| long | src_size | |||
| ) | [inline, static] |
Definition at line 1366 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 secound 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 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 1651 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 1499 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 1749 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 1643 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.
1.5.6