Skip to content

Commit

Permalink
StImageFile - remove image format exceptions and always use FFmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
gkv311 committed Jan 16, 2025
1 parent cab85f5 commit 585edd8
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions StShared/StImageFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,36 +150,7 @@ StHandle<StImageFile> StImageFile::create(const StString& thePreferred,

StHandle<StImageFile> StImageFile::create(StImageFile::ImageClass thePreferred,
ImageType theImgType) {
// firstly parse image type - exceptions
// that supported not by all libraries
switch(theImgType) {
case ST_TYPE_EXR: {
// only FreeImage currently supports OpenEXR images
if(StFreeImage::init()) {
return new StFreeImage();
}
break;
}
case ST_TYPE_PSD:
case ST_TYPE_ICO:
case ST_TYPE_WEBP:
case ST_TYPE_WEBPLL: {
break;
}
case ST_TYPE_HDR: {
// FFmpeg doesn't support HDR
// DevIL supports them best (FreeImage has problems)
if(StDevILImage::init()) {
return new StDevILImage();
} else if(StFreeImage::init()) {
return new StFreeImage();
}
break;
}
default:
break;
}

(void)theImgType;
// open requested library if it exists
switch(thePreferred) {
case ST_FREEIMAGE: {
Expand Down

0 comments on commit 585edd8

Please sign in to comment.