Boost GIL


Public Member Functions | Protected Attributes | List of all members
reader_base< FormatTag, ConversionPolicy > Struct Template Reference

#include <reader_base.hpp>

Public Member Functions

 reader_base ()
 
 reader_base (const ConversionPolicy &cc)
 
template<typename Image >
void init_image (Image &img, const image_read_settings< FormatTag > &settings)
 
template<typename View >
void init_view (const View &view, const image_read_settings< FormatTag > &)
 

Protected Attributes

ConversionPolicy _cc_policy
 

Detailed Description

template<typename FormatTag, typename ConversionPolicy>
struct boost::gil::reader_base< FormatTag, ConversionPolicy >

Reader Base Class

It provides some basic functionality which is shared for all readers. For instance, it recreates images when necessary. It checks whether user supplied coordinates are valid.

Template Parameters
FormatTagA format tag, like jpeg_tag.
ConversionPolicyConversion policy, see coversion_policies.hpp.

Constructor & Destructor Documentation

◆ reader_base() [1/2]

reader_base ( )
inline

Default Constructor

◆ reader_base() [2/2]

reader_base ( const ConversionPolicy &  cc)
inline

Constructor

Member Function Documentation

◆ init_image()

void init_image ( Image &  img,
const image_read_settings< FormatTag > &  settings 
)
inline

Initializes an image. But also does some check ups.

Template Parameters
ImageImage which implements boost::gil's ImageConcept.
Parameters
imgThe image.
infoThe image read info.

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