Cinder  0.9.1
Namespaces | Macros | Functions
Resize.cpp File Reference
#include "cinder/Surface.h"
#include "cinder/ip/Resize.h"
#include "cinder/Filter.h"
#include "cinder/Rect.h"
#include "cinder/ChanTraits.h"
#include <math.h>
#include <vector>
#include <limits>
#include <fstream>
#include <algorithm>
#include <boost/preprocessor/seq.hpp>

Namespaces

 cinder
 
 cinder::ip
 

Macros

#define MAP(b, scale, offset)   (((b)+(offset))/(scale))
 
#define resize_PROTOTYPES(r, data, T)
 

Functions

template<typename LT , typename AT >
void cinder::ip::scanlineAccumulate (LT weight, LT *lineBuffer, int32_t lineBufferWidth, AT *accum)
 
template<typename T , typename WT >
void cinder::ip::makeWeightTable (int32_t b, float cen, const FilterBase &filter, const FilterParams *params, int32_t len, bool trimzeros, WeightTable< WT > *wtab)
 
template<typename AT , typename T >
void cinder::ip::scanlineShiftAccumToChannel (AT *accum, int32_t x1, int32_t y, int32_t width, ChannelT< T > *channel)
 
template<typename T , typename WT , typename AT >
void cinder::ip::scanlineFilterChannelToBuffer (WeightTable< WT > *weights, int32_t x, int32_t y, const ChannelT< T > &channel, AT *lineBuffer, int32_t width)
 
template<typename T >
void cinder::ip::resample (const vector< const ChannelT< T > * > &srcChannels, const FilterBase &filter, const Area &srcArea, const Area &dstArea, const vector< ChannelT< T > * > &dstChannels)
 
template<typename T >
void cinder::ip::resize (const SurfaceT< T > &srcSurface, const Area &srcArea, SurfaceT< T > *dstSurface, const Area &dstArea, const FilterBase &filter=FilterTriangle())
 
template<typename T >
void cinder::ip::resize (const ChannelT< T > &srcChannel, const Area &srcArea, ChannelT< T > *dstChannel, const Area &dstArea, const FilterBase &filter=FilterTriangle())
 
template<typename T >
void cinder::ip::resize (const SurfaceT< T > &srcSurface, SurfaceT< T > *dstSurface, const FilterBase &filter=FilterTriangle())
 
template<typename T >
SurfaceT< T > cinder::ip::resizeCopy (const SurfaceT< T > &srcSurface, const Area &srcArea, const ivec2 &dstSize, const FilterBase &filter=FilterTriangle())
 
template<typename T >
void cinder::ip::resize (const ChannelT< T > &srcChannel, ChannelT< T > *dstChannel, const FilterBase &filter=FilterTriangle())
 

Macro Definition Documentation

#define MAP (   b,
  scale,
  offset 
)    (((b)+(offset))/(scale))
#define resize_PROTOTYPES (   r,
  data,
 
)
Value:
template void resize( const SurfaceT<T> &srcSurface, SurfaceT<T> *dstSurface, const FilterBase &filter ); \
template void resize( const SurfaceT<T> &srcSurface, const Area &srcArea, SurfaceT<T> *dstSurface, const Area &dstArea, const FilterBase &filter ); \
template void resize( const ChannelT<T> &srcChannel, ChannelT<T> *dstChannel, const FilterBase &filter ); \
template SurfaceT<T> resizeCopy( const SurfaceT<T> &srcSurface, const Area &srcArea, const ivec2 &dstSize, const FilterBase &filter ); \
template void resize( const ChannelT<T> &srcChannel, const Area &srcArea, ChannelT<T> *dstChannel, const Area &dstArea, const FilterBase &filter );
highp_ivec2 ivec2
Definition: type_vec.hpp:448
void resize
Definition: AppImplCocoaTouch.mm:743
SurfaceT< T > resizeCopy(const SurfaceT< T > &srcSurface, const Area &srcArea, const ivec2 &dstSize, const FilterBase &filter=FilterTriangle())
Returns a new Surface which is a copy of srcSurface&#39;s area srcArea scaled to size dstSize using filte...
Definition: Resize.cpp:350