mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
OIIO: implement ncvisual_decode_loop() #1066
This commit is contained in:
parent
616334f2b9
commit
9dbcf8db3c
@ -79,6 +79,17 @@ int ncvisual_decode(ncvisual* nc) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ncvisual_decode_loop(ncvisual* ncv){
|
||||
int r = ncvisual_decode(ncv);
|
||||
if(r == 1){
|
||||
OIIO::ImageSpec newspec;
|
||||
if(ncv->details.image->seek_subimage(0, 0, &newspec)){
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
// resize, converting to RGBA (if necessary) along the way
|
||||
int ncvisual_resize(ncvisual* nc, int rows, int cols) {
|
||||
//fprintf(stderr, "%d/%d -> %d/%d on the resize\n", ncv->rows, ncv->cols, rows, cols);
|
||||
|
Loading…
Reference in New Issue
Block a user