NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <assert.h>
#include <string.h>
#include <iostream>
#include "resampler.h"
Go to the source code of this file.
Macros | |
#define | resampler_assert assert |
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | min(a, b) (((a) < (b)) ? (a) : (b)) |
#define | TRUE (1) |
#define | FALSE (0) |
#define | RESAMPLER_DEBUG 0 |
#define | M_PI 3.14159265358979323846 |
#define | BOX_FILTER_SUPPORT (0.5f) |
#define | TENT_FILTER_SUPPORT (1.0f) |
#define | BELL_SUPPORT (1.5f) |
#define | B_SPLINE_SUPPORT (2.0f) |
#define | QUADRATIC_SUPPORT 1.5f |
#define | MITCHELL_SUPPORT (2.0f) |
#define | CATMULL_ROM_SUPPORT (2.0f) |
#define | BLACKMAN_SUPPORT (3.0f) |
#define | GAUSSIAN_SUPPORT (1.25f) |
#define | LANCZOS3_SUPPORT (3.0f) |
#define | LANCZOS4_SUPPORT (4.0f) |
#define | LANCZOS6_SUPPORT (6.0f) |
#define | LANCZOS12_SUPPORT (12.0f) |
#define | KAISER_SUPPORT 3 |
Variables | |
static const Resample_Real | KAISER_ALPHA = 4.0 |
struct { | |
char name [32] | |
Resample_Real(* func )(Resample_Real t) | |
Resample_Real support | |
} | g_filters [] |
static const int | NUM_FILTERS = sizeof(g_filters) / sizeof(g_filters[0]) |
#define B_SPLINE_SUPPORT (2.0f) |
Definition at line 115 of file resampler.cpp.
#define BELL_SUPPORT (1.5f) |
Definition at line 97 of file resampler.cpp.
#define BLACKMAN_SUPPORT (3.0f) |
Definition at line 248 of file resampler.cpp.
#define BOX_FILTER_SUPPORT (0.5f) |
Definition at line 75 of file resampler.cpp.
#define CATMULL_ROM_SUPPORT (2.0f) |
Definition at line 214 of file resampler.cpp.
#define FALSE (0) |
Definition at line 42 of file resampler.cpp.
#define GAUSSIAN_SUPPORT (1.25f) |
Definition at line 261 of file resampler.cpp.
#define KAISER_SUPPORT 3 |
Definition at line 350 of file resampler.cpp.
#define LANCZOS12_SUPPORT (12.0f) |
Definition at line 309 of file resampler.cpp.
#define LANCZOS3_SUPPORT (3.0f) |
Definition at line 273 of file resampler.cpp.
#define LANCZOS4_SUPPORT (4.0f) |
Definition at line 285 of file resampler.cpp.
#define LANCZOS6_SUPPORT (6.0f) |
Definition at line 297 of file resampler.cpp.
#define M_PI 3.14159265358979323846 |
Definition at line 47 of file resampler.cpp.
#define max | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
Definition at line 30 of file resampler.cpp.
#define min | ( | a, | |
b | |||
) | (((a) < (b)) ? (a) : (b)) |
Definition at line 34 of file resampler.cpp.
#define MITCHELL_SUPPORT (2.0f) |
Definition at line 208 of file resampler.cpp.
#define QUADRATIC_SUPPORT 1.5f |
Definition at line 138 of file resampler.cpp.
#define resampler_assert assert |
Definition at line 20 of file resampler.cpp.
#define RESAMPLER_DEBUG 0 |
Definition at line 45 of file resampler.cpp.
#define TENT_FILTER_SUPPORT (1.0f) |
Definition at line 85 of file resampler.cpp.
#define TRUE (1) |
Definition at line 38 of file resampler.cpp.
|
static |
Definition at line 116 of file resampler.cpp.
|
static |
Definition at line 98 of file resampler.cpp.
|
static |
Definition at line 321 of file resampler.cpp.
Referenced by kaiser().
|
static |
Definition at line 243 of file resampler.cpp.
References M_PI.
Referenced by blackman_filter(), and gaussian_filter().
|
static |
Definition at line 249 of file resampler.cpp.
References blackman_exact_window(), clean(), and sinc().
|
static |
Definition at line 76 of file resampler.cpp.
|
inlinestatic |
Definition at line 50 of file resampler.cpp.
Referenced by Resampler::make_clist().
|
static |
Definition at line 215 of file resampler.cpp.
References mitchell().
|
static |
Definition at line 230 of file resampler.cpp.
Referenced by blackman_filter(), gaussian_filter(), kaiser_filter(), lanczos12_filter(), lanczos3_filter(), lanczos4_filter(), and lanczos6_filter().
|
static |
Definition at line 262 of file resampler.cpp.
References blackman_exact_window(), clean(), GAUSSIAN_SUPPORT, and M_PI.
|
static |
Definition at line 344 of file resampler.cpp.
References bessel0().
Referenced by kaiser_filter().
|
static |
Definition at line 351 of file resampler.cpp.
References clean(), kaiser(), KAISER_SUPPORT, and sinc().
|
static |
Definition at line 310 of file resampler.cpp.
References clean(), and sinc().
|
static |
Definition at line 274 of file resampler.cpp.
References clean(), and sinc().
|
static |
Definition at line 286 of file resampler.cpp.
References clean(), and sinc().
|
static |
Definition at line 298 of file resampler.cpp.
References clean(), and sinc().
|
static |
Definition at line 178 of file resampler.cpp.
Referenced by catmull_rom_filter(), and mitchell_filter().
|
static |
Definition at line 209 of file resampler.cpp.
References mitchell().
|
inlinestatic |
Definition at line 56 of file resampler.cpp.
Referenced by Resampler::reflect().
|
static |
Definition at line 139 of file resampler.cpp.
References QUADRATIC_SUPPORT.
Referenced by quadratic_approx_filter(), quadratic_interp_filter(), and quadratic_mix_filter().
|
static |
Definition at line 160 of file resampler.cpp.
References quadratic().
|
static |
Definition at line 155 of file resampler.cpp.
References quadratic().
|
static |
Definition at line 165 of file resampler.cpp.
References quadratic().
|
inlinestatic |
Definition at line 22 of file resampler.cpp.
References resampler_assert.
Referenced by Resampler::get_line(), Resampler::put_line(), Resampler::resample_y(), Resampler::Resampler(), and Resampler::restart().
|
static |
Definition at line 220 of file resampler.cpp.
References M_PI.
Referenced by blackman_filter(), kaiser_filter(), lanczos12_filter(), lanczos3_filter(), lanczos4_filter(), and lanczos6_filter().
|
static |
Definition at line 86 of file resampler.cpp.
Resample_Real(* func) (Resample_Real t) | ( | Resample_Real | t | ) |
Definition at line 372 of file resampler.cpp.
Referenced by applyFunctionHeuristics(), mu::ParserBase::ContainsVectorVars(), Fitcontroller::fitctrl(), Resampler::Resampler(), and wxMGL::SetDraw().
struct { ... } g_filters[] |
Referenced by Resampler::get_filter_name(), and Resampler::Resampler().
|
static |
Definition at line 343 of file resampler.cpp.
char name[32] |
Definition at line 371 of file resampler.cpp.
Referenced by YExcel::BasicExcel::AddWorksheet(), tinyxml2::XMLElement::Attribute(), tinyxml2::XMLElement::BoolAttribute(), tinyxml2::XMLPrinter::CloseElement(), YExcel::LargeString::ContinueRead(), YCompoundFiles::Block::Create(), wxTreeListMainWindow::Create(), wxTreeListCtrl::Create(), tinyxml2::XMLElement::DeleteAttribute(), YExcel::BasicExcel::DeleteWorksheet(), LexerNSCR::DescribeProperty(), LexerNPRC::DescribeProperty(), YCompoundFiles::CompoundFile::DirectoryList(), tinyxml2::XMLElement::DoubleAttribute(), EnsureDirectory(), TUnzip::Find(), NumeReEditor::FindAndOpenProcedure(), tinyxml2::XMLElement::FindAttribute(), tinyxml2::XMLElement::FindOrCreateAttribute(), YCompoundFiles::CompoundFile::FindProperty(), FindZipItem(), tinyxml2::XMLHandle::FirstChildElement(), tinyxml2::XMLNode::FirstChildElement(), tinyxml2::XMLConstHandle::FirstChildElement(), tinyxml2::XMLElement::FloatAttribute(), AboutChameleonDialog::GetBitmapResource(), AboutChameleonDialog::GetIconResource(), PackageDialog::getPackageName(), YExcel::BasicExcelWorksheet::GetSheetName(), YExcel::BasicExcel::GetSheetName(), YExcel::BasicExcel::GetWorksheet(), IntervalSet::hasDependentIntervals(), tinyxml2::XMLElement::InsertNewChildElement(), tinyxml2::XMLElement::Int64Attribute(), tinyxml2::XMLElement::IntAttribute(), tinyxml2::XMLHandle::LastChildElement(), tinyxml2::XMLNode::LastChildElement(), tinyxml2::XMLConstHandle::LastChildElement(), CustomWindow::layoutChild(), date::zoned_traits< Posix::time_zone >::locate_zone(), date::zoned_traits< const time_zone * >::locate_zone(), date::make_zoned(), tinyxml2::XMLDocument::NewElement(), tinyxml2::XMLHandle::NextSiblingElement(), tinyxml2::XMLNode::NextSiblingElement(), tinyxml2::XMLConstHandle::NextSiblingElement(), tinyxml2::XMLPrinter::OpenElement(), tinyxml2::XMLHandle::PreviousSiblingElement(), tinyxml2::XMLNode::PreviousSiblingElement(), tinyxml2::XMLConstHandle::PreviousSiblingElement(), LexerNSCR::PropertyType(), LexerNPRC::PropertyType(), tinyxml2::XMLPrinter::PushAttribute(), tinyxml2::XMLElement::QueryAttribute(), tinyxml2::XMLElement::QueryBoolAttribute(), tinyxml2::XMLElement::QueryDoubleAttribute(), tinyxml2::XMLElement::QueryFloatAttribute(), tinyxml2::XMLElement::QueryInt64Attribute(), tinyxml2::XMLElement::QueryIntAttribute(), tinyxml2::XMLElement::QueryStringAttribute(), tinyxml2::XMLElement::QueryUnsigned64Attribute(), tinyxml2::XMLElement::QueryUnsignedAttribute(), Posix::detail::read_name(), ReadWave(), Resampler::Resampler(), tinyxml2::XMLElement::SetAttribute(), NumeRe::GenericFile::setTableName(), tinyxml2::XMLNode::ToElementWithName(), tinyxml2::MemPoolT< ITEM_SIZE >::Trace(), tinyxml2::XMLElement::Unsigned64Attribute(), tinyxml2::XMLElement::UnsignedAttribute(), TUnzip::Unzip(), wxTreeListCtrl::wxTreeListCtrl(), and wxTreeListMainWindow::wxTreeListMainWindow().
Definition at line 394 of file resampler.cpp.
Referenced by Resampler::get_filter_name(), Resampler::get_filter_num(), and Resampler::Resampler().
Resample_Real support |
Definition at line 373 of file resampler.cpp.
Referenced by Resampler::Resampler().