Aha, yes, I'll give this a try and if it works I will merge it.  Thanks!

On Jun 9, 2014, at 9:49 AM, Ramezanali, Morteza <[email protected]> wrote:

> I found raw renders incorrectly in portrait mode. For Libraw to decide the 
> proper orientation, one needs to call adjust_sizes_info_only() before 
> building the ImageSpec.
>  
> bool
> RawInput::open (const std::string &name, ImageSpec &newspec, ImageSpec 
> &config)
> {
>  
>     /*… */
>  
>     //Forcing the Libraw to adjust sizes based on the capture device 
> orientation
>     m_processor.adjust_sizes_info_only();
>  
>     // Set file information
>     m_spec = ImageSpec(m_processor.imgdata.sizes.iwidth,
>                        m_processor.imgdata.sizes.iheight,
>                        3, // LibRaw should only give us 3 channels
>                        TypeDesc::UINT16);
>  
>     /* … */
>  
> }
>  
> I was wondering if it’s possible to have this change for the next release.
>  
> Cheers,
> Morteza
> 

--
Larry Gritz
[email protected]



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

Reply via email to