summaryrefslogtreecommitdiff
path: root/jpgfile.c
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-09-27 15:47:22 -0500
committerIliyan Malchev <malchev@google.com>2011-10-07 10:39:28 -0700
commit0aba81d4c228ec0681f030ef77a583a8fd9f555a (patch)
treeb8c210f8a318a417f9870b2bcbfbc53e53fa84d2 /jpgfile.c
parent24757b4e0fdd25e118ca322a1243c1dbe060955d (diff)
downloadjhead-0aba81d4c228ec0681f030ef77a583a8fd9f555a.tar.gz
Fix IFD linking in EXIF creation
The original version of create_EXIF_internal uses continutation to link the thumbnail IFD to Exif IFD. The Android version tries to explicitly gives the TAG_EXIF_OFFSET value for the thumbnail IFD. However, there were some holes left from the original implementation. Fixes: 1. Explicitly mark the end of the main EXIF section since we are not using continuation to connect to thumbnail IFD. 2. Overwrite value of TAG_EXIF_OFFSET when we get to the thumbnail section. The first write for the value of TAG_EXIF_OFFSET relies on some calculation which is prone to be wrong. We can simply overwrite the value here with the proper value. Change-Id: I12d3fbcf10ad30b9520d7fcbdb9b16a61e91641a Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'jpgfile.c')
0 files changed, 0 insertions, 0 deletions