Re: Returning "Endian" for a given image file (C++ interface)
Bob Friesenhahn <[email protected]> Fri, 20 Jan 2012 12:50:45 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 20 Jan 2012, JongAm Park wrote: > When a DPX image in little endian format was opened, I found out that it was to be saved in big endian format.So, it doesn't > preserve the source endian. It should use the current CPU's endianness if you specify image.endian(NativeEndian); > Also, I noticed that it returned "UndefinedEndian" type when "endian()" is called. > Probably setting endian using endian( const EndianType endian_ ) will make the output file in that endian, but I think it > should return the source's endian type when endian() is called, and when specific endianness is not specified, saving that > image should preserve the source's endianness. The big endian format is used by default because at one time virtually all DPX files were big endian and there was substantial software which did not know how to parse little endian. I agree that it would be nice if image.endian() returned the endianness of the file which was just read. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d