30 #define HPEL_FILTER(MMSIZE, EXT) \
31 void ff_dirac_hpel_filter_v_ ## EXT(uint8_t *, const uint8_t *, int, int); \
32 void ff_dirac_hpel_filter_h_ ## EXT(uint8_t *, const uint8_t *, int); \
34 static void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
35 const uint8_t *src, int stride, int width, int height) \
39 ff_dirac_hpel_filter_v_ ## EXT(dstv-MMSIZE, src-MMSIZE, stride, width+MMSIZE+5); \
40 ff_dirac_hpel_filter_h_ ## EXT(dsth, src, width); \
41 ff_dirac_hpel_filter_h_ ## EXT(dstc, dstv, width); \
55 #define PIXFUNC(PFX, IDX, EXT) \
57 c->PFX ## _dirac_pixels_tab[1][IDX] = ff_ ## PFX ## _dirac_pixels16_ ## EXT; \
58 c->PFX ## _dirac_pixels_tab[2][IDX] = ff_ ## PFX ## _dirac_pixels32_ ## EXT
60 #define DIRAC_PIXOP(OPNAME2, OPNAME, EXT)\
61 void ff_ ## OPNAME2 ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
64 ff_ ## OPNAME2 ## _dirac_pixels8_c(dst, src, stride, h);\
66 OPNAME ## _pixels8_ ## EXT(dst, src[0], stride, h);\
68 void ff_ ## OPNAME2 ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
71 ff_ ## OPNAME2 ## _dirac_pixels16_c(dst, src, stride, h);\
73 OPNAME ## _pixels16_ ## EXT(dst, src[0], stride, h);\
75 void ff_ ## OPNAME2 ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
78 ff_ ## OPNAME2 ## _dirac_pixels32_c(dst, src, stride, h);\
80 OPNAME ## _pixels16_ ## EXT(dst , src[0] , stride, h);\
81 OPNAME ## _pixels16_ ## EXT(dst+16, src[0]+16, stride, h);\
92 ff_put_dirac_pixels16_c(dst, src, stride, h);
99 ff_avg_dirac_pixels16_c(dst, src, stride, h);
106 ff_put_dirac_pixels32_c(dst, src, stride, h);
115 ff_avg_dirac_pixels32_c(dst, src, stride, h);
#define EXTERNAL_MMX(flags)
void ff_add_dirac_obmc16_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define DIRAC_PIXOP(OPNAME2, OPNAME, EXT)
void ff_add_dirac_obmc32_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_avg_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_add_rect_clamped_sse2(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
void(* put_signed_rect_clamped)(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void(* add_rect_clamped)(uint8_t *dst, const uint16_t *src, int stride, const int16_t *idwt, int idwt_stride, int width, int height)
void ff_add_dirac_obmc32_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
#define PIXFUNC(PFX, IDX, EXT)
void ff_add_rect_clamped_mmx(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
void ff_diracdsp_init_mmx(DiracDSPContext *c)
#define EXTERNAL_SSE2(flags)
void(* avg_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_put_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void(* dirac_hpel_filter)(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, const uint8_t *src, int stride, int width, int height)
#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(* add_dirac_obmc[3])(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
BYTE int const BYTE int int int height
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define EXTERNAL_MMXEXT(flags)
GLint GLenum GLboolean GLsizei stride
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_signed_rect_clamped_sse2(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void ff_put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_add_dirac_obmc16_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void(* put_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h)
dirac_pixels_tab[width][subpel] width is 2 for 32, 1 for 16, 0 for 8 subpel is 0 for fpel and hpel (o...
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_avg_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
void ff_put_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)