annotate libmpdemux/mpeg_hdr.h @ 23968:a9c0184eedcb

r23687: Implemented tv://[<channel>][/<input_id>] url syntax r23748: Leave out (no) prefix from option names for consistency. r23852: af channels example for ffdca to ALSA reordering r23856: small wording improvement r23897: Experimental negative panscan values r23898: Set -vo gl slice-height default to 0 r23917: Document -rawvideo format="format string" r23920 + r23924: Teletext support r23926: update man page with v4l2 a/v outputs r23978: add possibly incorrect subfont entry r23982: i_certify_that_my_video_stream_does_not_use_b_frames is gone. r23984: Added FIXME skeletons for missing lavc options.
author kraymer
date Wed, 01 Aug 2007 09:55:57 +0000
parents df1d03939216
children 328d1b36952a
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;
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
9 float fps;
2565
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
14477
92553e3c8f01 automatic fps calculation for mpeg4 in raw stream/mpeg-ts
nicodvb
parents: 2565
diff changeset
18 //the following are for mpeg4
15217
d49091f2206c integer overflow when reading fps from h264 vui.
lorenm
parents: 14887
diff changeset
19 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
20 int picture_type;
2565
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
21 } mp_mpeg_header_t;
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
22
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
23 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, unsigned char * buffer);
4bc54a0f775f mpeg video header parser
arpi
parents:
diff changeset
24 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
25 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
26 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer);
14887
rathann
parents: 14798
diff changeset
27 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
28 int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len);
21947
df1d03939216 added function to parse vc1 sequence header
nicodvb
parents: 18398
diff changeset
29 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len);