mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
oiio: fix image rendering
This commit is contained in:
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…
Reference in New Issue
Block a user