summaryrefslogtreecommitdiff
path: root/src/video_decode.h
blob: 64127f377bc0aa9c450c70d97269ff29edfb1108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdint.h>

struct video_decode;
struct video_frame {
	uint8_t *data;
	int width, height, stride;
};

int
video_decode_init(struct video_decode **vd, char *file, int64_t timestamp);

void
video_decode_uninit(struct video_decode **vd);

int
video_decode_get_frame(struct video_decode *vd, struct video_frame **frame);

void
video_decode_free_frame(struct video_frame **frame);