|
1 | | -// Copyright (c) Six Labors and contributors. |
| 1 | +// Copyright (c) Six Labors and contributors. |
2 | 2 | // Licensed under the Apache License, Version 2.0. |
3 | 3 |
|
4 | 4 | using System.Linq; |
@@ -37,102 +37,102 @@ public int WriteTagDataEntry(IccTagDataEntry entry) |
37 | 37 | switch (entry.Signature) |
38 | 38 | { |
39 | 39 | case IccTypeSignature.Chromaticity: |
40 | | - count += this.WriteChromaticityTagDataEntry(entry as IccChromaticityTagDataEntry); |
| 40 | + count += this.WriteChromaticityTagDataEntry((IccChromaticityTagDataEntry)entry); |
41 | 41 | break; |
42 | 42 | case IccTypeSignature.ColorantOrder: |
43 | | - count += this.WriteColorantOrderTagDataEntry(entry as IccColorantOrderTagDataEntry); |
| 43 | + count += this.WriteColorantOrderTagDataEntry((IccColorantOrderTagDataEntry)entry); |
44 | 44 | break; |
45 | 45 | case IccTypeSignature.ColorantTable: |
46 | | - count += this.WriteColorantTableTagDataEntry(entry as IccColorantTableTagDataEntry); |
| 46 | + count += this.WriteColorantTableTagDataEntry((IccColorantTableTagDataEntry)entry); |
47 | 47 | break; |
48 | 48 | case IccTypeSignature.Curve: |
49 | | - count += this.WriteCurveTagDataEntry(entry as IccCurveTagDataEntry); |
| 49 | + count += this.WriteCurveTagDataEntry((IccCurveTagDataEntry)entry); |
50 | 50 | break; |
51 | 51 | case IccTypeSignature.Data: |
52 | | - count += this.WriteDataTagDataEntry(entry as IccDataTagDataEntry); |
| 52 | + count += this.WriteDataTagDataEntry((IccDataTagDataEntry)entry); |
53 | 53 | break; |
54 | 54 | case IccTypeSignature.DateTime: |
55 | | - count += this.WriteDateTimeTagDataEntry(entry as IccDateTimeTagDataEntry); |
| 55 | + count += this.WriteDateTimeTagDataEntry((IccDateTimeTagDataEntry)entry); |
56 | 56 | break; |
57 | 57 | case IccTypeSignature.Lut16: |
58 | | - count += this.WriteLut16TagDataEntry(entry as IccLut16TagDataEntry); |
| 58 | + count += this.WriteLut16TagDataEntry((IccLut16TagDataEntry)entry); |
59 | 59 | break; |
60 | 60 | case IccTypeSignature.Lut8: |
61 | | - count += this.WriteLut8TagDataEntry(entry as IccLut8TagDataEntry); |
| 61 | + count += this.WriteLut8TagDataEntry((IccLut8TagDataEntry)entry); |
62 | 62 | break; |
63 | 63 | case IccTypeSignature.LutAToB: |
64 | | - count += this.WriteLutAtoBTagDataEntry(entry as IccLutAToBTagDataEntry); |
| 64 | + count += this.WriteLutAtoBTagDataEntry((IccLutAToBTagDataEntry)entry); |
65 | 65 | break; |
66 | 66 | case IccTypeSignature.LutBToA: |
67 | | - count += this.WriteLutBtoATagDataEntry(entry as IccLutBToATagDataEntry); |
| 67 | + count += this.WriteLutBtoATagDataEntry((IccLutBToATagDataEntry)entry); |
68 | 68 | break; |
69 | 69 | case IccTypeSignature.Measurement: |
70 | | - count += this.WriteMeasurementTagDataEntry(entry as IccMeasurementTagDataEntry); |
| 70 | + count += this.WriteMeasurementTagDataEntry((IccMeasurementTagDataEntry)entry); |
71 | 71 | break; |
72 | 72 | case IccTypeSignature.MultiLocalizedUnicode: |
73 | | - count += this.WriteMultiLocalizedUnicodeTagDataEntry(entry as IccMultiLocalizedUnicodeTagDataEntry); |
| 73 | + count += this.WriteMultiLocalizedUnicodeTagDataEntry((IccMultiLocalizedUnicodeTagDataEntry)entry); |
74 | 74 | break; |
75 | 75 | case IccTypeSignature.MultiProcessElements: |
76 | | - count += this.WriteMultiProcessElementsTagDataEntry(entry as IccMultiProcessElementsTagDataEntry); |
| 76 | + count += this.WriteMultiProcessElementsTagDataEntry((IccMultiProcessElementsTagDataEntry)entry); |
77 | 77 | break; |
78 | 78 | case IccTypeSignature.NamedColor2: |
79 | | - count += this.WriteNamedColor2TagDataEntry(entry as IccNamedColor2TagDataEntry); |
| 79 | + count += this.WriteNamedColor2TagDataEntry((IccNamedColor2TagDataEntry)entry); |
80 | 80 | break; |
81 | 81 | case IccTypeSignature.ParametricCurve: |
82 | | - count += this.WriteParametricCurveTagDataEntry(entry as IccParametricCurveTagDataEntry); |
| 82 | + count += this.WriteParametricCurveTagDataEntry((IccParametricCurveTagDataEntry)entry); |
83 | 83 | break; |
84 | 84 | case IccTypeSignature.ProfileSequenceDesc: |
85 | | - count += this.WriteProfileSequenceDescTagDataEntry(entry as IccProfileSequenceDescTagDataEntry); |
| 85 | + count += this.WriteProfileSequenceDescTagDataEntry((IccProfileSequenceDescTagDataEntry)entry); |
86 | 86 | break; |
87 | 87 | case IccTypeSignature.ProfileSequenceIdentifier: |
88 | | - count += this.WriteProfileSequenceIdentifierTagDataEntry(entry as IccProfileSequenceIdentifierTagDataEntry); |
| 88 | + count += this.WriteProfileSequenceIdentifierTagDataEntry((IccProfileSequenceIdentifierTagDataEntry)entry); |
89 | 89 | break; |
90 | 90 | case IccTypeSignature.ResponseCurveSet16: |
91 | | - count += this.WriteResponseCurveSet16TagDataEntry(entry as IccResponseCurveSet16TagDataEntry); |
| 91 | + count += this.WriteResponseCurveSet16TagDataEntry((IccResponseCurveSet16TagDataEntry)entry); |
92 | 92 | break; |
93 | 93 | case IccTypeSignature.S15Fixed16Array: |
94 | | - count += this.WriteFix16ArrayTagDataEntry(entry as IccFix16ArrayTagDataEntry); |
| 94 | + count += this.WriteFix16ArrayTagDataEntry((IccFix16ArrayTagDataEntry)entry); |
95 | 95 | break; |
96 | 96 | case IccTypeSignature.Signature: |
97 | | - count += this.WriteSignatureTagDataEntry(entry as IccSignatureTagDataEntry); |
| 97 | + count += this.WriteSignatureTagDataEntry((IccSignatureTagDataEntry)entry); |
98 | 98 | break; |
99 | 99 | case IccTypeSignature.Text: |
100 | | - count += this.WriteTextTagDataEntry(entry as IccTextTagDataEntry); |
| 100 | + count += this.WriteTextTagDataEntry((IccTextTagDataEntry)entry); |
101 | 101 | break; |
102 | 102 | case IccTypeSignature.U16Fixed16Array: |
103 | | - count += this.WriteUFix16ArrayTagDataEntry(entry as IccUFix16ArrayTagDataEntry); |
| 103 | + count += this.WriteUFix16ArrayTagDataEntry((IccUFix16ArrayTagDataEntry)entry); |
104 | 104 | break; |
105 | 105 | case IccTypeSignature.UInt16Array: |
106 | | - count += this.WriteUInt16ArrayTagDataEntry(entry as IccUInt16ArrayTagDataEntry); |
| 106 | + count += this.WriteUInt16ArrayTagDataEntry((IccUInt16ArrayTagDataEntry)entry); |
107 | 107 | break; |
108 | 108 | case IccTypeSignature.UInt32Array: |
109 | | - count += this.WriteUInt32ArrayTagDataEntry(entry as IccUInt32ArrayTagDataEntry); |
| 109 | + count += this.WriteUInt32ArrayTagDataEntry((IccUInt32ArrayTagDataEntry)entry); |
110 | 110 | break; |
111 | 111 | case IccTypeSignature.UInt64Array: |
112 | | - count += this.WriteUInt64ArrayTagDataEntry(entry as IccUInt64ArrayTagDataEntry); |
| 112 | + count += this.WriteUInt64ArrayTagDataEntry((IccUInt64ArrayTagDataEntry)entry); |
113 | 113 | break; |
114 | 114 | case IccTypeSignature.UInt8Array: |
115 | | - count += this.WriteUInt8ArrayTagDataEntry(entry as IccUInt8ArrayTagDataEntry); |
| 115 | + count += this.WriteUInt8ArrayTagDataEntry((IccUInt8ArrayTagDataEntry)entry); |
116 | 116 | break; |
117 | 117 | case IccTypeSignature.ViewingConditions: |
118 | | - count += this.WriteViewingConditionsTagDataEntry(entry as IccViewingConditionsTagDataEntry); |
| 118 | + count += this.WriteViewingConditionsTagDataEntry((IccViewingConditionsTagDataEntry)entry); |
119 | 119 | break; |
120 | 120 | case IccTypeSignature.Xyz: |
121 | | - count += this.WriteXyzTagDataEntry(entry as IccXyzTagDataEntry); |
| 121 | + count += this.WriteXyzTagDataEntry((IccXyzTagDataEntry)entry); |
122 | 122 | break; |
123 | 123 |
|
124 | 124 | // V2 Types: |
125 | 125 | case IccTypeSignature.TextDescription: |
126 | | - count += this.WriteTextDescriptionTagDataEntry(entry as IccTextDescriptionTagDataEntry); |
| 126 | + count += this.WriteTextDescriptionTagDataEntry((IccTextDescriptionTagDataEntry)entry); |
127 | 127 | break; |
128 | 128 | case IccTypeSignature.CrdInfo: |
129 | | - count += this.WriteCrdInfoTagDataEntry(entry as IccCrdInfoTagDataEntry); |
| 129 | + count += this.WriteCrdInfoTagDataEntry((IccCrdInfoTagDataEntry)entry); |
130 | 130 | break; |
131 | 131 | case IccTypeSignature.Screening: |
132 | | - count += this.WriteScreeningTagDataEntry(entry as IccScreeningTagDataEntry); |
| 132 | + count += this.WriteScreeningTagDataEntry((IccScreeningTagDataEntry)entry); |
133 | 133 | break; |
134 | 134 | case IccTypeSignature.UcrBg: |
135 | | - count += this.WriteUcrBgTagDataEntry(entry as IccUcrBgTagDataEntry); |
| 135 | + count += this.WriteUcrBgTagDataEntry((IccUcrBgTagDataEntry)entry); |
136 | 136 | break; |
137 | 137 |
|
138 | 138 | // Unsupported or unknown |
|
0 commit comments