Go to the documentation of this file.
42 #define DITHER1XBPP // only for MMX
53 #if HAVE_MMX_INLINE && HAVE_6REGS
55 #undef COMPILE_TEMPLATE_MMXEXT
56 #define COMPILE_TEMPLATE_MMXEXT 0
57 #define RENAME(a) a ## _mmx
62 #if HAVE_MMXEXT_INLINE && HAVE_6REGS
64 #undef COMPILE_TEMPLATE_MMXEXT
65 #define COMPILE_TEMPLATE_MMXEXT 1
66 #define RENAME(a) a ## _mmxext
74 #if HAVE_MMX_INLINE && HAVE_6REGS
77 #if HAVE_MMXEXT_INLINE
79 switch (
c->dstFormat) {
81 return yuv420_rgb24_mmxext;
83 return yuv420_bgr24_mmxext;
89 switch (
c->dstFormat) {
92 #if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
93 return yuva420_rgb32_mmx;
97 return yuv420_rgb32_mmx;
100 #if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
101 return yuva420_bgr32_mmx;
105 return yuv420_bgr32_mmx;
107 return yuv420_rgb24_mmx;
109 return yuv420_bgr24_mmx;
111 return yuv420_rgb16_mmx;
113 return yuv420_rgb15_mmx;
#define INLINE_MMX(flags)
#define DECLARE_ASM_CONST(n, t, v)
@ 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 INLINE_MMXEXT(flags)