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

Side by Side Diff: services/media/framework/lpcm_util.h

Issue 1577953002: Motown in-proc streaming framework used to implement media services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Various fixes based on feedback. Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_MEDIA_FRAMEWORK_LPCM_UTIL_H_
6 #define SERVICES_MEDIA_FRAMEWORK_LPCM_UTIL_H_
7
8 #include <memory>
9
10 #include "services/media/framework/stream_type.h"
11
12 namespace mojo {
13 namespace media {
14
15 // Helper class that performs various LPCM processing functions.
16 class LpcmUtil {
17 public:
18 static std::unique_ptr<LpcmUtil> Create(const LpcmStreamType& stream_type);
19
20 virtual ~LpcmUtil() {}
21
22 // Fills the buffer with silence.
23 virtual void Silence(void* buffer, uint64_t frame_count) const = 0;
24
25 // Copies samples.
26 virtual void Copy(const void* in, void* out, uint64_t frame_count) const = 0;
27
28 // Mixes samples.
29 virtual void Mix(const void* in, void* out, uint64_t frame_count) const = 0;
30
31 // Interleaves non-interleaved samples.
32 virtual void Interleave(
33 const void* in,
34 uint64_t in_byte_count,
35 void* out,
36 uint64_t frame_count) const = 0;
37 };
38
39 } // namespace media
40 } // namespace mojo
41
42 #endif // SERVICES_MEDIA_FRAMEWORK_LPCM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698