sync with en/mplayer.1 r28991
[mplayer/glamo.git] / libmpdemux / mpeg_hdr.h
blobdc2c1646d8002bef2672be7c395217d2fe3e6a3e
1 #ifndef MPLAYER_MPEG_HDR_H
2 #define MPLAYER_MPEG_HDR_H
4 typedef struct {
5 // video info:
6 int mpeg1; // 0=mpeg2 1=mpeg1
7 int display_picture_width;
8 int display_picture_height;
9 int aspect_ratio_information;
10 int frame_rate_code;
11 float fps;
12 int bitrate; // 0x3FFFF==VBR
13 // timing:
14 int picture_structure;
15 int progressive_sequence;
16 int repeat_first_field;
17 int progressive_frame;
18 int top_field_first;
19 int display_time; // secs*100
20 //the following are for mpeg4
21 unsigned int timeinc_resolution, timeinc_bits, timeinc_unit;
22 int picture_type;
23 } mp_mpeg_header_t;
25 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer);
26 int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer);
27 float mpeg12_aspect_info(mp_mpeg_header_t *picture);
28 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer);
29 void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer);
30 int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len);
31 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len);
33 #endif /* MPLAYER_MPEG_HDR_H */