Libraw and file descriptors
With recent changes to Android, simple files are an endangered species and we have to rely on file descriptors. My c++ is rudimentary at best, but if I follow the docs and code to open a file descriptor I'd need to use:
LibRaw::open_datastream
I'd pass in an extension of LibRaw_abstract_datastream
that would very closely resemble the existing:
LibRaw_file_datastream
and LibRaw_bigfile_datastream
but for a FILE*
.
And I'd replicate the logic to choose which stream that exists in LibRaw::open_file
before calling LibRaw::open_datastream
.
Does this sound logical?
Recent comments