25 #define pb_7f (~0UL / 255 * 0x7f)
26 #define pb_80 (~0UL / 255 * 0x80)
32 for (i = 0; i <= w - (
int)
sizeof(
long); i +=
sizeof(long)) {
33 long a = *(
long *) (src + i);
34 long b = *(
long *) (dst + i);
38 dst[i + 0] += src[i + 0];
43 int *left,
int *left_top)
51 for (i = 0; i < w; i++) {
52 l =
mid_pred(l, src1[i], (l + src1[i] - lt) & 0xFF) + diff[i];
66 for (i = 0; i < w - 1; i++) {
int(* add_left_pred_int16)(uint16_t *dst, const uint16_t *src, unsigned mask, ptrdiff_t w, unsigned left)
void ff_llviddsp_init_x86(LLVidDSPContext *llviddsp)
void(* add_bytes)(uint8_t *dst, uint8_t *src, ptrdiff_t w)
static const uint16_t mask[17]
void ff_llviddsp_init_ppc(LLVidDSPContext *llviddsp)
Libavcodec external API header.
static int add_left_pred_int16_c(uint16_t *dst, const uint16_t *src, unsigned mask, ptrdiff_t w, unsigned acc)
void ff_llviddsp_init(LLVidDSPContext *c)
static void add_bytes_c(uint8_t *dst, uint8_t *src, ptrdiff_t w)
static void add_median_pred_c(uint8_t *dst, const uint8_t *src1, const uint8_t *diff, ptrdiff_t w, int *left, int *left_top)
static int add_left_pred_c(uint8_t *dst, const uint8_t *src, ptrdiff_t w, int acc)
static av_always_inline int diff(const uint32_t a, const uint32_t b)
int(* add_left_pred)(uint8_t *dst, const uint8_t *src, ptrdiff_t w, int left)
void(* add_median_pred)(uint8_t *dst, const uint8_t *top, const uint8_t *diff, ptrdiff_t w, int *left, int *left_top)