Update --help with Dirac support.
[frameshot.git] / common.h
blobb4ab50cc60596bd22e9349c502fa1dc893e89a79
1 /*****************************************************************************
2 * common.h: a frame-accurate screenshot generator.
3 *****************************************************************************
4 * Copyright (C) 2009
6 * Authors: Nathan Caldwell <saintdev@gmail.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
21 *****************************************************************************/
23 #define MAX_FRAMES 1024
25 enum
27 COLORSPACE_420,
28 COLORSPACE_422,
29 COLORSPACE_444,
30 COLORSPACE_444A
33 typedef void *hnd_t;
35 typedef struct
37 int i_plane;
38 int i_stride[4];
39 uint8_t *plane[4];
40 } image_t;
42 typedef struct
44 /* pts of picture */
45 int64_t i_pts;
47 /* In: raw data */
48 image_t img;
49 } picture_t;
51 typedef struct
53 uint32_t i_width, i_height;
54 int i_frames;
55 int i_csp;
56 uint32_t frames[MAX_FRAMES];
57 } config_t;