29 #if ARCH_X86_32 && HAVE_X86ASM 30 static void xvid_idct_mmx_put(
uint8_t *dest, ptrdiff_t line_size,
short *
block)
36 static void xvid_idct_mmx_add(
uint8_t *dest, ptrdiff_t line_size,
short *
block)
42 static void xvid_idct_mmxext_put(
uint8_t *dest, ptrdiff_t line_size,
short *
block)
48 static void xvid_idct_mmxext_add(
uint8_t *dest, ptrdiff_t line_size,
short *
block)
56 unsigned high_bit_depth)
#define EXTERNAL_MMX(flags)
void ff_add_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels, ptrdiff_t line_size)
void ff_xvid_idct_add_sse2(uint8_t *dest, ptrdiff_t line_size, short *block)
static atomic_int cpu_flags
Macro definitions for various function/variable attributes.
The exact code depends on how similar the blocks are and how related they are to the block
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
#define EXTERNAL_SSE2(flags)
void ff_xvid_idct_mmxext(short *block)
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
void ff_xvid_idct_mmx(short *block)
void(* idct_add)(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
block -> idct -> add dest -> clip to unsigned 8 bit -> dest.
av_cold void ff_xvid_idct_init_x86(IDCTDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
void(* idct_put)(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
block -> idct -> clip to unsigned 8 bit -> dest.
main external API structure.
void ff_xvid_idct_put_sse2(uint8_t *dest, ptrdiff_t line_size, short *block)
void ff_xvid_idct_sse2(short *block)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define EXTERNAL_MMXEXT(flags)
void ff_put_pixels_clamped_mmx(const int16_t *block, uint8_t *pixels, ptrdiff_t line_size)
void(* idct)(int16_t *block)
header for Xvid IDCT functions
enum idct_permutation_type perm_type