/* 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 #endif #endif #ifndef DK4TYPES_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4types.h" #else #include #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