Skip to content

Commit

Permalink
Fixed image flip 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 23, 2023
1 parent 25dd052 commit 525cdc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ set(TLRENDER_STB TRUE CACHE BOOL "Enable support for STB I/O (TGA, BMP, PSD)")
set(TLRENDER_PNG TRUE CACHE BOOL "Enable support for PNG I/O")
set(TLRENDER_EXR TRUE CACHE BOOL "Enable support for EXR I/O")
set(TLRENDER_FFMPEG TRUE CACHE BOOL "Enable support for FFmpeg I/O")
set(TLRENDER_X264 TRUE CACHE BOOL "Enable support for x264")
set(TLRENDER_USD FALSE CACHE BOOL "Enable support for USD")
set(TLRENDER_RAW TRUE CACHE BOOL "Enable support for LibRaw")
set(TLRENDER_BMD FALSE CACHE BOOL "Enable support for Blackmagic Design devices")
Expand Down Expand Up @@ -207,12 +206,6 @@ if(TLRENDER_RAW)
add_definitions(-DTLRENDER_RAW)
endif()
endif()
if(TLRENDER_X264)
find_package(X264)
if(X264_FOUND)
add_definitions(-DTLRENDER_X264)
endif()
endif()

# Python dependencies
if(TLRENDER_PYTHON)
Expand Down
8 changes: 4 additions & 4 deletions lib/tlIO/RAWRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ namespace tl
const libraw_imgother_t& other(iProcessor->imgdata.other);
switch(sizes.flip)
{
case 5:
case 5: // 90 deg counter clockwise
case 6: // 90 deg clockwise
info.layout.mirror.y = true;
case 6:
info.size.h = sizes.width;
info.size.w = sizes.height;
break;
case 0:
case 0: // no rotation
info.layout.mirror.y = true;
case 3: // no rotation
case 3: // 180 degree rotation
default:
info.size.w = sizes.width;
info.size.h = sizes.height;
Expand Down

0 comments on commit 525cdc6

Please sign in to comment.