From 86ec4af810abad4e46a7f872d2d44cbf491a975c Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 28 Apr 2020 02:22:47 -0400 Subject: [PATCH] oiio: no need to perform explicit seek_subimage #547 --- src/lib/oiio.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/oiio.cpp b/src/lib/oiio.cpp index 80643657b..ea2ac3ea8 100644 --- a/src/lib/oiio.cpp +++ b/src/lib/oiio.cpp @@ -105,14 +105,16 @@ ncvisual* ncvisual_open_plane(notcurses* nc, const char* filename, } nc_err_e ncvisual_decode(ncvisual* nc){ +//fprintf(stderr, "current subimage: %d frame: %p\n", nc->image->current_subimage(), nc->frame.get()); const auto &spec = nc->image->spec_dimensions(nc->framenum); - OIIO::ImageSpec newspec; +/* OIIO::ImageSpec newspec; if(nc->frame){ +fprintf(stderr, "seeking subimage: %d\n", nc->image->current_subimage() + 1); if(!nc->image->seek_subimage(nc->image->current_subimage() + 1, 0, newspec)){ return NCERR_EOF; } // FIXME check newspec vis-a-vis image->spec() - } + }*/ //fprintf(stderr, "SUBIMAGE: %d\n", nc->image->current_subimage()); nc->did_scaling = false; auto pixels = spec.width * spec.height;// * spec.nchannels;