Go to the documentation of this file.
42 #define DITHER1XBPP // only for MMX
47 #define COMPILE_TEMPLATE_MMX
48 #define RENAME(a) a ## _mmx
50 #undef COMPILE_TEMPLATE_MMX
55 #define COMPILE_TEMPLATE_MMXEXT
56 #define RENAME(a) a ## _mmxext
58 #undef COMPILE_TEMPLATE_MMXEXT
62 #define COMPILE_TEMPLATE_SSSE3
63 #define RENAME(a) a ## _ssse3
74 switch (
c->dstFormat) {
77 #if CONFIG_SWSCALE_ALPHA
78 return yuva420_rgb32_ssse3;
82 return yuv420_rgb32_ssse3;
85 #if CONFIG_SWSCALE_ALPHA
86 return yuva420_bgr32_ssse3;
90 return yuv420_bgr32_ssse3;
92 return yuv420_rgb24_ssse3;
94 return yuv420_bgr24_ssse3;
96 return yuv420_rgb16_ssse3;
98 return yuv420_rgb15_ssse3;
103 switch (
c->dstFormat) {
105 return yuv420_rgb24_mmxext;
107 return yuv420_bgr24_mmxext;
112 switch (
c->dstFormat) {
115 #if CONFIG_SWSCALE_ALPHA
116 return yuva420_rgb32_mmx;
120 return yuv420_rgb32_mmx;
123 #if CONFIG_SWSCALE_ALPHA
124 return yuva420_bgr32_mmx;
128 return yuv420_bgr32_mmx;
130 return yuv420_rgb16_mmx;
132 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)