00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVCODEC_DIRACDSP_H
00022 #define AVCODEC_DIRACDSP_H
00023
00024 #include <stdint.h>
00025
00026 typedef void (*dirac_weight_func)(uint8_t *block, int stride, int log2_denom, int weight, int h);
00027 typedef void (*dirac_biweight_func)(uint8_t *dst, uint8_t *src, int stride, int log2_denom, int weightd, int weights, int h);
00028
00029 typedef struct {
00030 void (*dirac_hpel_filter)(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, uint8_t *src, int stride, int width, int height);
00041 void (*put_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h);
00042 void (*avg_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h);
00043
00044 void (*put_signed_rect_clamped)(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height);
00045 void (*put_rect_clamped)(uint8_t *dst, int dst_stride, const int16_t *src, int src_stride, int width, int height);
00046 void (*add_rect_clamped)(uint8_t *dst, const uint16_t *src, int stride, const int16_t *idwt, int idwt_stride, int width, int height);
00047 void (*add_dirac_obmc[3])(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen);
00048
00049 dirac_weight_func weight_dirac_pixels_tab[3];
00050 dirac_biweight_func biweight_dirac_pixels_tab[3];
00051 } DiracDSPContext;
00052
00053 #define DECL_DIRAC_PIXOP(PFX, EXT) \
00054 void ff_ ## PFX ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h); \
00055 void ff_ ## PFX ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h); \
00056 void ff_ ## PFX ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)
00057
00058 DECL_DIRAC_PIXOP(put, c);
00059 DECL_DIRAC_PIXOP(avg, c);
00060 DECL_DIRAC_PIXOP(put, l2_c);
00061 DECL_DIRAC_PIXOP(avg, l2_c);
00062 DECL_DIRAC_PIXOP(put, l4_c);
00063 DECL_DIRAC_PIXOP(avg, l4_c);
00064
00065 void ff_diracdsp_init(DiracDSPContext *c);
00066
00067 #endif