types.h (860B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JPEGLI_TYPES_H_ 7 #define LIB_JPEGLI_TYPES_H_ 8 9 #if defined(__cplusplus) || defined(c_plusplus) 10 extern "C" { 11 #endif 12 13 // 14 // New API structs and functions that are not available in libjpeg 15 // 16 // NOTE: This part of the API is still experimental and will probably change in 17 // the future. 18 // 19 20 typedef enum { 21 JPEGLI_TYPE_FLOAT = 0, 22 JPEGLI_TYPE_UINT8 = 2, 23 JPEGLI_TYPE_UINT16 = 3, 24 } JpegliDataType; 25 26 typedef enum { 27 JPEGLI_NATIVE_ENDIAN = 0, 28 JPEGLI_LITTLE_ENDIAN = 1, 29 JPEGLI_BIG_ENDIAN = 2, 30 } JpegliEndianness; 31 32 int jpegli_bytes_per_sample(JpegliDataType data_type); 33 34 #if defined(__cplusplus) || defined(c_plusplus) 35 } // extern "C" 36 #endif 37 38 #endif // LIB_JPEGLI_TYPES_H_