oiio: fix image rendering

pull/665/head
nick black 4 years ago committed by Nick Black
parent 4f5c8ef3d7
commit ec1af2d090

@ -26,9 +26,13 @@ ncvisual* ncvisual_from_file(const char* filename, nc_err_e* err) {
ncvisual_destroy(ncv);
return nullptr;
}
/*const auto &spec = ncv->details.image->spec_dimensions();
/*const auto &spec = ncv->details.image->spec_dimensions(0);
std::cout << "Opened " << filename << ": " << spec.height << "x" <<
spec.width << "@" << spec.nchannels << " (" << spec.format << ")" << std::endl;*/
if((*err = ncvisual_decode(ncv)) != NCERR_SUCCESS){
ncvisual_destroy(ncv);
return nullptr;
}
return ncv;
}

Loading…
Cancel
Save