commit | 6ea8393b8451ef8cbbc1b66a5bae33d12cf4b714 | [log] [tgz] |
---|---|---|
author | K9100ii <k9100ii.ki@gmail.com> | Mon Dec 25 12:36:09 2023 +0000 |
committer | Jan Altensen (Stricted) <info@stricted.net> | Fri Feb 23 17:03:07 2024 +0000 |
tree | 55e2fcde17174425f8684d35127116c995fc2d5f | |
parent | 758f04583172d4e6cc111dfa9002bdb1fa808232 [diff] |
libhwjpeg: Add backwards compatibility with older camera blobs Based on: https://github.com/LineageOS/android_hardware_samsung_slsi-linaro_exynos/commit/2fe7c2f00c90990b5e54b380912cca834d643ee1 https://github.com/LineageOS/android_hardware_samsung_slsi-linaro_exynos/commit/609cb39b6ecb0fc54ee2fe3c658f0c248eefd0d7 except, while two paddings are added there in exif_attribute_t (asides from the one that has turned out to just be an extension of the model member), there actually only appears to be a new offset_time member here. All appears okay with Android 9 and 11 camera blobs, with corresponding BOARD_HWJPEG_ANDROID_VERSION settings. Change-Id: Ia7fc930112ac3d3cf064fab05f24b322892faf4a
diff --git a/include/ExynosExif.h b/include/ExynosExif.h index 140a8e0..1a1aa7a 100644 --- a/include/ExynosExif.h +++ b/include/ExynosExif.h
@@ -211,11 +211,17 @@ bool enableThumb; char maker[32]; +#if HWJPEG_ANDROID_VERSION >= 12 char model[64]; +#else + char model[32]; +#endif char software[32]; char exif_version[4]; char date_time[20]; +#if HWJPEG_ANDROID_VERSION >= 11 char offset_time[7]; +#endif char sec_time[5]; unsigned int maker_note_size; unsigned char *maker_note;