Go to the documentation of this file.
54 #define HPEL_FILTER(MMSIZE, EXT) \
55 void ff_dirac_hpel_filter_v_ ## EXT(uint8_t *, const uint8_t *, int, int); \
56 void ff_dirac_hpel_filter_h_ ## EXT(uint8_t *, const uint8_t *, int); \
58 static void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
59 const uint8_t *src, int stride, int width, int height) \
63 ff_dirac_hpel_filter_v_ ## EXT(dstv-MMSIZE, src-MMSIZE, stride, width+MMSIZE+5); \
64 ff_dirac_hpel_filter_h_ ## EXT(dsth, src, width); \
65 ff_dirac_hpel_filter_h_ ## EXT(dstc, dstv, width); \
74 #define PIXFUNC(PFX, IDX, EXT) \
76 c->PFX ## _dirac_pixels_tab[1][IDX] = ff_ ## PFX ## _dirac_pixels16_ ## EXT; \
77 c->PFX ## _dirac_pixels_tab[2][IDX] = ff_ ## PFX ## _dirac_pixels32_ ## EXT
79 #define DIRAC_PIXOP(OPNAME2, OPNAME, EXT)\
80 void ff_ ## OPNAME2 ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
83 ff_ ## OPNAME2 ## _dirac_pixels8_c(dst, src, stride, h);\
85 OPNAME ## _pixels8_ ## EXT(dst, src[0], stride, h);\
87 void ff_ ## OPNAME2 ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
90 ff_ ## OPNAME2 ## _dirac_pixels16_c(dst, src, stride, h);\
92 OPNAME ## _pixels16_ ## EXT(dst, src[0], stride, h);\
94 void ff_ ## OPNAME2 ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
97 ff_ ## OPNAME2 ## _dirac_pixels32_c(dst, src, stride, h);\
99 OPNAME ## _pixels16_ ## EXT(dst , src[0] , stride, h);\
100 OPNAME ## _pixels16_ ## EXT(dst+16, src[0]+16, stride, h);\
104 DIRAC_PIXOP(put, ff_put, mmx)
105 DIRAC_PIXOP(
avg, ff_avg, mmx)
106 DIRAC_PIXOP(
avg, ff_avg, mmxext)
143 #define HPEL_FILTER(MMSIZE, EXT) \
144 void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
145 const uint8_t *src, int stride, int width, int height);
147 #define PIXFUNC(PFX, IDX, EXT) do {} while (0)
149 #endif // HAVE_X86ASM
165 c->dirac_hpel_filter = dirac_hpel_filter_mmx;
178 c->dirac_hpel_filter = dirac_hpel_filter_sse2;
#define HPEL_FILTER(MMSIZE, EXT)
void ff_put_rect_clamped_sse2(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void ff_put_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_add_dirac_obmc16_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
DECL_DIRAC_PIXOP(put, mmx)
void ff_diracdsp_init_x86(DiracDSPContext *c)
void ff_add_dirac_obmc8_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_signed_rect_clamped_10_sse4(uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height)
void ff_add_rect_clamped_mmx(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
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
void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_put_signed_rect_clamped_mmx(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void ff_avg_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
#define EXTERNAL_SSE2(flags)
void ff_put_rect_clamped_mmx(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void ff_add_rect_clamped_sse2(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
void ff_put_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_add_dirac_obmc16_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
#define EXTERNAL_SSE4(flags)
void ff_add_dirac_obmc32_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_put_signed_rect_clamped_sse2(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
#define PIXFUNC(PFX, IDX, EXT)
void ff_add_dirac_obmc32_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_dequant_subband_32_sse4(uint8_t *src, uint8_t *dst, ptrdiff_t stride, const int qf, const int qs, int tot_v, int tot_h)
#define EXTERNAL_MMX(flags)
#define EXTERNAL_MMXEXT(flags)