| 1 | #ifndef SG_CAPTURE_H |
| 2 | #define SG_CAPTURE_H |
| 3 | #include "cursor.h" |
| 4 | |
| 5 | typedef int (*sg_emit)(uint32_t type, const uint32_t *words, uint32_t count, const uint8_t *pixels, uint32_t stride); |
| 6 | int sg_capture_start(void); |
| 7 | int sg_windows_poll(sg_emit emit, int refresh, const uint8_t *pixels, uint32_t width, uint32_t height); |
| 8 | int sg_desktop_capture(uint8_t *pixels, uint32_t width, uint32_t height, int refresh); |
| 9 | void sg_capture_stop(void); |
| 10 | void sg_windows_stop(void); |
| 11 | #endif |