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
Formatting cleanup.
[frameshot.git]
/
common.h
blob
e14e7cb62d2c8a8014d8e7bf87541136cc1a9f8b
1
2
#define MAX_FRAMES 1024
3
4
typedef
void
*
hnd_t
;
5
6
typedef
struct
7
{
8
int
i_csp
;
9
10
int
i_plane
;
11
int
i_stride
[
4
];
12
uint8_t
*
plane
[
4
];
13
}
image_t
;
14
15
typedef
struct
16
{
17
/* pts of picture */
18
int64_t
i_pts
;
19
20
/* In: raw data */
21
image_t img
;
22
}
picture_t
;
23
24
typedef
struct
25
{
26
uint32_t
i_width
,
i_height
;
27
int
i_frames
;
28
uint32_t
frames
[
MAX_FRAMES
];
29
}
config_t
;