Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 26, 2025
1 parent 673df48 commit b9a33b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ irot_imir_to_exif_orientation(const avifImage *image) {
int irot = image->transformFlags & AVIF_TRANSFORM_IROT;
if (irot) {
if (angle == 1) {
printf("torch1\n");
if (imir) {
return axis ? 7 // 90 degrees anti-clockwise then swap left and right.
: 5; // 90 degrees anti-clockwise then swap top and bottom.
}
return 6; // 90 degrees anti-clockwise.
}
if (angle == 2) {
printf("torch2\n");
if (imir) {
return axis
? 4 // 180 degrees anti-clockwise then swap left and right.
Expand All @@ -90,6 +92,7 @@ irot_imir_to_exif_orientation(const avifImage *image) {
return 3; // 180 degrees anti-clockwise.
}
if (angle == 3) {
printf("torch3\n");
if (imir) {
return axis
? 5 // 270 degrees anti-clockwise then swap left and right.
Expand Down

0 comments on commit b9a33b8

Please sign in to comment.