| 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/lpcm_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 class LpcmReformatter; | |
| 15 | |
| 16 typedef SharedPtr<LpcmReformatter, LpcmTransform> LpcmReformatterPtr; | |
| 17 | |
| 18 // A transform that reformats samples. | 14 // A transform that reformats samples. |
| 19 // TODO(dalesat): Some variations on this could be InPlacePacketTransforms. | 15 // TODO(dalesat): Some variations on this could be InPlaceTransforms. |
| 20 class LpcmReformatter : public LpcmTransform { | 16 class LpcmReformatter : public Transform { |
| 21 public: | 17 public: |
| 22 static LpcmReformatterPtr Create( | 18 static std::shared_ptr<LpcmReformatter> Create( |
| 23 const LpcmStreamType& in_type, | 19 const LpcmStreamType& in_type, |
| 24 const LpcmStreamTypeSet& out_type); | 20 const LpcmStreamTypeSet& out_type); |
| 25 }; | 21 }; |
| 26 | 22 |
| 27 } // namespace media | 23 } // namespace media |
| 28 } // namespace mojo | 24 } // namespace mojo |
| 29 | 25 |
| 30 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ | 26 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_LPCM_REFORMATTER_H_ |
| OLD | NEW |