1 /* 2 * This file is part of RawTherapee. 3 * 4 * Copyright (c) 2017 Jean-Christophe Frisch <natureh.510@gmail.com> 5 * 6 * RawTherapee is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * RawTherapee is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with RawTherapee. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #ifndef _IMAGEFORMAT_ 20 #define _IMAGEFORMAT_ 21 22 namespace rtengine 23 { 24 25 //NB: Update the associated strings in languages files when updating the following enum 26 // Look for "SAMPLEFORMAT_" 27 typedef enum IIO_Sample_Format { 28 IIOSF_UNKNOWN = 0, // Unknown or Unsupported file type; Has to remain 0 29 //IIOSF_SIGNED_INT , // Not yet supported 30 IIOSF_UNSIGNED_CHAR = 1 << 0, 31 IIOSF_UNSIGNED_SHORT = 1 << 1, 32 IIOSF_LOGLUV24 = 1 << 2, 33 IIOSF_LOGLUV32 = 1 << 3, 34 IIOSF_FLOAT16 = 1 << 4, 35 IIOSF_FLOAT24 = 1 << 5, 36 IIOSF_FLOAT32 = 1 << 6 37 } IIOSampleFormat; 38 39 typedef enum IIO_Sample_Arrangement { 40 IIOSA_UNKNOWN, // Unknown or Unsupported file type 41 IIOSA_CHUNKY, 42 IIOSA_PLANAR 43 } IIOSampleArrangement; 44 45 typedef enum SensorType { 46 ST_NONE, // use this value if the image is already demosaiced (i.e. not a raw file) 47 ST_BAYER, 48 ST_FUJI_XTRANS, 49 ST_FOVEON, 50 //ST_FUJI_EXR 51 } eSensorType; 52 53 } 54 55 #endif 56