annotate libmpdemux/mpeg_hdr.h @ 10560:11826d9f90c7

this patch fixes 1) some bugs introduced in the tuner autodetection and in the channel-parsing functions, 3) retries reading when the mplayer/mencoder don't read fast enough (sooner it exited) but especially 4) makes the stream compliant with the new, modular stream api (the one currently in CVS is not and is totally unreachable). [and maybe more, next time please include cvslog in patch! -- A'rpi] patch by Nico <nsabbi@libero.it>
author arpi
date Mon, 11 Aug 2003 00:02:46 +0000
parents 4bc54a0f775f
children 92553e3c8f01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2565
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
1
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
2 typedef struct {
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
3 // video info:
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
4 int mpeg1; // 0=mpeg2 1=mpeg1
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
5 int display_picture_width;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
6 int display_picture_height;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
7 int aspect_ratio_information;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
8 int frame_rate_code;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
9 int fps; // fps*10000
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
10 int bitrate; // 0x3FFFF==VBR
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
11 // timing:
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
12 int picture_structure;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
13 int progressive_sequence;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
14 int repeat_first_field;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
15 int progressive_frame;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
16 int top_field_first;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
17 int display_time; // secs*100
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
18 } mp_mpeg_header_t;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
19
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
20 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, unsigned char * buffer);
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
21 int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer);