X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffileexr.C;h=ca0c879f91b332603b4a91faea18594281a500da;hb=a985e771ecfb00f01c6405c7aa4fb958a780e558;hp=1beb3a7c6b9b7293da1c7ba283a480c533366f1a;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/fileexr.C b/cinelerra-5.1/cinelerra/fileexr.C index 1beb3a7c..ca0c879f 100644 --- a/cinelerra-5.1/cinelerra/fileexr.C +++ b/cinelerra-5.1/cinelerra/fileexr.C @@ -19,6 +19,8 @@ * */ +#ifdef HAVE_OPENEXR + #include "asset.h" #include "bcsignals.h" #include "clip.h" @@ -305,7 +307,7 @@ int FileEXR::read_frame_header(char *path) asset->width = dw.max.x - dw.min.x + 1; asset->height = dw.max.y - dw.min.y + 1; - asset->interlace_mode = BC_ILACE_MODE_NOTINTERLACED; + asset->interlace_mode = ILACE_MODE_NOTINTERLACED; const Imf::ChannelList &channels = file.header().channels(); @@ -313,6 +315,7 @@ int FileEXR::read_frame_header(char *path) native_cmodel = BC_RGBA_FLOAT; else native_cmodel = BC_RGB_FLOAT; + asset->exr_use_alpha = BC_CModels::has_alpha(native_cmodel) ? 1 : 0; if(channels.findChannel("Y")) is_yuv = 1; @@ -661,3 +664,4 @@ int EXRCompressionItem::handle_event() return 0; } +#endif