Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: services/media/audio/platform/generic/mixers/linear_sampler.h

Issue 1455303003: Add a linear interpolation resampler. (Closed) Base URL: https://github.com/domokit/mojo.git@change6
Patch Set: Final rebase before landing Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/media/audio/platform/generic/mixers/linear_sampler.h
diff --git a/services/media/audio/platform/generic/mixers/point_sampler.h b/services/media/audio/platform/generic/mixers/linear_sampler.h
similarity index 67%
copy from services/media/audio/platform/generic/mixers/point_sampler.h
copy to services/media/audio/platform/generic/mixers/linear_sampler.h
index f7244a6f97240cc8854af02ae50e82297b0aec3b..44724e2cb82a7054512a4769d788c4db54dd5790 100644
--- a/services/media/audio/platform/generic/mixers/point_sampler.h
+++ b/services/media/audio/platform/generic/mixers/linear_sampler.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_POINT_SAMPLER_H_
-#define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_POINT_SAMPLER_H_
+#ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
+#define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
#include "mojo/services/media/common/interfaces/media_types.mojom.h"
#include "services/media/audio/platform/generic/mixer.h"
@@ -13,13 +13,13 @@ namespace media {
namespace audio {
namespace mixers {
-class PointSampler : public Mixer {
+class LinearSampler : public Mixer {
public:
static MixerPtr Select(const LpcmMediaTypeDetailsPtr& src_format,
const LpcmMediaTypeDetailsPtr& dst_format);
protected:
- PointSampler(uint32_t pos_filter_width, uint32_t neg_filter_width)
+ LinearSampler(uint32_t pos_filter_width, uint32_t neg_filter_width)
: Mixer(pos_filter_width, neg_filter_width) {}
};
@@ -28,4 +28,4 @@ class PointSampler : public Mixer {
} // namespace media
} // namespace mojo
-#endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_POINT_SAMPLER_H_
+#endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
« no previous file with comments | « services/media/audio/platform/generic/mixer.cc ('k') | services/media/audio/platform/generic/mixers/linear_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698