OIIO: implement ncvisual_decode_loop() #1066

This commit is contained in:
nick black 2020-10-20 23:31:53 -04:00 committed by Nick Black
parent 616334f2b9
commit 9dbcf8db3c

View File

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