vo_glamo: sub.h was moved to sub directory in c9026cb3210205b07e2e068467a18ee40f9259a3
[mplayer/glamo.git] / libmpdemux / mpeg4_hdr.h
blob6ad2776bcf60b1da85e8240909c524592f0249e5
1 /*
2 * Copyright (C) 2008 Andrzej Zaborowski <balrog@zabor.org>
4 * This file is part of MPlayer.
6 * MPlayer is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 or (at your option)
9 * version 3 of the License.
11 * MPlayer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef MPLAYER_MPEG4_HDR_H
21 #define MPLAYER_MPEG4_HDR_H
24 * We redefine mp_mpeg_header_t and VOL/VOP decoding functions, which
25 * are already in "libmpdemux/mpeg_hdr.h" because they discard most of the
26 * important info while parsing.
28 typedef struct mp_mpeg_header_s {
29 struct {
30 int vo_type;
31 int aspect_ratio;
32 int shape;
33 int ver_id;
34 int time_den;
35 int time_num;
36 int time_bits;
37 int width;
38 int height;
39 int quant_precision;
40 int resync_marker;
41 int data_partitioning;
42 int rvlc;
43 } vol;
44 struct {
45 int coding_type;
46 int rounding;
47 int time_base;
48 int time_inc;
49 int vop_coded;
50 int intra_dc_thr;
51 int qscale;
52 int fcode;
53 int start_bits;
54 } vop;
55 void *data_start;
56 void *data_end;
57 int data_size;
58 int valid_vop, valid_vol;
59 } mp_mpeg_header_t;
61 #if 0
62 int mp4_header_process_vol(mp_mpeg_header_t *picture, uint8_t **buffer);
63 int mp4_header_process_vop(mp_mpeg_header_t *picture, uint8_t **buffer);
64 #endif
66 #endif /* MPLAYER_MPEG4_HDR_H */