Go to the documentation of this file.
19 #ifndef AVCODEC_MPEGVIDEOENCDSP_H
20 #define AVCODEC_MPEGVIDEOENCDSP_H
26 #define BASIS_SHIFT 16
37 int (*
pix_sum)(
const uint8_t *pix, ptrdiff_t line_size);
38 int (*
pix_norm1)(
const uint8_t *pix, ptrdiff_t line_size);
40 void (*
shrink[4])(uint8_t *
dst, ptrdiff_t dst_wrap,
const uint8_t *
src,
44 int w,
int h,
int sides);
void(* add_8x8basis)(int16_t rem[64], const int16_t basis[64], int scale)
static int16_t basis[64][64]
void ff_mpegvideoencdsp_init_x86(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
const h264_weight_func weight
void ff_mpegvideoencdsp_init(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
void(* draw_edges)(uint8_t *buf, ptrdiff_t wrap, int width, int height, int w, int h, int sides)
int(* pix_sum)(const uint8_t *pix, ptrdiff_t line_size)
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_mpegvideoencdsp_init_riscv(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
int(* try_8x8basis)(const int16_t rem[64], const int16_t weight[64], const int16_t basis[64], int scale)
void(* shrink[4])(uint8_t *dst, ptrdiff_t dst_wrap, const uint8_t *src, ptrdiff_t src_wrap, int width, int height)
int(* pix_norm1)(const uint8_t *pix, ptrdiff_t line_size)
void ff_mpegvideoencdsp_init_mips(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
main external API structure.
void ff_mpegvideoencdsp_init_aarch64(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
void ff_mpegvideoencdsp_init_arm(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
void ff_mpegvideoencdsp_init_ppc(MpegvideoEncDSPContext *c, AVCodecContext *avctx)
static void scale(int *out, const int *in, const int w, const int h, const int shift)