#include <stdint.h>
#include "config.h"
#include "libavutil/x86_cpu.h"
#include "libavutil/cpu.h"
#include "libavutil/bswap.h"
#include "libswscale/rgb2rgb.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h"
#include "rgb2rgb_template.c"
Go to the source code of this file.
Defines | |
#define | mask16b mask15b |
#define | RGB2YUV_SHIFT 8 |
#define | BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5)) |
#define | COMPILE_TEMPLATE_MMX2 0 |
#define | COMPILE_TEMPLATE_AMD3DNOW 0 |
#define | COMPILE_TEMPLATE_SSE2 0 |
#define | RENAME(a) a ## _MMX |
#define | COMPILE_TEMPLATE_MMX2 1 |
#define | RENAME(a) a ## _MMX2 |
#define | COMPILE_TEMPLATE_SSE2 1 |
#define | RENAME(a) a ## _SSE2 |
#define | COMPILE_TEMPLATE_MMX2 0 |
#define | COMPILE_TEMPLATE_SSE2 0 |
#define | COMPILE_TEMPLATE_AMD3DNOW 1 |
#define | RENAME(a) a ## _3DNOW |
Functions | |
DECLARE_ASM_CONST (DECLARE_ASM_CONST(8, DECLARE_ASM_CONST(uint64_t, mmx_ff) |
#define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) |
#define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5)) |
#define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5)) |
#define COMPILE_TEMPLATE_AMD3DNOW 1 |
#define COMPILE_TEMPLATE_AMD3DNOW 0 |
#define COMPILE_TEMPLATE_MMX2 0 |
#define COMPILE_TEMPLATE_MMX2 1 |
#define COMPILE_TEMPLATE_MMX2 0 |
#define COMPILE_TEMPLATE_SSE2 0 |
#define COMPILE_TEMPLATE_SSE2 1 |
#define COMPILE_TEMPLATE_SSE2 0 |
#define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5)) |
#define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5)) |
#define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5)) |
#define mask16b mask15b |
Referenced by rgb16to32_TMPL(), and rgb16tobgr24_TMPL().
#define RENAME | ( | a | ) | a ## _3DNOW |
#define RENAME | ( | a | ) | a ## _SSE2 |
#define RENAME | ( | a | ) | a ## _MMX2 |
#define RENAME | ( | a | ) | a ## _MMX |
#define RGB2YUV_SHIFT 8 |
#define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5)) |
#define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) |
#define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5)) |
DECLARE_ASM_CONST | ( | DECLARE_ASM_CONST( | 8, | |
DECLARE_ASM_CONST( | uint64_t, | |||
mmx_ff | ||||
) | [pure virtual] |