comparison libmpdemux/yuv4mpeg_intern.h @ 3786:7ebf504c92d6

yuv4mpeg2 (mjpegtools) support by Rik Snel <rsnel@cube.dyndns.org>
author arpi
date Thu, 27 Dec 2001 02:08:31 +0000
parents
children 8a0d7bd2d193
comparison
equal deleted inserted replaced
3785:44c74b600573 3786:7ebf504c92d6
1 /*
2 * yuv4mpeg_intern.h: Internal constants for "new" YUV4MPEG streams
3 *
4 * Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
5 *
6 * This file is part of the lavtools package (mjpeg.sourceforge.net).
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public License
10 * as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21
22 #ifndef __YUV4MPEG_INTERN_H__
23 #define __YUV4MPEG_INTERN_H__
24
25
26 #define Y4M_MAGIC "YUV4MPEG2"
27 #define Y4M_FRAME_MAGIC "FRAME"
28
29 #define Y4M_DELIM " " /* single-character(space) separating tagged fields */
30
31 #define Y4M_LINE_MAX 256 /* max number of characters in a header line
32 (including the '\n', but not the '\0') */
33
34
35 /* standard framerate ratios */
36 #define Y4M_FPS_UNKNOWN { 0, 0 }
37 #define Y4M_FPS_NTSC_FILM { 24000, 1001 }
38 #define Y4M_FPS_FILM { 24, 1 }
39 #define Y4M_FPS_PAL { 25, 1 }
40 #define Y4M_FPS_NTSC { 30000, 1001 }
41 #define Y4M_FPS_30 { 30, 1 }
42 #define Y4M_FPS_PAL_FIELD { 50, 1 }
43 #define Y4M_FPS_NTSC_FIELD { 60000, 1001 }
44 #define Y4M_FPS_60 { 60, 1 }
45
46 /* standard sample/pixel aspect ratios */
47 #define Y4M_SAR_UNKNOWN { 0, 0 }
48 #define Y4M_SAR_SQUARE { 1, 1 }
49 #define Y4M_SAR_NTSC_CCIR601 { 10, 11 }
50 #define Y4M_SAR_NTSC_16_9 { 40, 33 }
51 #define Y4M_SAR_NTSC_SVCD_4_3 { 15, 11 }
52 #define Y4M_SAR_NTSC_SVCD_16_9 { 20, 11 }
53 #define Y4M_SAR_PAL_CCIR601 { 59, 54 }
54 #define Y4M_SAR_PAL_16_9 { 118, 81 }
55 #define Y4M_SAR_PAL_SVCD_4_3 { 59, 36 }
56 #define Y4M_SAR_PAL_SVCD_16_9 { 59, 27 }
57
58 #define Y4M_SAR_MPEG1_1 Y4M_SAR_SQUARE
59 #define Y4M_SAR_MPEG1_2 { 10000, 6735 }
60 #define Y4M_SAR_MPEG1_3 { 10000, 7031 } /* Anamorphic 16:9 PAL */
61 #define Y4M_SAR_MPEG1_4 { 10000, 7615 }
62 #define Y4M_SAR_MPEG1_5 { 10000, 8055 }
63 #define Y4M_SAR_MPEG1_6 { 10000, 8437 } /* Anamorphic 16:9 NTSC */
64 #define Y4M_SAR_MPEG1_7 { 10000, 8935 }
65 #define Y4M_SAR_MPEG1_8 { 10000, 9375 } /* PAL/SECAM 4:3 */
66 #define Y4M_SAR_MPEG1_9 { 10000, 9815 }
67 #define Y4M_SAR_MPEG1_10 { 10000, 10255 }
68 #define Y4M_SAR_MPEG1_11 { 10000, 10695 }
69 #define Y4M_SAR_MPEG1_12 { 10000, 11250 } /* NTSC 4:3 */
70 #define Y4M_SAR_MPEG1_13 { 10000, 11575 }
71 #define Y4M_SAR_MPEG1_14 { 10000, 12015 }
72
73 #define Y4M_DAR_MPEG2_1 { 1, 1}
74 #define Y4M_DAR_MPEG2_2 { 4, 3 }
75 #define Y4M_DAR_MPEG2_3 { 16, 9 }
76 #define Y4M_DAR_MPEG2_4 { 221, 100 }
77
78 #endif __YUV4MPEG_INTERN_H__