png++  0.2.9
Public Types | Static Public Member Functions | Static Public Attributes
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>

Inheritance diagram for png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >:
png::pixel_traits< packed_gray_pixel< bits > > png::pixel_traits< packed_index_pixel< bits > >

List of all members.

Public Types

typedef pixel pixel_type
typedef component component_type

Static Public Member Functions

static color_type get_color_type ()
static int get_channels ()
static int get_bit_depth ()

Static Public Attributes

static const int channels = channels_value
static const int bit_depth = bit_depth_value

Detailed Description

template<typename pixel, typename component, color_type pixel_color_type, int channels_value = sizeof(pixel) / sizeof(component), int 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, int channels_value = sizeof(pixel) / sizeof(component), int 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, int channels_value = sizeof(pixel) / sizeof(component), int 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, int channels_value = sizeof(pixel) / sizeof(component), int 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 ( ) [inline, static]
template<typename pixel, typename component, color_type pixel_color_type, int channels_value = sizeof(pixel) / sizeof(component), int bit_depth_value = std::numeric_limits< component >::digits>
static int png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::get_channels ( ) [inline, static]
template<typename pixel, typename component, color_type pixel_color_type, int channels_value = sizeof(pixel) / sizeof(component), int bit_depth_value = std::numeric_limits< component >::digits>
static int png::basic_pixel_traits< pixel, component, pixel_color_type, channels_value, bit_depth_value >::get_bit_depth ( ) [inline, static]

Member Data Documentation

template<typename pixel, typename component, color_type pixel_color_type, int channels_value = sizeof(pixel) / sizeof(component), int bit_depth_value = std::numeric_limits< component >::digits>
const int 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, int channels_value = sizeof(pixel) / sizeof(component), int bit_depth_value = std::numeric_limits< component >::digits>
const int 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: