OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ |
7 | 7 |
8 #include "services/media/framework/models/transform.h" | 8 #include "services/media/framework/models/transform.h" |
9 #include "services/media/framework/stream_type.h" | 9 #include "services/media/framework/stream_type.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 // A transform that reformats samples. | 14 // A transform that reformats samples. |
15 // TODO(dalesat): Some variations on this could be InPlaceTransforms. | 15 // TODO(dalesat): Some variations on this could be InPlaceTransforms. |
16 class LpcmReformatter : public Transform { | 16 class LpcmReformatter : public Transform { |
17 public: | 17 public: |
18 static std::shared_ptr<LpcmReformatter> Create( | 18 static std::shared_ptr<LpcmReformatter> Create( |
19 const LpcmStreamType& in_type, | 19 const LpcmStreamType& in_type, |
20 const LpcmStreamTypeSet& out_type); | 20 const LpcmStreamTypeSet& out_type); |
21 }; | 21 }; |
22 | 22 |
23 } // namespace media | 23 } // namespace media |
24 } // namespace mojo | 24 } // namespace mojo |
25 | 25 |
26 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ | 26 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ |
OLD | NEW |