Go to the documentation of this file.
42 #define DITHER1XBPP // only for MMX
47 #undef COMPILE_TEMPLATE_MMXEXT
48 #define COMPILE_TEMPLATE_MMXEXT 0
49 #define RENAME(a) a ## _mmx
55 #undef COMPILE_TEMPLATE_MMXEXT
56 #define COMPILE_TEMPLATE_MMXEXT 1
57 #define RENAME(a) a ## _mmxext
62 #undef COMPILE_TEMPLATE_MMXEXT
63 #define COMPILE_TEMPLATE_MMXEXT 0
64 #define RENAME(a) a ## _ssse3
75 switch (
c->dstFormat) {
78 #if CONFIG_SWSCALE_ALPHA
79 return yuva420_rgb32_ssse3;
83 return yuv420_rgb32_ssse3;
86 #if CONFIG_SWSCALE_ALPHA
87 return yuva420_bgr32_ssse3;
91 return yuv420_bgr32_ssse3;
93 return yuv420_rgb24_ssse3;
95 return yuv420_bgr24_ssse3;
97 return yuv420_rgb16_ssse3;
99 return yuv420_rgb15_ssse3;
104 switch (
c->dstFormat) {
106 return yuv420_rgb24_mmxext;
108 return yuv420_bgr24_mmxext;
113 switch (
c->dstFormat) {
116 #if CONFIG_SWSCALE_ALPHA
117 return yuva420_rgb32_mmx;
121 return yuv420_rgb32_mmx;
124 #if CONFIG_SWSCALE_ALPHA
125 return yuva420_bgr32_mmx;
129 return yuv420_bgr32_mmx;
131 return yuv420_rgb24_mmx;
133 return yuv420_bgr24_mmx;
135 return yuv420_rgb16_mmx;
137 return yuv420_rgb15_mmx;
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static atomic_int cpu_flags
int(* SwsFunc)(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
#define AV_PIX_FMT_RGB555
#define AV_PIX_FMT_RGB565
#define EXTERNAL_SSSE3(flags)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_MMXEXT(flags)