Thank you so much for the work around and proposed fix. TOTALLY UNRELATED TO 
THIS BUG comments are much appreciated. 

1. Const ustring&: got it. 

2. Not calling release: got it. I am sure you have thought about a RAII way of 
dealing with this. 

3. Number of sub images:

   The takeaway is that get_imagespec returns the spec for current sub image. 
For multi-image files, calling it repeatedly returns the current sub image 
count. Hence calling it repeatedly, gets the number of sub images. Got it. 


The issue that I have is time stamps on a multi-image tif aka tif stack. I know 
there are time stamp information for every image. However I can not find a way 
to fetch them through the API. I could use the sub image index. If I could get 
duration  or FramePerSecond ( floating point or a rational number ). Am I 
missing the API ? Does it make sense to support ?


Cheers


-Arman



> On Oct 13, 2020, at 12:48 PM, Larry Gritz <[email protected]> wrote:
> 
> On Oct 13, 2020, at 12:44 PM, Larry Gritz <[email protected] 
> <mailto:[email protected]>> wrote:
>> 
>> As a workaround, rather than call add_tile() and get_tile() with chbegin=1, 
>> chend=0, I would recommend passing chbegin=0 and chend=the correct number of 
>> channels.
> 
> Another workaround, if you don't want to need to know the true number of 
> channels, would be to indicate "all channels" by passing chbegin=0, chend=-1, 
> which WOULD work properly, since it always did fix chend in this case. It was 
> the chbegin=1 that threw it off.
> 
> --
> Larry Gritz
> [email protected] <mailto:[email protected]>
> 
> 
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to