Use strncmp() to check dirac parse header magic.
[frameshot.git] / common.h
blob512f61a37b9254fcf2c527874104c53942a024c5
2 #define MAX_FRAMES 1024
4 enum
6 COLORSPACE_420,
7 COLORSPACE_422,
8 COLORSPACE_444,
9 COLORSPACE_444A
12 typedef void *hnd_t;
14 typedef struct
16 int i_plane;
17 int i_stride[4];
18 uint8_t *plane[4];
19 } image_t;
21 typedef struct
23 /* pts of picture */
24 int64_t i_pts;
26 /* In: raw data */
27 image_t img;
28 } picture_t;
30 typedef struct
32 uint32_t i_width, i_height;
33 int i_frames;
34 int i_csp;
35 uint32_t frames[MAX_FRAMES];
36 } config_t;