Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:05

0001 // Copyright (c) 2012-2017 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _Image_Format_HeaderFile
0015 #define _Image_Format_HeaderFile
0016 
0017 //! This enumeration defines packed image plane formats
0018 enum Image_Format
0019 {
0020   Image_Format_UNKNOWN = 0, //!< unsupported or unknown format
0021   Image_Format_Gray    = 1, //!< 1 byte per pixel, intensity of the color
0022   Image_Format_Alpha,       //!< 1 byte per pixel, transparency
0023   Image_Format_RGB,         //!< 3 bytes packed RGB image plane
0024   Image_Format_BGR,         //!< same as RGB but with different components order
0025   Image_Format_RGB32,       //!< 4 bytes packed RGB image plane (1 extra byte for alignment, may have undefined value)
0026   Image_Format_BGR32,       //!< same as RGB but with different components order
0027   Image_Format_RGBA,        //!< 4 bytes packed RGBA image plane
0028   Image_Format_BGRA,        //!< same as RGBA but with different components order
0029   Image_Format_GrayF,       //!< 1 float  (4-bytes) per pixel (1-component plane), intensity of the color
0030   Image_Format_AlphaF,      //!< 1 float  (4-bytes) per pixel (1-component plane), transparency
0031   Image_Format_RGF,         //!< 2 floats (8-bytes) RG image plane
0032   Image_Format_RGBF,        //!< 3 floats (12-bytes) RGB image plane
0033   Image_Format_BGRF,        //!< same as RGBF but with different components order
0034   Image_Format_RGBAF,       //!< 4 floats (16-bytes) RGBA image plane
0035   Image_Format_BGRAF,       //!< same as RGBAF but with different components order
0036   Image_Format_GrayF_half,  //!< 1 half-float  (2-bytes) intensity of color
0037   Image_Format_RGF_half,    //!< 2 half-floats (4-bytes) RG   image plane
0038   Image_Format_RGBAF_half,  //!< 4 half-floats (8-bytes) RGBA image plane
0039   Image_Format_Gray16,      //!< 2 bytes per pixel (unsigned short integer), intensity of the color
0040 };
0041 enum { Image_Format_NB = Image_Format_Gray16 + 1 };
0042 
0043 #endif // _Image_Format_HeaderFile