HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TIL_PixelFilter Class Referenceabstract

This is the super-duper-class for all pixel filters in TIL. More...

#include <TIL_PixelFilter.h>

+ Inheritance diagram for TIL_PixelFilter:

Public Member Functions

virtual ~TIL_PixelFilter ()
 
virtual void filterPlaneVirtual (const TIL_AdaptiveImage &src, TIL_Raster &dest, int planei, int plane_src_components) const =0
 
virtual void combineSample (int ncomponents, exint nexisting_samples, float *existing, exint nnew_samples, const float *new_sample) const
 
SYS_FORCE_INLINE bool needsSquares () const
 
SYS_FORCE_INLINE bool needsWeights () const
 
SYS_FORCE_INLINE bool vetsSamples () const
 
virtual bool ownedBySingleton () const
 

Protected Member Functions

 TIL_PixelFilter ()
 
 TIL_PixelFilter (bool needs_squares, bool vets_samples, bool needs_weights)
 

Detailed Description

This is the super-duper-class for all pixel filters in TIL.

Definition at line 26 of file TIL_PixelFilter.h.

Constructor & Destructor Documentation

virtual TIL_PixelFilter::~TIL_PixelFilter ( )
inlinevirtual

Definition at line 29 of file TIL_PixelFilter.h.

TIL_PixelFilter::TIL_PixelFilter ( )
inlineprotected

Definition at line 93 of file TIL_PixelFilter.h.

TIL_PixelFilter::TIL_PixelFilter ( bool  needs_squares,
bool  vets_samples,
bool  needs_weights 
)
inlineprotected

Definition at line 98 of file TIL_PixelFilter.h.

Member Function Documentation

virtual void TIL_PixelFilter::combineSample ( int  ncomponents,
exint  nexisting_samples,
float existing,
exint  nnew_samples,
const float new_sample 
) const
inlinevirtual

When vetsSamples() returns true, this should be called so that the pixel filter can decide how to combine samples, instead of just summing. NOTE: nnew_samples is 1 when adding a new sample, but may be more than 1 when combining pixels into higher levels of the TIL_AdaptiveImage.

Reimplemented in TIL_PixelFilterMinMax< IS_MAX >.

Definition at line 44 of file TIL_PixelFilter.h.

SYS_FORCE_INLINE bool TIL_PixelFilter::needsSquares ( ) const
inline

Returns true iff this filter requires TIL_AdaptiveImage to initialize TIL_AdaptiveImage::Level::mySumsOfSquares for the plane that this filter is applied to.

Definition at line 61 of file TIL_PixelFilter.h.

SYS_FORCE_INLINE bool TIL_PixelFilter::needsWeights ( ) const
inline

Returns true iff this filter requires TIL_AdaptiveImage to initialize TIL_AdaptiveImage::Level::myWeights from the adaptivity plane.

Definition at line 70 of file TIL_PixelFilter.h.

virtual bool TIL_PixelFilter::ownedBySingleton ( ) const
inlinevirtual

Returns false iff TIL_AdaptiveImage needs to create/delete it. true means that it's owned globally, so will be deleted when the process exits.

Reimplemented in TIL_PixelFilterMinMax< IS_MAX >, TIL_PixelFilterPower2Block, TIL_PixelFilterSampleCount, and TIL_PixelFilterPixelLevel.

Definition at line 87 of file TIL_PixelFilter.h.

SYS_FORCE_INLINE bool TIL_PixelFilter::vetsSamples ( ) const
inline

Returns true iff TIL_AdaptiveImage needs to call combineSample when inserting a sample to a plane with this filter.

Definition at line 79 of file TIL_PixelFilter.h.


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