oiio: fix image rendering

This commit is contained in:
nick black 2020-06-01 04:38:51 -04:00 committed by Nick Black
parent 4f5c8ef3d7
commit ec1af2d090

View File

@ -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;
}