10 bit per channel raw image
Posted: 2010-01-14T17:47:12-07:00
So I'm writing some code using Magick++ that has to load and save 10 bit per channel Cineon/DPX images.
Let's say I have some raw image data in memory in a packed RGBA 10/10/10/2 format. Is there a way to directly read this into an image, or do I have to convert it to something more friendly myself?
Something like this doesn't work for me, I get an 'ErrorCorruptImage':
Any way to tell it to interpret this packed format correctly?
Let's say I have some raw image data in memory in a packed RGBA 10/10/10/2 format. Is there a way to directly read this into an image, or do I have to convert it to something more friendly myself?
Something like this doesn't work for me, I get an 'ErrorCorruptImage':
Code: Select all
img.size( Magick::Geometry( m_width, m_height ) );
img.magick( "RGB" ); //RGBA also doesn't work
img.depth( 10 );
Magick::Blob blob( pixels(), size() );
img.read( blob );