png++  0.2.7
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value > Struct Template Reference

Basic pixel traits class template. More...

#include <pixel_traits.hpp>

Public Types

typedef pixel pixel_type
 
typedef component component_type
 

Static Public Member Functions

static color_type get_color_type ()
 
static size_t get_channels ()
 
static size_t get_bit_depth ()
 

Static Public Attributes

static const size_t channels = channels_value
 
static const size_t bit_depth = bit_depth_value
 

Detailed Description

template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
struct png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >

Basic pixel traits class template.

Provides common implementation for various pixel_traits<> specializations.

Member Typedef Documentation

template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
typedef pixel png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::pixel_type
template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
typedef component png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::component_type

Member Function Documentation

template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
static color_type png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::get_color_type ( )
inlinestatic
template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
static size_t png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::get_channels ( )
inlinestatic
template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
static size_t png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::get_bit_depth ( )
inlinestatic

Member Data Documentation

template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
const size_t png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::channels = channels_value
static
template<typename pixel, typename component, color_type pixel_color_type, size_t channels_value = sizeof(pixel) / sizeof(component), size_t bit_depth_value = std::numeric_limits< component >::digits>
const size_t png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::bit_depth = bit_depth_value
static

The documentation for this struct was generated from the following file: