-
Notifications
You must be signed in to change notification settings - Fork 0
/
PerianResources.r
159 lines (138 loc) · 3.96 KB
/
PerianResources.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* PerianResources.r
* Perian
*
* Created by Graham Booker on 7/10/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#ifndef kCurrentTHNGResID
#define kCurrentTHNGResID kStartTHNGResID
#endif
#ifdef kCodecName
#ifdef AudioComponentType
resource 'thga' (kCodecInfoResID) {
decompressorComponentType, // Type
kCodecSubType, // SubType
kCodecManufacturer, // Manufacturer
0, // Flags
0, // Flags Mask
0, // Code type
0, // Code ID
'strn', // Name Type
kCodecInfoResID, // Name ID
'stri', // Info Type
kCodecInfoResID, // Info ID
0, // Icon type
0, // Icon ID
'miss', // Alias component type
'base', // Alias component subtype
0, // Alias component manufacturer
0, // Alias component flags
0, // Alias component flags mask
};
#else //!AudioComponentType
resource 'cdci' (kCodecInfoResID) {
kCodecName, // Type
1, // Version
1, // Revision level
kCodecManufacturer, // Manufacturer
kDecompressionFlags, // Decompression Flags
0, // Compression Flags
kFormatFlags, // Format Flags
128, // Compression Accuracy
128, // Decomression Accuracy
200, // Compression Speed
200, // Decompression Speed
128, // Compression Level
0, // Reserved
1, // Minimum Height
1, // Minimum Width
0, // Decompression Pipeline Latency
0, // Compression Pipeline Latency
0 // Private Data
};
#endif //AudioComponentType
resource 'strn' (kCodecInfoResID) {
kCodecName " (Perian)"
};
resource 'stri' (kCodecInfoResID) {
kCodecDescription
};
#endif
resource 'thng' (kCurrentTHNGResID) {
decompressorComponentType, // Type
kCodecSubType, // SubType
kCodecManufacturer, // Manufacturer
0, // - use componentHasMultiplePlatforms
0,
0,
0,
'strn', // Name Type
kCodecInfoResID, // Name ID
'stri', // Info Type
kCodecInfoResID, // Info ID
0, // Icon Type
0, // Icon ID
kCodecVersion, // Version
componentHasMultiplePlatforms + // Registration Flags
componentDoAutoVersion, // Registration Flags
0, // Resource ID of Icon Family
{
kDecompressionFlags,
'dlle', // Entry point found by symbol name 'dlle' resource
kEntryPointID, // ID of 'dlle' resource
platformPowerPCNativeEntryPoint,
kDecompressionFlags,
'dlle',
kEntryPointID,
platformIA32NativeEntryPoint,
};
};
#define IncrementAmount 1
#if (kCurrentTHNGResID - kStartTHNGResID) & 128
#define CurrentIncrementedAmount128 128
#else
#define CurrentIncrementedAmount128 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 64
#define CurrentIncrementedAmount64 64
#else
#define CurrentIncrementedAmount64 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 32
#define CurrentIncrementedAmount32 32
#else
#define CurrentIncrementedAmount32 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 16
#define CurrentIncrementedAmount16 16
#else
#define CurrentIncrementedAmount16 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 8
#define CurrentIncrementedAmount8 8
#else
#define CurrentIncrementedAmount8 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 4
#define CurrentIncrementedAmount4 4
#else
#define CurrentIncrementedAmount4 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 2
#define CurrentIncrementedAmount2 2
#else
#define CurrentIncrementedAmount2 0
#endif
#if (kCurrentTHNGResID - kStartTHNGResID) & 1
#define CurrentIncrementedAmount1 1
#else
#define CurrentIncrementedAmount1 0
#endif
#if kCurrentTHNGResID == kStartTHNGResID
#define kCurrentTHNGResID kStartTHNGResID + IncrementAmount + CurrentIncrementedAmount128 + CurrentIncrementedAmount64 + CurrentIncrementedAmount32 + CurrentIncrementedAmount16 + CurrentIncrementedAmount8 + CurrentIncrementedAmount4 + CurrentIncrementedAmount2 + CurrentIncrementedAmount1
#endif
#undef kCodecSubType
#undef kCodecName
#undef kCodecDescription