Skip to content

Commit

Permalink
make easyexif support other format for exif entry for H and W. openMV…
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Jul 8, 2014
1 parent 9fed46a commit f9d4ada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/third_party/easyexif/exif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ int EXIFInfo::parseFromEXIFSegment(const unsigned char *buf, unsigned len) {
this->ImageWidth = result.val_32;
if (result.format == 3)
this->ImageWidth = result.val_16;
else
this->ImageWidth = result.data;
break;

case 0xa003:
Expand All @@ -413,6 +415,8 @@ int EXIFInfo::parseFromEXIFSegment(const unsigned char *buf, unsigned len) {
this->ImageHeight = result.val_32;
if (result.format == 3)
this->ImageHeight = result.val_16;
else
this->ImageHeight = result.data;
break;

case 0xa405:
Expand Down

0 comments on commit f9d4ada

Please sign in to comment.