Work around race condition in audio dumper
[jpcrr.git] / streamtools / frame.h
blob9b8953f87ff6ddc11d4301ec3bd114d76d42ee83
1 #ifndef _frame__h__included__
2 #define _frame__h__included__
4 #include <stdint.h>
6 struct frame
8 uint64_t f_timeseq;
9 uint32_t f_width;
10 uint32_t f_height;
11 uint32_t f_framedata[];
14 struct frame* frame_create(uint32_t w, uint32_t h);
15 void frame_release(struct frame* frame);
17 struct frame_input_stream;
18 struct frame_output_stream;
20 struct frame_input_stream* fis_open(const char* filename);
21 struct frame* fis_next_frame(struct frame_input_stream* fis);
22 void fis_close(struct frame_input_stream* fis);
23 struct frame_output_stream* fos_open(const char* filename);
24 void fos_save_frame(struct frame_output_stream* fos, struct frame* frame);
25 void fos_close(struct frame_output_stream* fos);
27 #endif