|
116 | 116 | #define RGB_BUS_ROTATION_270 (3) |
117 | 117 |
|
118 | 118 |
|
119 | | - __attribute__((always_inline)) static inline void rotate0(const uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t bytes_per_pixel); |
120 | | - __attribute__((always_inline)) static inline void rotate_8bpp(const uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
121 | | - __attribute__((always_inline)) static inline void rotate_16bpp(const uint16_t *src, uint16_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
122 | | - __attribute__((always_inline)) static inline void rotate_24bpp(const uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
123 | | - __attribute__((always_inline)) static inline void rotate_32bpp(const uint32_t *src, uint32_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
| 119 | + __attribute__((always_inline)) static inline void rotate0(uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t bytes_per_pixel); |
| 120 | + __attribute__((always_inline)) static inline void rotate_8bpp(uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
| 121 | + __attribute__((always_inline)) static inline void rotate_16bpp(uint16_t *src, uint16_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
| 122 | + __attribute__((always_inline)) static inline void rotate_24bpp(uint8_t *src, uint8_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
| 123 | + __attribute__((always_inline)) static inline void rotate_32bpp(uint32_t *src, uint32_t *dst, uint32_t x_start, uint32_t y_start, uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, uint8_t rotate); |
124 | 124 |
|
125 | 125 |
|
126 | 126 | static void copy_pixels( |
127 | | - void *to, const void *from, uint32_t x_start, uint32_t y_start, |
128 | | - uint32_t x_end, uint32_t y_end, uint32_t h_res, uint32_t v_res, |
| 127 | + void *dst, void *src, uint32_t x_start, uint32_t y_start, |
| 128 | + uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, |
129 | 129 | uint32_t bytes_per_pixel, uint8_t rotate); |
130 | 130 |
|
131 | 131 |
|
|
319 | 319 | *to++ = *from++; |
320 | 320 | } |
321 | 321 |
|
322 | | - |
323 | | - void copy_pixels(uint8_t *dst, uint8_t *src, uint32_t x_start, uint32_t y_start, |
| 322 | + void copy_pixels(void *dst, void *src, uint32_t x_start, uint32_t y_start, |
324 | 323 | uint32_t x_end, uint32_t y_end, uint32_t dst_width, uint32_t dst_height, |
325 | 324 | uint32_t bytes_per_pixel, uint8_t rotate) |
326 | 325 | { |
|
0 commit comments