Mercurial > hg > tipic
view src/CRP.h @ 19:51eb8b1a1910
Add CRP (lacking some features)
author | Chris Cannam |
---|---|
date | Thu, 24 Sep 2015 16:35:48 +0100 |
parents | |
children | 353e88e4ebea |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #ifndef CRP_H #define CRP_H #include "Types.h" class DCT; //!!! Downsampling/temporal smoothing not yet implemented class CRP { public: struct Parameters { int coefficientsToDrop; bool applyLogCompression; Parameters() : coefficientsToDrop(54), applyLogCompression(true) { } }; CRP(Parameters params) : m_params(params), m_size(0), m_dct(0) { } ~CRP(); RealBlock process(const RealBlock &in); private: Parameters m_params; int m_size; DCT *m_dct; }; #endif