imgdata.sizes.raw_pitch is only available after unpacking?

Hi,

The document https://www.libraw.org/docs/API-CXX.html#open_datastream says that it will fill imgdata.sizes. However, it seems that raw_pitch is not really filled, and is only available after unpacking. Is this expected? Are there any fields listed in the doc also available only after unpacking? It will be useful to know this as unpacking takes time and I would like to be able to do some initialization in parallel based on the available data. Thanks!

Forums: 

Yes, raw_pitch field is

Yes, raw_pitch field is filled only on unpack() phase: this data field describes layout of data in imgdata.rawdata.* array(s), not in input file and it is not known before unpack().

-- Alex Tutubalin @LibRaw LLC