Adobe Systems, Inc.

channel.hpp File Reference

Channel utilities. More...

#include "gil_config.hpp"
#include <boost/cstdint.hpp>
#include "utilities.hpp"

Go to the source code of this file.


Namespaces

namespace  detail

Classes

struct  channel_converter< srcT, dstT >
struct  channel_traits< T >
 defines properties of channels More...
struct  channel_traits< const T & >
struct  channel_traits< const T >
struct  channel_traits< T & >

channel types

typedef boost::uint16_t bits16
typedef float bits32f
typedef double bits64f
typedef boost::uint8_t bits8

channel_convert

Converting from one channel type to another

template<typename dstT, typename srcT>
dstT _channel_convert (srcT val)
template<>
bits16 _channel_convert< bits16 > (bits64f d)
template<>
bits16 _channel_convert< bits16 > (bits32f f)
template<>
bits16 _channel_convert< bits16 > (bits16 s)
template<>
bits16 _channel_convert< bits16 > (bits8 b)
template<>
bits32f _channel_convert< bits32f > (bits64f d)
template<>
bits32f _channel_convert< bits32f > (bits32f f)
template<>
bits32f _channel_convert< bits32f > (bits16 s)
template<>
bits32f _channel_convert< bits32f > (bits8 b)
template<>
bits64f _channel_convert< bits64f > (bits64f d)
template<>
bits64f _channel_convert< bits64f > (bits32f f)
template<>
bits64f _channel_convert< bits64f > (bits16 s)
template<>
bits64f _channel_convert< bits64f > (bits8 b)
template<>
bits8 _channel_convert< bits8 > (bits64f d)
template<>
bits8 _channel_convert< bits8 > (bits32f f)
template<>
bits8 _channel_convert< bits8 > (bits16 s)
template<>
bits8 _channel_convert< bits8 > (bits8 b)
template<typename dstT, typename srcT>
channel_traits< dstT >::value_type channel_convert (srcT val)

channel_invert

returns "1 - channel"

template<typename T>
channel_invert (T x)

channel_min_value, channel_max_value

Minimum and maximum value of a channel

template<typename T>
channel_max_value ()
template<>
bits16 channel_max_value< bits16 > ()
template<>
bits32f channel_max_value< bits32f > ()
template<>
bits8 channel_max_value< bits8 > ()
template<typename T>
channel_min_value ()
template<>
bits16 channel_min_value< bits16 > ()
template<>
bits32f channel_min_value< bits32f > ()
template<>
bits8 channel_min_value< bits8 > ()

channel_multiply

Multiplying channel values of the same type

bits64f channel_multiply (bits64f a, bits64f b)
bits32f channel_multiply (bits32f a, bits32f b)
bits16 channel_multiply (bits16 a, bits16 b)
bits8 channel_multiply (bits8 a, bits8 b)
template<typename T>
channel_multiply (T a, T b)

Functions

boost::uint32_t detail::div255 (boost::uint32_t in)
boost::uint32_t detail::div32768 (boost::uint32_t in)

Detailed Description

Author:
Lubomir Bourdev and Hailin Jin
Adobe Systems Incorporated
Date:
2005-2006
Last updated on March 8, 2006
Definitions of standard GIL 8-bit, 16-bit, 32-bit and 64-bit channels

Definition in file channel.hpp.


Typedef Documentation

typedef boost::uint16_t bits16
 

16-bit channel type

Definition at line 36 of file channel.hpp.

typedef float bits32f
 

32-bit channel type

Definition at line 38 of file channel.hpp.

typedef double bits64f
 

64-bit channel type

Definition at line 40 of file channel.hpp.

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google