Go to the documentation of this file.
21 #ifndef AVCODEC_DIRACDSP_H
22 #define AVCODEC_DIRACDSP_H
29 int log2_denom,
int weightd,
int weights,
int h);
44 void (*put_dirac_pixels_tab[3][4])(uint8_t *
dst,
const uint8_t *
src[5], ptrdiff_t
stride,
int h);
45 void (*avg_dirac_pixels_tab[3][4])(uint8_t *
dst,
const uint8_t *
src[5], ptrdiff_t
stride,
int h);
47 void (*put_signed_rect_clamped[3])(uint8_t *
dst, ptrdiff_t dst_stride,
48 const uint8_t *
src, ptrdiff_t src_stride,
50 void (*put_rect_clamped)(uint8_t *
dst, ptrdiff_t dst_stride,
51 const uint8_t *
src, ptrdiff_t src_stride,
53 void (*add_rect_clamped)(uint8_t *
dst,
const uint16_t *
src,
54 ptrdiff_t
stride,
const int16_t *idwt,
56 void (*add_dirac_obmc[3])(uint16_t *
dst,
const uint8_t *
src, ptrdiff_t
stride,
57 const uint8_t *obmc_weight,
int yblen);
60 void (*dequant_subband[4])(uint8_t *
src, uint8_t *
dst, ptrdiff_t
stride,
const int qf,
const int qs,
int tot_v,
int tot_h);
66 #define DECL_DIRAC_PIXOP(PFX, EXT) \
67 void ff_ ## PFX ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], ptrdiff_t stride, int h); \
68 void ff_ ## PFX ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], ptrdiff_t stride, int h); \
69 void ff_ ## PFX ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], ptrdiff_t stride, int h)
void ff_diracdsp_init(DiracDSPContext *c)
static void dirac_hpel_filter(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, const uint8_t *src, ptrdiff_t stride, int width, int height)
const h264_weight_func weight
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
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
void(* dirac_biweight_func)(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int log2_denom, int weightd, int weights, int h)
static const int weights[]
void(* dirac_weight_func)(uint8_t *block, ptrdiff_t stride, int log2_denom, int weight, int h)
#define DECL_DIRAC_PIXOP(PFX, EXT)
void ff_diracdsp_init_x86(DiracDSPContext *c)
The exact code depends on how similar the blocks are and how related they are to the block