#include "basisu_resampler.h"
#include "basisu_resampler_filters.h"
#define RESAMPLER_DEBUG …
namespace basisu
{
static inline int resampler_range_check(int v, int h)
{ … }
static inline int cast_to_int(Resample_Real i)
{ … }
int Resampler::reflect(const int j, const int src_x, const Boundary_Op boundary_op)
{ … }
Resampler::Contrib_List * Resampler::make_clist(
int src_x, int dst_x, Boundary_Op boundary_op,
Resample_Real(*Pfilter)(Resample_Real),
Resample_Real filter_support,
Resample_Real filter_scale,
Resample_Real src_ofs)
{ … }
void Resampler::resample_x(Sample * Pdst, const Sample * Psrc)
{ … }
void Resampler::scale_y_mov(Sample * Ptmp, const Sample * Psrc, Resample_Real weight, int dst_x)
{ … }
void Resampler::scale_y_add(Sample * Ptmp, const Sample * Psrc, Resample_Real weight, int dst_x)
{ … }
void Resampler::clamp(Sample * Pdst, int n)
{ … }
void Resampler::resample_y(Sample * Pdst)
{ … }
bool Resampler::put_line(const Sample * Psrc)
{ … }
const Resampler::Sample* Resampler::get_line()
{ … }
Resampler::~Resampler()
{ … }
void Resampler::restart()
{ … }
Resampler::Resampler(int src_x, int src_y,
int dst_x, int dst_y,
Boundary_Op boundary_op,
Resample_Real sample_low, Resample_Real sample_high,
const char* Pfilter_name,
Contrib_List * Pclist_x,
Contrib_List * Pclist_y,
Resample_Real filter_x_scale,
Resample_Real filter_y_scale,
Resample_Real src_x_ofs,
Resample_Real src_y_ofs)
{ … }
void Resampler::get_clists(Contrib_List * *ptr_clist_x, Contrib_List * *ptr_clist_y)
{ … }
int Resampler::get_filter_num()
{ … }
const char* Resampler::get_filter_name(int filter_num)
{ … }
}