webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros | Typedefs | Functions
sinc_resampler_unittest.cc File Reference
#include <math.h>
#include <memory>
#include "webrtc/base/timeutils.h"
#include "webrtc/common_audio/resampler/sinc_resampler.h"
#include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
#include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
#include "webrtc/system_wrappers/include/stringize_macros.h"
#include "webrtc/test/gmock.h"
#include "webrtc/test/gtest.h"

Classes

class  webrtc::MockSource
 
class  webrtc::SincResamplerTest
 

Namespaces

 webrtc
 

Macros

#define _USE_MATH_DEFINES
 
#define DBFS(x)   20 * log10(x)
 

Typedefs

typedef std::tr1::tuple< int, int, double, double > webrtc::SincResamplerTestData
 

Functions

 webrtc::ACTION (ClearBuffer)
 
 webrtc::ACTION (FillBuffer)
 
 webrtc::TEST (SincResamplerTest, ChunkedResample)
 
 webrtc::TEST (SincResamplerTest, Flush)
 
 webrtc::TEST (SincResamplerTest, DISABLED_SetRatioBench)
 
 webrtc::TEST (SincResamplerTest, ConvolveBenchmark)
 
 webrtc::TEST_P (SincResamplerTest, Resample)
 
 webrtc::INSTANTIATE_TEST_CASE_P (SincResamplerTest, SincResamplerTest, testing::Values(std::tr1::make_tuple(8000, 44100, kResamplingRMSError, -62.73), std::tr1::make_tuple(11025, 44100, kResamplingRMSError, -72.19), std::tr1::make_tuple(16000, 44100, kResamplingRMSError, -62.54), std::tr1::make_tuple(22050, 44100, kResamplingRMSError, -73.53), std::tr1::make_tuple(32000, 44100, kResamplingRMSError, -63.32), std::tr1::make_tuple(44100, 44100, kResamplingRMSError, -73.53), std::tr1::make_tuple(48000, 44100, -15.01, -64.04), std::tr1::make_tuple(96000, 44100, -18.49, -25.51), std::tr1::make_tuple(192000, 44100, -20.50, -13.31), std::tr1::make_tuple(8000, 48000, kResamplingRMSError, -63.43), std::tr1::make_tuple(11025, 48000, kResamplingRMSError, -62.61), std::tr1::make_tuple(16000, 48000, kResamplingRMSError, -63.96), std::tr1::make_tuple(22050, 48000, kResamplingRMSError, -62.42), std::tr1::make_tuple(32000, 48000, kResamplingRMSError, -64.04), std::tr1::make_tuple(44100, 48000, kResamplingRMSError, -62.63), std::tr1::make_tuple(48000, 48000, kResamplingRMSError, -73.52), std::tr1::make_tuple(96000, 48000, -18.40, -28.44), std::tr1::make_tuple(192000, 48000, -20.43, -14.11), std::tr1::make_tuple(8000, 96000, kResamplingRMSError, -63.19), std::tr1::make_tuple(11025, 96000, kResamplingRMSError, -62.61), std::tr1::make_tuple(16000, 96000, kResamplingRMSError, -63.39), std::tr1::make_tuple(22050, 96000, kResamplingRMSError, -62.42), std::tr1::make_tuple(32000, 96000, kResamplingRMSError, -63.95), std::tr1::make_tuple(44100, 96000, kResamplingRMSError, -62.63), std::tr1::make_tuple(48000, 96000, kResamplingRMSError, -73.52), std::tr1::make_tuple(96000, 96000, kResamplingRMSError, -73.52), std::tr1::make_tuple(192000, 96000, kResamplingRMSError, -28.41), std::tr1::make_tuple(8000, 192000, kResamplingRMSError, -63.10), std::tr1::make_tuple(11025, 192000, kResamplingRMSError, -62.61), std::tr1::make_tuple(16000, 192000, kResamplingRMSError, -63.14), std::tr1::make_tuple(22050, 192000, kResamplingRMSError, -62.42), std::tr1::make_tuple(32000, 192000, kResamplingRMSError, -63.38), std::tr1::make_tuple(44100, 192000, kResamplingRMSError, -62.63), std::tr1::make_tuple(48000, 192000, kResamplingRMSError, -73.44), std::tr1::make_tuple(96000, 192000, kResamplingRMSError, -73.52), std::tr1::make_tuple(192000, 192000, kResamplingRMSError, -73.52)))
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

◆ DBFS

#define DBFS (   x)    20 * log10(x)