Mercurial > mplayer.hg
annotate libmpdemux/mpeg_hdr.h @ 25976:7e297cec88aa
when seeking in H264 an SPS *should* be a valid entry point; feel free to change it if it's wrong
author | nicodvb |
---|---|
date | Sat, 16 Feb 2008 11:51:41 +0000 |
parents | 6ac1ece1f9fe |
children | 4129c8cfa742 |
rev | line source |
---|---|
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24784
diff
changeset
|
1 #ifndef MPEG_HDR_H |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24784
diff
changeset
|
2 #define MPEG_HDR_H |
2565 | 3 |
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; | |
16184
04dd5945fab8
100l to whoever wrote this crap using 1/10000 units. it caused framerates to get trashed from 30000/1001 to 2997/100, etc.!
rfelker
parents:
15217
diff
changeset
|
11 float fps; |
2565 | 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 | |
14477
92553e3c8f01
automatic fps calculation for mpeg4 in raw stream/mpeg-ts
nicodvb
parents:
2565
diff
changeset
|
20 //the following are for mpeg4 |
15217 | 21 unsigned int timeinc_resolution, timeinc_bits, timeinc_unit; |
14477
92553e3c8f01
automatic fps calculation for mpeg4 in raw stream/mpeg-ts
nicodvb
parents:
2565
diff
changeset
|
22 int picture_type; |
2565 | 23 } mp_mpeg_header_t; |
24 | |
24784
328d1b36952a
Mark constant argument of mp_header_process_sequence_header as such.
diego
parents:
21947
diff
changeset
|
25 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer); |
2565 | 26 int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer); |
18398
a1375e440e92
COSMETICS: moved code to parse mpeg1/2 A/R to mpeg_hdr.c
nicodvb
parents:
16184
diff
changeset
|
27 float mpeg12_aspect_info(mp_mpeg_header_t *picture); |
14477
92553e3c8f01
automatic fps calculation for mpeg4 in raw stream/mpeg-ts
nicodvb
parents:
2565
diff
changeset
|
28 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer); |
14887 | 29 void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer); |
14798
0bd50330e688
framerate autodetection for H264 in raw/ts streams
nicodvb
parents:
14477
diff
changeset
|
30 int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len); |
21947 | 31 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len); |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24784
diff
changeset
|
32 |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24784
diff
changeset
|
33 #endif /* MPEG_HDR_H */ |