Go to the documentation of this file.
28 #define DEF_PEL(OPNAME, OP) \
29 static inline void FUNCC(OPNAME ## _pixels2)(uint8_t *block, \
30 const uint8_t *pixels, \
31 ptrdiff_t line_size, \
35 for (i = 0; i < h; i++) { \
36 OP(*((pixel2 *) block), AV_RN2P(pixels)); \
37 pixels += line_size; \
42 static inline void FUNCC(OPNAME ## _pixels4)(uint8_t *block, \
43 const uint8_t *pixels, \
44 ptrdiff_t line_size, \
48 for (i = 0; i < h; i++) { \
49 OP(*((pixel4 *) block), AV_RN4P(pixels)); \
50 pixels += line_size; \
55 static inline void FUNCC(OPNAME ## _pixels8)(uint8_t *block, \
56 const uint8_t *pixels, \
57 ptrdiff_t line_size, \
61 for (i = 0; i < h; i++) { \
62 OP(*((pixel4 *) block), AV_RN4P(pixels)); \
63 OP(*((pixel4 *) (block + 4 * sizeof(pixel))), \
64 AV_RN4P(pixels + 4 * sizeof(pixel))); \
65 pixels += line_size; \
70 CALL_2X_PIXELS(FUNCC(OPNAME ## _pixels16), \
71 FUNCC(OPNAME ## _pixels8), \
74 #define op_avg(a, b) a = rnd_avg_pixel4(a, b)
75 #define op_put(a, b) a = b