blob: 1701aae4f0df900e5f22963af4c21be18e758ae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef VIDEO_H_
#define VIDEO_H_
#include <stdbool.h>
#include <stdint.h>
typedef struct VideoContext VideoContext;
struct Camera;
VideoContext *video_init(void);
bool video_start(VideoContext *ctx, const char *filename, int32_t width, int32_t height, int fps, int quality);
bool video_is_recording(VideoContext *ctx);
void video_stop(VideoContext *ctx);
bool video_submit_frame(VideoContext *ctx, struct Camera *camera);
void video_quit(VideoContext *ctx);
#endif // VIDEO_H_
|