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