VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gr::ColourSpace::cache< T > Class Template Reference

A cache for a complete set of rgb/yuv mappings, amounting to about 50MB of data. More...

#include <grcolourspace.h>

Public Types

typedef triple< T > triple_t
 
typedef std::vector< triple_ttable_t
 

Public Member Functions

 cache (triple_t(*fn)(triple_t))
 
void fill (triple_t(*fn)(triple_t))
 
triple_t operator() (triple_t abc) const
 
template<typename Tout >
Tout value (T a, T b, T c) const
 

Public Attributes

table_t table
 

Detailed Description

template<typename T>
class Gr::ColourSpace::cache< T >

A cache for a complete set of rgb/yuv mappings, amounting to about 50MB of data.

Eg:

unsigned int rgb = cache.value<unsigned int>( y , u , v ) ;

Definition at line 312 of file grcolourspace.h.


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