summaryrefslogtreecommitdiff
path: root/support/dktools/dk4px.h
blob: 578d12c99f17fbed3ec3fe554a138b7ca120d7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
Copyright 2020, Dirk Krause. All rights reserved.
SPDX-License-Identifier:	BSD-3-Clause
*/

#ifndef	DK4PX_H_INCLUDED
/**	Protection against multiple inclusion. */
#define	DK4PX_H_INCLUDED	1

/**	@file	dk4px.h	Definition of the dk4_px_t data type.
*/

#ifndef	DK4CONF_H_INCLUDED
#if DK4_BUILDING_DKTOOLS4
#include "dk4conf.h"
#else
#include <dktools-4/dk4conf.h>
#endif
#endif

#ifndef	DK4TYPES_H_INCLUDED
#if DK4_BUILDING_DKTOOLS4
#include "dk4types.h"
#else
#include <dktools-4/dk4types.h>
#endif
#endif

/**	One component (one color or alpha) of a pixel.
*/
typedef	uint16_t	dk4_px_t;


/**	Bit depth (number of bits per component). As seen above, the maximum
	is 16.
*/
typedef	uint8_t		dk4_px_bit_depth_t;


/* vim: set ai sw=4 ts=4 : */
#endif