diff options
author | Michelle Yang <micya@google.com> | 2023-03-09 17:56:24 +0000 |
---|---|---|
committer | Michelle Yang <micya@google.com> | 2023-03-09 17:56:24 +0000 |
commit | 09a86725cbb9ae45a738624bdc4231e38ee3766f (patch) | |
tree | b057891d5af91d65c2d0a02b02a1784538357eaf | |
parent | d72a4d972173a78f5d7fd1599cde2d4dac756a86 (diff) |
libhwjpeg: allow writing APP2 segment in EXIF
Bug: 269280197
Test: atest
liblyric.controllers_jpeg_compressor_whi_jpeg_compressor_test
Change-Id: Iec4217f56a9f34296893ac19a3e03651fd5c676e
-rw-r--r-- | libhwjpeg/AppMarkerWriter.cpp | 2 | ||||
-rw-r--r-- | libhwjpeg/AppMarkerWriter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libhwjpeg/AppMarkerWriter.cpp b/libhwjpeg/AppMarkerWriter.cpp index b764025..f9eb12b 100644 --- a/libhwjpeg/AppMarkerWriter.cpp +++ b/libhwjpeg/AppMarkerWriter.cpp @@ -260,7 +260,7 @@ void CAppMarkerWriter::PrepareAppWriter(char *base, exif_attribute_t *exif, m_pExtra = extra; // |<- m_szApp1 ->|<- m_szMaxThumbSize ->|<-m_szAppX->| - // |<----- size of total APP1 and APP4 segments ----->|<-APP11->|<-- main image + // |<----- size of total APP1 and APPX segments ----->|<-APP11->|<-- main image // m_pAppBase m_pThumbBase | | return // | | | | || // v v | | v| diff --git a/libhwjpeg/AppMarkerWriter.h b/libhwjpeg/AppMarkerWriter.h index 9531339..a25d9c0 100644 --- a/libhwjpeg/AppMarkerWriter.h +++ b/libhwjpeg/AppMarkerWriter.h @@ -37,7 +37,7 @@ #define IFD_FIELD_SIZE (IFD_TAG_SIZE + IFD_TYPE_SIZE + IFD_COUNT_SIZE + IFD_VALOFF_SIZE) -#define EXTRA_APPMARKER_MIN 4 +#define EXTRA_APPMARKER_MIN 2 #define EXTRA_APPMARKER_LIMIT 10 #define MAX_GPS_PROCESSINGMETHOD_SIZE 108 |