Skip to content

Commit

Permalink
indentation fix
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/image_science/dev/": change = 8703]
  • Loading branch information
zenspider committed Jun 21, 2013
1 parent 0142601 commit 083557a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/image_science.rb
Expand Up @@ -151,25 +151,25 @@ def cropped_thumbnail(size) # :yields: image

builder.prefix <<-"END"
FIBITMAP* ReOrient(FIBITMAP *bitmap) {
FITAG *tagValue = NULL;
FIBITMAP *oldBitmap = bitmap;
FreeImage_GetMetadata(FIMD_EXIF_MAIN, bitmap, "Orientation", &tagValue);
switch (tagValue == NULL ? 0 : *((short *) FreeImage_GetTagValue(tagValue))) {
case 6:
bitmap = FreeImage_RotateClassic(bitmap, 270);
break;
case 3:
bitmap = FreeImage_RotateClassic(bitmap, 180);
break;
case 8:
bitmap = FreeImage_RotateClassic(bitmap, 90);
break;
default:
bitmap = FreeImage_Clone(bitmap);
break;
}
FreeImage_Unload(oldBitmap);
return bitmap;
FITAG *tagValue = NULL;
FIBITMAP *oldBitmap = bitmap;
FreeImage_GetMetadata(FIMD_EXIF_MAIN, bitmap, "Orientation", &tagValue);
switch (tagValue == NULL ? 0 : *((short *) FreeImage_GetTagValue(tagValue))) {
case 6:
bitmap = FreeImage_RotateClassic(bitmap, 270);
break;
case 3:
bitmap = FreeImage_RotateClassic(bitmap, 180);
break;
case 8:
bitmap = FreeImage_RotateClassic(bitmap, 90);
break;
default:
bitmap = FreeImage_Clone(bitmap);
break;
}
FreeImage_Unload(oldBitmap);
return bitmap;
}
END

Expand Down

0 comments on commit 083557a

Please sign in to comment.