repo.or.cz
/
frameshot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use strncmp() to check dirac parse header magic.
[frameshot.git]
/
common.h
blob
512f61a37b9254fcf2c527874104c53942a024c5
1
2
#define MAX_FRAMES 1024
3
4
enum
5
{
6
COLORSPACE_420
,
7
COLORSPACE_422
,
8
COLORSPACE_444
,
9
COLORSPACE_444A
10
};
11
12
typedef
void
*
hnd_t
;
13
14
typedef
struct
15
{
16
int
i_plane
;
17
int
i_stride
[
4
];
18
uint8_t
*
plane
[
4
];
19
}
image_t
;
20
21
typedef
struct
22
{
23
/* pts of picture */
24
int64_t
i_pts
;
25
26
/* In: raw data */
27
image_t img
;
28
}
picture_t
;
29
30
typedef
struct
31
{
32
uint32_t
i_width
,
i_height
;
33
int
i_frames
;
34
int
i_csp
;
35
uint32_t
frames
[
MAX_FRAMES
];
36
}
config_t
;