You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
956 B
16 lines
956 B
4 months ago
|
# Android differences from upstream chromium
|
||
|
|
||
|
Android builds with `C_ARITH_CODING_SUPPORTED` and `D_ARITH_CODING_SUPPORTED`,
|
||
|
added in
|
||
|
https://android-review.googlesource.com/c/platform/external/libjpeg-turbo/+/291407/
|
||
|
to support a variant of jpeg files using arithmetic (instead of Huffman)
|
||
|
encoding. This variant isn't often used because of a lack of support in many
|
||
|
viewers (e.g. Chromium), but Android really values backwards compatibility, and
|
||
|
this might break some users. Android probably only needs to keep
|
||
|
`D_ARITH_CODING_SUPPORTED`, but vendor code might also be encoding by setting
|
||
|
jpeg_compress_struct.arith_code to true, so we enable both to ensure full
|
||
|
backwards compatibility since it's not really costing us anything.
|
||
|
We `#define` these in jconfig.h rather than in Android.bp so that they're
|
||
|
correctly exported to any *users* (in particular, jerror.h only conditionally
|
||
|
defines the corresponding error codes if these `#define`s are present).
|