blob: c143a75805756e1c1da80ad91d87ee6a57825221
1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Source last modified: $Id: codec_defines.h,v 1.1.1.1.2.1 2005/05/04 18:20:57 hubbe Exp $ |
3 | * |
4 | * REALNETWORKS CONFIDENTIAL--NOT FOR DISTRIBUTION IN SOURCE CODE FORM |
5 | * Portions Copyright (c) 1995-2005 RealNetworks, Inc. |
6 | * All Rights Reserved. |
7 | * |
8 | * The contents of this file, and the files included with this file, |
9 | * are subject to the current version of the Real Format Source Code |
10 | * Porting and Optimization License, available at |
11 | * https://helixcommunity.org/2005/license/realformatsource (unless |
12 | * RealNetworks otherwise expressly agrees in writing that you are |
13 | * subject to a different license). You may also obtain the license |
14 | * terms directly from RealNetworks. You may not use this file except |
15 | * in compliance with the Real Format Source Code Porting and |
16 | * Optimization License. There are no redistribution rights for the |
17 | * source code of this file. Please see the Real Format Source Code |
18 | * Porting and Optimization License for the rights, obligations and |
19 | * limitations governing use of the contents of the file. |
20 | * |
21 | * RealNetworks is the developer of the Original Code and owns the |
22 | * copyrights in the portions it created. |
23 | * |
24 | * This file, and the files included with this file, is distributed and |
25 | * made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, |
26 | * EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL |
27 | * SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF |
28 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT |
29 | * OR NON-INFRINGEMENT. |
30 | * |
31 | * Technology Compatibility Kit Test Suite(s) Location: |
32 | * https://rarvcode-tck.helixcommunity.org |
33 | * |
34 | * Contributor(s): |
35 | * |
36 | * ***** END LICENSE BLOCK ***** */ |
37 | |
38 | #ifndef CODEC_DEFINES_H |
39 | #define CODEC_DEFINES_H |
40 | |
41 | /* Audio codec defines */ |
42 | #define RA_FORMAT_ID 0x2E7261FD /* RealAudio Stream */ |
43 | #define RA_NO_INTERLEAVER 0x496E7430 /* 'Int0' (no interleaver) */ |
44 | #define RA_INTERLEAVER_SIPR 0x73697072 /* interleaver used for SIPRO codec ("sipr") */ |
45 | #define RA_INTERLEAVER_GENR 0x67656E72 /* interleaver used for ra8lbr and ra8hbr codecs ("genr") */ |
46 | #define RA_INTERLEAVER_VBRS 0x76627273 /* Simple VBR interleaver ("vbrs") */ |
47 | #define RA_INTERLEAVER_VBRF 0x76627266 /* Simple VBR interleaver (with possibly fragmenting) ("vbrf") */ |
48 | |
49 | /* Video codec defines */ |
50 | #define HX_MEDIA_AUDIO 0x4155444FL /* 'AUDO' */ |
51 | #define HX_MEDIA_VIDEO 0x5649444FL /* 'VIDO' */ |
52 | |
53 | #define HX_RVTRVIDEO_ID 0x52565452 /* 'RVTR' (for rv20 codec) */ |
54 | #define HX_RVTR_RV30_ID 0x52565432 /* 'RVT2' (for rv30 codec) */ |
55 | #define HX_RV20VIDEO_ID 0x52563230 /* 'RV20' */ |
56 | #define HX_RV30VIDEO_ID 0x52563330 /* 'RV30' */ |
57 | #define HX_RV40VIDEO_ID 0x52563430 /* 'RV40' */ |
58 | #define HX_RVG2VIDEO_ID 0x52564732 /* 'RVG2' (raw TCK format) */ |
59 | #define HX_RV89COMBO_ID 0x54524F4D /* 'TROM' (raw TCK format) */ |
60 | |
61 | #define RV20_MAJOR_BITSTREAM_VERSION 2 |
62 | |
63 | #define RV30_MAJOR_BITSTREAM_VERSION 3 |
64 | #define RV30_BITSTREAM_VERSION 2 |
65 | #define RV30_PRODUCT_RELEASE 0 |
66 | #define RV30_FRONTEND_VERSION 2 |
67 | |
68 | #define RV40_MAJOR_BITSTREAM_VERSION 4 |
69 | #define RV40_BITSTREAM_VERSION 0 |
70 | #define RV40_PRODUCT_RELEASE 2 |
71 | #define RV40_FRONTEND_VERSION 0 |
72 | |
73 | #define RAW_BITSTREAM_MINOR_VERSION 128 |
74 | |
75 | #define RAW_RVG2_MAJOR_VERSION 2 |
76 | #define RAW_RVG2_BITSTREAM_VERSION RAW_BITSTREAM_MINOR_VERSION |
77 | #define RAW_RVG2_PRODUCT_RELEASE 0 |
78 | #define RAW_RVG2_FRONTEND_VERSION 0 |
79 | |
80 | #define RAW_RV8_MAJOR_VERSION 3 |
81 | #define RAW_RV8_BITSTREAM_VERSION RAW_BITSTREAM_MINOR_VERSION |
82 | #define RAW_RV8_PRODUCT_RELEASE 0 |
83 | #define RAW_RV8_FRONTEND_VERSION 0 |
84 | |
85 | #define RAW_RV9_MAJOR_VERSION 4 |
86 | #define RAW_RV9_BITSTREAM_VERSION RAW_BITSTREAM_MINOR_VERSION |
87 | #define RAW_RV9_PRODUCT_RELEASE 0 |
88 | #define RAW_RV9_FRONTEND_VERSION 0 |
89 | |
90 | #define WIDTHBYTES(i) ((unsigned long)((i+31)&(~31))/8) /* ULONG aligned ! */ |
91 | #define T_YUV420 10 |
92 | |
93 | #endif /* #ifndef CODEC_DEFINES_H */ |
94 |