Commit 663922f
committed
Add a new parameter to
The purpose of this patch is to provide a better default behaviour when `JpegImage` is used to parse standalone JPEG images with CMYK colour spaces.
Since the issue that the patch concerns is somewhat of a special-case, the implementation utilizes the already existing decode support in an attempt to minimize the impact w.r.t. code size.
*Please note:* It's always possible for the user of `JpegImage` to control image inversion, and thus override the new behaviour, by simply passing a custom `decodeTransform` array upon initialization.JpegImage.getData to indicate the source of the image data (issue 9513)1 parent 47bf12c commit 663922f
File tree
3 files changed
+36
-11
lines changed- examples/image_decoders
- src/core
3 files changed
+36
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
| 978 | + | |
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1017 | 1034 | | |
1018 | 1035 | | |
1019 | 1036 | | |
| |||
1162 | 1179 | | |
1163 | 1180 | | |
1164 | 1181 | | |
1165 | | - | |
| 1182 | + | |
1166 | 1183 | | |
1167 | 1184 | | |
1168 | 1185 | | |
1169 | | - | |
1170 | | - | |
| 1186 | + | |
| 1187 | + | |
1171 | 1188 | | |
1172 | | - | |
| 1189 | + | |
1173 | 1190 | | |
1174 | 1191 | | |
1175 | 1192 | | |
| |||
1184 | 1201 | | |
1185 | 1202 | | |
1186 | 1203 | | |
1187 | | - | |
| 1204 | + | |
1188 | 1205 | | |
1189 | 1206 | | |
1190 | 1207 | | |
1191 | | - | |
| 1208 | + | |
1192 | 1209 | | |
1193 | 1210 | | |
1194 | 1211 | | |
| |||
0 commit comments