| 1 | #ifndef SG_CURSOR_H |
| 2 | #define SG_CURSOR_H |
| 3 | #include <stddef.h> |
| 4 | #include <stdint.h> |
| 5 | #include "protocol.h" |
| 6 | |
| 7 | struct sg_rect { uint32_t x, y, width, height; }; |
| 8 | int sg_difference(const uint8_t *before, const uint8_t *after, uint32_t width, uint32_t height, struct sg_rect *rect); |
| 9 | int sg_rgba(const uint8_t *black, const uint8_t *white, uint8_t *rgba, uint8_t *invert, size_t pixels); |
| 10 | void sg_word(uint8_t *bytes, uint32_t value); |
| 11 | #endif |