46 for (i = 0; i < 8; i++) {
66 for (i = 0; i < 8; i++) {
67 block[0] = s1[0] - s2[0];
68 block[1] = s1[1] - s2[1];
69 block[2] = s1[2] - s2[2];
70 block[3] = s1[3] - s2[3];
71 block[4] = s1[4] - s2[4];
72 block[5] = s1[5] - s2[5];
73 block[6] = s1[6] - s2[6];
74 block[7] = s1[7] - s2[7];
static void diff_pixels_c(int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride)
void ff_pixblockdsp_init_mips(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
static void get_pixels_16_c(int16_t *av_restrict block, const uint8_t *pixels, ptrdiff_t stride)
av_cold void ff_pixblockdsp_init_alpha(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
Macro definitions for various function/variable attributes.
The exact code depends on how similar the blocks are and how related they are to the block
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(* diff_pixels)(int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride)
av_cold void ff_pixblockdsp_init_aarch64(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
#define AV_COPY128U(d, s)
av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx)
av_cold void ff_pixblockdsp_init_arm(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
void ff_pixblockdsp_init_x86(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
Libavcodec external API header.
enum AVMediaType codec_type
main external API structure.
av_cold void ff_pixblockdsp_init_ppc(PixblockDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth)
static void get_pixels_8_c(int16_t *av_restrict block, const uint8_t *pixels, ptrdiff_t stride)
void(* get_pixels_unaligned)(int16_t *av_restrict block, const uint8_t *pixels, ptrdiff_t stride)
void(* get_pixels)(int16_t *av_restrict block, const uint8_t *pixels, ptrdiff_t stride)
GLint GLenum GLboolean GLsizei stride
void(* diff_pixels_unaligned)(int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride)