Libav
|
#include <stddef.h>
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/x86/asm.h"
Go to the source code of this file.
Macros | |
#define | PREFETCH " # nop" |
#define | EMMS "emms" |
#define | MOVNTQ "movq" |
#define | SFENCE " # nop" |
#define | STORE_BGR24_MMX |
#define | PACK_RGB32 |
Functions | |
static void RENAME() | rgb24tobgr32 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb32tobgr24 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb15to16 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb16to15 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb32to16 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb32tobgr16 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb32to15 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb32tobgr15 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb24tobgr16 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb24to16 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb24tobgr15 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb24to15 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb15tobgr24 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb16tobgr24 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb15to32 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb16to32 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | shuffle_bytes_2103 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | rgb24tobgr24 (const uint8_t *src, uint8_t *dst, int src_size) |
static void RENAME() | yuvPlanartoyuy2 (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 RENAME() | yv12toyuy2 (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. More... | |
static void RENAME() | yuvPlanartouyvy (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 RENAME() | yv12touyvy (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.) More... | |
static void RENAME() | yuv422ptouyvy (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. More... | |
static void RENAME() | yuv422ptoyuy2 (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. More... | |
static void RENAME() | yuy2toyv12 (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. More... | |
static void RENAME() | uyvytoyv12 (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. More... | |
static void RENAME() | rgb24toyv12 (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. More... | |
static void RENAME() | interleaveBytes (const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride) |
static void RENAME() | vu9_to_vu12 (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 RENAME() | yvu9_to_yuy2 (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 RENAME() | extract_even (const uint8_t *src, uint8_t *dst, x86_reg count) |
static void RENAME() | extract_even2 (const uint8_t *src, uint8_t *dst0, uint8_t *dst1, x86_reg count) |
static void RENAME() | extract_even2avg (const uint8_t *src0, const uint8_t *src1, uint8_t *dst0, uint8_t *dst1, x86_reg count) |
static void RENAME() | extract_odd2 (const uint8_t *src, uint8_t *dst0, uint8_t *dst1, x86_reg count) |
static void RENAME() | extract_odd2avg (const uint8_t *src0, const uint8_t *src1, uint8_t *dst0, uint8_t *dst1, x86_reg count) |
static void RENAME() | yuyvtoyuv420 (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 RENAME() | yuyvtoyuv422 (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 RENAME() | uyvytoyuv420 (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 RENAME() | uyvytoyuv422 (uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride) |
static av_cold void RENAME() | rgb2rgb_init (void) |
#define PREFETCH " # nop" |
Definition at line 46 of file rgb2rgb_template.c.
Referenced by interleaveBytes(), rgb15to16(), rgb15to32(), rgb15tobgr24(), rgb16to15(), rgb16to32(), rgb16tobgr24(), rgb24to15(), rgb24to16(), rgb24tobgr15(), rgb24tobgr16(), rgb24tobgr24(), rgb24tobgr32(), rgb24toyv12(), rgb32to15(), rgb32to16(), rgb32tobgr15(), rgb32tobgr16(), rgb32tobgr24(), shuffle_bytes_2103(), uyvytoyv12(), vu9_to_vu12(), yuvPlanartouyvy(), yuvPlanartoyuy2(), yuy2toyv12(), and yvu9_to_yuy2().
#define EMMS "emms" |
Definition at line 53 of file rgb2rgb_template.c.
Referenced by interleaveBytes(), rgb15to16(), rgb15to32(), rgb15tobgr24(), rgb16to15(), rgb16to32(), rgb16tobgr24(), rgb24to15(), rgb24to16(), rgb24tobgr15(), rgb24tobgr16(), rgb24tobgr24(), rgb24tobgr32(), rgb24toyv12(), rgb32to15(), rgb32to16(), rgb32tobgr15(), rgb32tobgr16(), rgb32tobgr24(), shuffle_bytes_2103(), uyvytoyuv420(), uyvytoyuv422(), uyvytoyv12(), vu9_to_vu12(), yuvPlanartouyvy(), yuvPlanartoyuy2(), yuy2toyv12(), yuyvtoyuv420(), yuyvtoyuv422(), and yvu9_to_yuy2().
#define MOVNTQ "movq" |
Definition at line 60 of file rgb2rgb_template.c.
Referenced by extract_even(), extract_even2(), extract_even2avg(), extract_odd2(), extract_odd2avg(), interleaveBytes(), rgb15to16(), rgb16to15(), rgb24to15(), rgb24to16(), rgb24tobgr15(), rgb24tobgr16(), rgb24tobgr24(), rgb24tobgr32(), rgb24toyv12(), rgb32to15(), rgb32to16(), rgb32tobgr15(), rgb32tobgr16(), shuffle_bytes_2103(), uyvytoyv12(), vu9_to_vu12(), yuvPlanartouyvy(), yuvPlanartoyuy2(), yuy2toyv12(), and yvu9_to_yuy2().
#define SFENCE " # nop" |
Definition at line 61 of file rgb2rgb_template.c.
Referenced by interleaveBytes(), rgb15to16(), rgb15to32(), rgb15tobgr24(), rgb16to15(), rgb16to32(), rgb16tobgr24(), rgb24to15(), rgb24to16(), rgb24tobgr15(), rgb24tobgr16(), rgb24tobgr24(), rgb24tobgr32(), rgb24toyv12(), rgb32to15(), rgb32to16(), rgb32tobgr15(), rgb32tobgr16(), rgb32tobgr24(), shuffle_bytes_2103(), uyvytoyuv420(), uyvytoyuv422(), uyvytoyv12(), vu9_to_vu12(), yuvPlanartouyvy(), yuvPlanartoyuy2(), yuy2toyv12(), yuyvtoyuv420(), yuyvtoyuv422(), and yvu9_to_yuy2().
#define STORE_BGR24_MMX |
Definition at line 112 of file rgb2rgb_template.c.
Referenced by rgb15tobgr24(), rgb16tobgr24(), and rgb32tobgr24().
#define PACK_RGB32 |
Definition at line 951 of file rgb2rgb_template.c.
Referenced by rgb15to32(), and rgb16to32().
Definition at line 68 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 149 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 191 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 234 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 282 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 332 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 387 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 437 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 492 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 549 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 606 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 663 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 741 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 843 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 963 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 1004 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Definition at line 1045 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 1107 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Definition at line 1174 of file rgb2rgb_template.c.
Referenced by yuv422ptoyuy2(), and yv12toyuy2().
|
inlinestatic |
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 1231 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Definition at line 1239 of file rgb2rgb_template.c.
Referenced by yuv422ptouyvy(), and yv12touyvy().
|
inlinestatic |
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 1296 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Width should be a multiple of 16.
Definition at line 1307 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Width should be a multiple of 16.
Definition at line 1317 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
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 1328 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
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 1526 of file rgb2rgb_template.c.
|
inlinestatic |
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 1632 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
static |
Definition at line 1877 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Definition at line 1974 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
inlinestatic |
Definition at line 2066 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
Definition at line 2153 of file rgb2rgb_template.c.
Referenced by uyvytoyuv420(), uyvytoyuv422(), yuyvtoyuv420(), and yuyvtoyuv422().
|
static |
Definition at line 2191 of file rgb2rgb_template.c.
Referenced by uyvytoyuv422().
|
static |
Definition at line 2238 of file rgb2rgb_template.c.
Referenced by uyvytoyuv420().
|
static |
Definition at line 2292 of file rgb2rgb_template.c.
Referenced by yuyvtoyuv422().
|
static |
Definition at line 2340 of file rgb2rgb_template.c.
Referenced by yuyvtoyuv420().
|
static |
Definition at line 2395 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
static |
Definition at line 2421 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
static |
Definition at line 2445 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().
|
static |
Definition at line 2471 of file rgb2rgb_template.c.
Referenced by rgb2rgb_init(), and rgb2rgb_init_c().