51 #define HPEL_FILTER(MMSIZE, EXT) \
52 void ff_dirac_hpel_filter_v_ ## EXT(uint8_t *, const uint8_t *, int, int); \
53 void ff_dirac_hpel_filter_h_ ## EXT(uint8_t *, const uint8_t *, int); \
55 static void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
56 const uint8_t *src, int stride, int width, int height) \
60 ff_dirac_hpel_filter_v_ ## EXT(dstv-MMSIZE, src-MMSIZE, stride, width+MMSIZE+5); \
61 ff_dirac_hpel_filter_h_ ## EXT(dsth, src, width); \
62 ff_dirac_hpel_filter_h_ ## EXT(dstc, dstv, width); \
71 #define PIXFUNC(PFX, IDX, EXT) \
73 c->PFX ## _dirac_pixels_tab[1][IDX] = ff_ ## PFX ## _dirac_pixels16_ ## EXT; \
74 c->PFX ## _dirac_pixels_tab[2][IDX] = ff_ ## PFX ## _dirac_pixels32_ ## EXT
76 #define DIRAC_PIXOP(OPNAME2, OPNAME, EXT)\
77 void ff_ ## OPNAME2 ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
80 ff_ ## OPNAME2 ## _dirac_pixels8_c(dst, src, stride, h);\
82 OPNAME ## _pixels8_ ## EXT(dst, src[0], stride, h);\
84 void ff_ ## OPNAME2 ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
87 ff_ ## OPNAME2 ## _dirac_pixels16_c(dst, src, stride, h);\
89 OPNAME ## _pixels16_ ## EXT(dst, src[0], stride, h);\
91 void ff_ ## OPNAME2 ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)\
94 ff_ ## OPNAME2 ## _dirac_pixels32_c(dst, src, stride, h);\
96 OPNAME ## _pixels16_ ## EXT(dst , src[0] , stride, h);\
97 OPNAME ## _pixels16_ ## EXT(dst+16, src[0]+16, stride, h);\
101 DIRAC_PIXOP(put, ff_put, mmx)
102 DIRAC_PIXOP(
avg, ff_avg, mmx)
103 DIRAC_PIXOP(avg, ff_avg, mmxext)
108 ff_put_dirac_pixels16_c(dst, src, stride, h);
115 ff_avg_dirac_pixels16_c(dst, src, stride, h);
122 ff_put_dirac_pixels32_c(dst, src, stride, h);
131 ff_avg_dirac_pixels32_c(dst, src, stride, h);
140 #define HPEL_FILTER(MMSIZE, EXT) \
141 void dirac_hpel_filter_ ## EXT(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, \
142 const uint8_t *src, int stride, int width, int height);
144 #define PIXFUNC(PFX, IDX, EXT) do {} while (0)
162 c->dirac_hpel_filter = dirac_hpel_filter_mmx;
175 c->dirac_hpel_filter = dirac_hpel_filter_sse2;
#define EXTERNAL_MMX(flags)
void ff_add_dirac_obmc16_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_add_rect_clamped_sse2(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
DECL_DIRAC_PIXOP(put, mmx)
void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_add_dirac_obmc32_sse2(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_add_dirac_obmc16_mmx(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen)
void ff_put_dirac_pixels16_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_put_rect_clamped_mmx(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height)
void ff_put_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
#define EXTERNAL_SSE2(flags)
void ff_add_rect_clamped_mmx(uint8_t *, const uint16_t *, int, const int16_t *, int, int, int)
#define PIXFUNC(PFX, IDX, EXT)
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_avg_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
#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)
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_diracdsp_init_x86(DiracDSPContext *c)
void ff_put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
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_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)