@@ -27,7 +27,7 @@ static void Main(string[] args)
2727 string args6 = args . GetArgument ( 6 ) ;
2828 byte [ ] data = File . ReadAllBytes ( path ) ;
2929
30- DirectBitmap < ColorBGRA32 , byte > bitmap = new DirectBitmap < ColorBGRA32 , byte > ( width , height ) ;
30+ DirectBitmap < ColorBGRA < byte > , byte > bitmap = new DirectBitmap < ColorBGRA < byte > , byte > ( width , height ) ;
3131 switch ( inputType )
3232 {
3333 case "astc" :
@@ -52,7 +52,7 @@ static void Main(string[] args)
5252 DecodeRgb ( data , width , height , args5 , bitmap . Bits ) ;
5353 break ;
5454 case "yuy2" :
55- Yuy2Decoder . DecompressYUY2 < ColorBGRA32 , byte > ( data , width , height , bitmap . Bits ) ;
55+ Yuy2Decoder . DecompressYUY2 < ColorBGRA < byte > , byte > ( data , width , height , bitmap . Bits ) ;
5656 break ;
5757 default :
5858 throw new NotSupportedException ( inputType ) ;
@@ -105,7 +105,7 @@ private static void DecodeAstc(ReadOnlySpan<byte> input, int width, int height,
105105 Console . WriteLine ( "Arg at index 6 : blockYSize" ) ;
106106 int blockXSize = int . Parse ( blockXSizeString ) ;
107107 int blockYSize = int . Parse ( blockYSizeString ) ;
108- AstcDecoder . DecodeASTC < ColorBGRA32 , byte > ( input , width , height , blockXSize , blockYSize , output ) ;
108+ AstcDecoder . DecodeASTC < ColorBGRA < byte > , byte > ( input , width , height , blockXSize , blockYSize , output ) ;
109109 }
110110
111111 private static void DecodeAtc ( ReadOnlySpan < byte > input , int width , int height , string modeString , Span < byte > output )
@@ -117,10 +117,10 @@ private static void DecodeAtc(ReadOnlySpan<byte> input, int width, int height, s
117117 switch ( mode )
118118 {
119119 case 0 :
120- AtcDecoder . DecompressAtcRgb4 < ColorBGRA32 , byte > ( input , width , height , output ) ;
120+ AtcDecoder . DecompressAtcRgb4 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
121121 break ;
122122 case 1 :
123- AtcDecoder . DecompressAtcRgba8 < ColorBGRA32 , byte > ( input , width , height , output ) ;
123+ AtcDecoder . DecompressAtcRgba8 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
124124 break ;
125125
126126 default :
@@ -143,25 +143,25 @@ private static void DecodeBc(ReadOnlySpan<byte> input, int width, int height, st
143143 switch ( mode )
144144 {
145145 case 1 :
146- Bc1 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
146+ Bc1 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
147147 break ;
148148 case 2 :
149- Bc2 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
149+ Bc2 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
150150 break ;
151151 case 3 :
152- Bc3 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
152+ Bc3 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
153153 break ;
154154 case 4 :
155- Bc4 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
155+ Bc4 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
156156 break ;
157157 case 5 :
158- Bc5 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
158+ Bc5 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
159159 break ;
160160 case 6 :
161- Bc6h . Decompress < ColorBGRA32 , byte > ( input , width , height , bool . Parse ( isSignedString ) , output ) ;
161+ Bc6h . Decompress < ColorBGRA < byte > , byte > ( input , width , height , bool . Parse ( isSignedString ) , output ) ;
162162 break ;
163163 case 7 :
164- Bc7 . Decompress < ColorBGRA32 , byte > ( input , width , height , output ) ;
164+ Bc7 . Decompress < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
165165 break ;
166166
167167 default :
@@ -179,13 +179,13 @@ private static void DecodeDxt(ReadOnlySpan<byte> input, int width, int height, s
179179 switch ( mode )
180180 {
181181 case 0 :
182- DxtDecoder . DecompressDXT1 < ColorBGRA32 , byte > ( input , width , height , output ) ;
182+ DxtDecoder . DecompressDXT1 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
183183 break ;
184184 case 1 :
185- DxtDecoder . DecompressDXT3 < ColorBGRA32 , byte > ( input , width , height , output ) ;
185+ DxtDecoder . DecompressDXT3 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
186186 break ;
187187 case 2 :
188- DxtDecoder . DecompressDXT5 < ColorBGRA32 , byte > ( input , width , height , output ) ;
188+ DxtDecoder . DecompressDXT5 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
189189 break ;
190190
191191 default :
@@ -208,28 +208,28 @@ private static void DecodeEtc(ReadOnlySpan<byte> input, int width, int height, s
208208 switch ( mode )
209209 {
210210 case 0 :
211- EtcDecoder . DecompressETC < ColorBGRA32 , byte > ( input , width , height , output ) ;
211+ EtcDecoder . DecompressETC < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
212212 break ;
213213 case 1 :
214- EtcDecoder . DecompressETC2 < ColorBGRA32 , byte > ( input , width , height , output ) ;
214+ EtcDecoder . DecompressETC2 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
215215 break ;
216216 case 2 :
217- EtcDecoder . DecompressETC2A1 < ColorBGRA32 , byte > ( input , width , height , output ) ;
217+ EtcDecoder . DecompressETC2A1 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
218218 break ;
219219 case 3 :
220- EtcDecoder . DecompressETC2A8 < ColorBGRA32 , byte > ( input , width , height , output ) ;
220+ EtcDecoder . DecompressETC2A8 < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
221221 break ;
222222 case 4 :
223- EtcDecoder . DecompressEACRUnsigned < ColorBGRA32 , byte > ( input , width , height , output ) ;
223+ EtcDecoder . DecompressEACRUnsigned < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
224224 break ;
225225 case 5 :
226- EtcDecoder . DecompressEACRSigned < ColorBGRA32 , byte > ( input , width , height , output ) ;
226+ EtcDecoder . DecompressEACRSigned < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
227227 break ;
228228 case 6 :
229- EtcDecoder . DecompressEACRGUnsigned < ColorBGRA32 , byte > ( input , width , height , output ) ;
229+ EtcDecoder . DecompressEACRGUnsigned < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
230230 break ;
231231 case 7 :
232- EtcDecoder . DecompressEACRGSigned < ColorBGRA32 , byte > ( input , width , height , output ) ;
232+ EtcDecoder . DecompressEACRGSigned < ColorBGRA < byte > , byte > ( input , width , height , output ) ;
233233 break ;
234234
235235 default :
@@ -241,6 +241,6 @@ private static void DecodePvrtc(ReadOnlySpan<byte> input, int width, int height,
241241 {
242242 Console . WriteLine ( "Arg at index 5 : 2bitMode" ) ;
243243 bool do2bit = bool . Parse ( do2bitModeString ) ;
244- PvrtcDecoder . DecompressPVRTC < ColorBGRA32 , byte > ( input , width , height , do2bit , output ) ;
244+ PvrtcDecoder . DecompressPVRTC < ColorBGRA < byte > , byte > ( input , width , height , do2bit , output ) ;
245245 }
246246}
0 commit comments