Discovering libraw plugin integration in oiio and found that oiio plugin do
not provide access to such a quite critical feature as image orientation
and only related to automatic exif orientation detection.

Available raw:user_flip
Set libraw user flip value : -1 ignored, other values are between [0; 8]
with the same definition than the Exif orientation code.
do not rotate but flip image.

If i understand correctly but Libraw provide access to image orientation
via  LibRaw::open_bayer

LibRaw::open_bayer call allows to pass sensor dump w/o metadata directly to
LibRaw:
     virtual int open_bayer(unsigned char *data, unsigned datalen,
 ushort _raw_width, ushort _raw_height, ushort _left_margin, ushort
_top_margin,
 ushort _right_margin, ushort _bottom_margin,
 unsigned char procflags, unsigned char bayer_pattern, unsigned
unused_bits, unsigned otherflags,
 unsigned black_level);
...
...
    otherflags:
      Bit 1 - filter (average neighbors) for pixels with values of zero
      Bits 2-4 - the orientation of the image (0=do not rotate, 3=180,
5=90CCW, 6=90CW)
    black_level: file black level (it also may be specified via
imgdata.params)

Any chance to have raw:orientation identical to EXIF support in Oiio RAW
plugin?

Best regards
Vlad
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to