33 #include "libswscale/swscale.h"
35 #include "libavutil/attributes.h"
37 #include "libavutil/cpu.h"
41 #define DITHER1XBPP // only for MMX
54 #undef COMPILE_TEMPLATE_MMXEXT
55 #define COMPILE_TEMPLATE_MMXEXT 0
56 #define RENAME(a) a ## _MMX
61 #if HAVE_MMXEXT_INLINE
63 #undef COMPILE_TEMPLATE_MMXEXT
64 #define COMPILE_TEMPLATE_MMXEXT 1
65 #define RENAME(a) a ## _MMXEXT
76 #if HAVE_MMXEXT_INLINE
80 return yuv420_rgb24_MMXEXT;
82 return yuv420_bgr24_MMXEXT;
91 #if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
92 return yuva420_rgb32_MMX;
95 }
else return yuv420_rgb32_MMX;
98 #if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
99 return yuva420_bgr32_MMX;
102 }
else return yuv420_bgr32_MMX;
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
packed RGB 8:8:8, 24bpp, RGBRGB...
packed RGB 8:8:8, 24bpp, BGRBGR...
#define DECLARE_ASM_CONST(n, t, v)
#define AV_PIX_FMT_RGB555
SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
enum AVPixelFormat dstFormat
Destination pixel format.
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define AV_CPU_FLAG_MMX
standard MMX
#define AV_PIX_FMT_RGB565
int(* SwsFunc)(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
enum AVPixelFormat srcFormat
Source pixel format.