Skip to content

Commit

Permalink
Fiji midpoint: avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
alextutubalin committed Jan 22, 2017
1 parent 8d50ba1 commit b622cdd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions dcraw/dcraw.c
Expand Up @@ -13265,8 +13265,11 @@ void CLASS parse_fuji (int offset)

// IB start
#ifdef LIBRAW_LIBRARY_BUILD
} else if (tag == 0x9650) {
imgdata.makernotes.fuji.FujiExpoMidPointShift = ((short)get2()) / fMAX(1.0f,get2());
else if (tag == 0x9650)
{
short a = (short)get2();
float b =fMAX(1.0f, get2());
imgdata.makernotes.fuji.FujiExpoMidPointShift = a / b;
} else if (tag == 0x2100) {
FORC4 imgdata.color.WB_Coeffs[LIBRAW_WBI_Daylight][c ^ 1] = get2();
} else if (tag == 0x2200) {
Expand Down
7 changes: 5 additions & 2 deletions internal/dcraw_common.cpp
Expand Up @@ -12076,8 +12076,11 @@ void CLASS parse_fuji (int offset)

// IB start
#ifdef LIBRAW_LIBRARY_BUILD
} else if (tag == 0x9650) {
imgdata.makernotes.fuji.FujiExpoMidPointShift = ((short)get2()) / fMAX(1.0f,get2());
else if (tag == 0x9650)
{
short a = (short)get2();
float b =fMAX(1.0f, get2());
imgdata.makernotes.fuji.FujiExpoMidPointShift = a / b;
} else if (tag == 0x2100) {
FORC4 imgdata.color.WB_Coeffs[LIBRAW_WBI_Daylight][c ^ 1] = get2();
} else if (tag == 0x2200) {
Expand Down

0 comments on commit b622cdd

Please sign in to comment.