Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
Include dependency graph for Resize.cpp:

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 Vec2i &dstSize, const FilterBase &filter=FilterTriangle())
 Returns a new Surface which is a copy of srcSurface's area srcArea scaled to size dstSize using filter filter. More...
 
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 Vec2i &dstSize, const FilterBase &filter ); \
template void resize( const ChannelT<T> &srcChannel, const Area &srcArea, ChannelT<T> *dstChannel, const Area &dstArea, const FilterBase &filter );
void resize()
Definition: AppCocoaTouch.mm:1075
SurfaceT< T > resizeCopy(const SurfaceT< T > &srcSurface, const Area &srcArea, const Vec2i &dstSize, const FilterBase &filter=FilterTriangle())
Returns a new Surface which is a copy of srcSurface's area srcArea scaled to size dstSize using filte...
Definition: Resize.cpp:350
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: GLee.h:5419
Vec2< int > Vec2i
Definition: Vector.h:1313