Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[imageio] Support for reading of Cineon Kodak images #18054

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ if(USE_GRAPHICSMAGICK)
find_package(GraphicsMagick)
if(GraphicsMagick_FOUND)
add_definitions(-DHAVE_GRAPHICSMAGICK)
set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} bmp dcm fit fits fts gif jng jp2 jpc jpf jpx miff mng pam webp jxl CACHE INTERNAL "")
set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} bmp cin dcm fit fits fts gif jng jp2 jpc jpf jpx miff mng pam webp jxl CACHE INTERNAL "")
include_directories(SYSTEM ${GraphicsMagick_INCLUDE_DIRS})
list(APPEND LIBS ${GraphicsMagick_LIBRARIES})
list(APPEND SOURCES "imageio/imageio_gm.c")
Expand All @@ -580,7 +580,7 @@ if(USE_IMAGEMAGICK AND NOT GraphicsMagick_FOUND)
list(APPEND LIBS ${ImageMagick_LIBRARY})
unset(ImageMagick_LIBRARY CACHE)
endforeach(lib)
set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} bmp dcm fit fits fts gif jng jp2 jpc jpf jpx miff mng pam webp jxl CACHE INTERNAL "")
set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} bmp cin dcm fit fits fts gif jng jp2 jpc jpf jpx miff mng pam webp jxl CACHE INTERNAL "")
endif(ImageMagick_FOUND)
endif(USE_IMAGEMAGICK AND NOT GraphicsMagick_FOUND)

Expand Down
2 changes: 1 addition & 1 deletion src/imageio/imageio_gm.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static gboolean _supported_image(const gchar *filename)
const char *extensions_whitelist[] = { "tiff", "tif", "pbm", "pgm", "ppm", "pnm",
"webp", "jpc", "jp2", "jpf", "jpx", "bmp",
"miff", "dcm", "jng", "mng", "pam", "gif",
"fits", "fit", "fts", "jxl", NULL };
"fits", "fit", "fts", "jxl", "cin", NULL };
gboolean supported = FALSE;
char *ext = g_strrstr(filename, ".");
if(!ext) return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion src/imageio/imageio_im.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static gboolean _supported_image(const gchar *filename)
const char *extensions_whitelist[] = { "tiff", "tif", "pbm", "pgm", "ppm", "pnm",
"webp", "jpc", "jp2", "jpf", "jpx", "bmp",
"miff", "dcm", "jng", "mng", "pam", "gif",
"fits", "fit", "fts", "jxl", NULL };
"fits", "fit", "fts", "jxl", "cin", NULL };
gboolean supported = FALSE;
char *ext = g_strrstr(filename, ".");
if(!ext) return FALSE;
Expand Down
Loading