1 /*
2 Copyright 2020, Dirk Krause. All rights reserved.
3 SPDX-License-Identifier:	BSD-3-Clause
4 */
5 
6 #ifndef	DK4PX_H_INCLUDED
7 /**	Protection against multiple inclusion. */
8 #define	DK4PX_H_INCLUDED	1
9 
10 /**	@file	dk4px.h	Definition of the dk4_px_t data type.
11 */
12 
13 #ifndef	DK4CONF_H_INCLUDED
14 #if DK4_BUILDING_DKTOOLS4
15 #include "dk4conf.h"
16 #else
17 #include <dktools-4/dk4conf.h>
18 #endif
19 #endif
20 
21 #ifndef	DK4TYPES_H_INCLUDED
22 #if DK4_BUILDING_DKTOOLS4
23 #include <libdk4base/dk4types.h>
24 #else
25 #include <dktools-4/dk4types.h>
26 #endif
27 #endif
28 
29 /**	One component (one color or alpha) of a pixel.
30 */
31 typedef	uint16_t	dk4_px_t;
32 
33 
34 /**	Bit depth (number of bits per component). As seen above, the maximum
35 	is 16.
36 */
37 typedef	uint8_t		dk4_px_bit_depth_t;
38 
39 
40 /* vim: set ai sw=4 ts=4 : */
41 #endif
42