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