Chromium Code Reviews| Index: media/base/sinc_resampler.h |
| diff --git a/media/base/sinc_resampler.h b/media/base/sinc_resampler.h |
| index f4eaf5f1524c4489baa7f80c5d46ee8beec8c3b9..6126a7ccf28ffa5a2fbcf7f442a530567a2b7d3b 100644 |
| --- a/media/base/sinc_resampler.h |
| +++ b/media/base/sinc_resampler.h |
| @@ -73,8 +73,6 @@ class MEDIA_EXPORT SincResampler { |
| // linearly interpolated using |kernel_interpolation_factor|. On x86, the |
| // underlying implementation is chosen at run time based on SSE support. On |
| // ARM, NEON support is chosen at compile time based on compilation flags. |
| - static float Convolve(const float* input_ptr, const float* k1, |
| - const float* k2, double kernel_interpolation_factor); |
| static float Convolve_C(const float* input_ptr, const float* k1, |
| const float* k2, double kernel_interpolation_factor); |
| #if defined(ARCH_CPU_X86_FAMILY) |
| @@ -108,6 +106,14 @@ class MEDIA_EXPORT SincResampler { |
| // Data from the source is copied into this buffer for each processing pass. |
| scoped_ptr_malloc<float, base::ScopedPtrAlignedFree> input_buffer_; |
| + // Stores the runtime selection of which Convolve function to use. |
| +#if defined(ARCH_CPU_X86_FAMILY) && !defined(__SSE__) |
| + typedef float (*ConvolveProc)(const float* src, const float* k1, |
|
scherkus (not reviewing)
2013/03/08 02:33:08
nit: you don't need arg names here
DaleCurtis
2013/03/12 00:28:28
Done.
|
| + const float* k2, |
| + double kernel_interpolation_factor); |
| + const ConvolveProc convolve_proc_; |
| +#endif |
| + |
| // Pointers to the various regions inside |input_buffer_|. See the diagram at |
| // the top of the .cc file for more information. |
| float* const r0_; |