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_CONVERSION_PIPELINE_BUILDER_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_CONVERSION_PIPELINE_BUILDER_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_CONVERSION_PIPELINE_BUILDER_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_CONVERSION_PIPELINE_BUILDER_H_ |
7 | 7 |
8 #include "services/media/framework/graph.h" | 8 #include "services/media/framework/graph.h" |
9 #include "services/media/framework/packet.h" | 9 #include "services/media/framework/packet.h" |
10 #include "services/media/framework/stream_type.h" | 10 #include "services/media/framework/stream_type.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 // Attempts to add transforms to the given pipeline to convert in_type to a | 15 // Attempts to add transforms to the given pipeline to convert in_type to a |
16 // type compatible with out_type_sets. If it succeeds, returns true, updates | 16 // type compatible with out_type_sets. If it succeeds, returns true, updates |
17 // *output and delivers the resulting output type via *out_type. If it fails, | 17 // *output and delivers the resulting output type via *out_type. If it fails, |
18 // returns false, sets *out_type to nullptr and leaves *output unchanged. | 18 // returns false, sets *out_type to nullptr and leaves *output unchanged. |
19 bool BuildConversionPipeline( | 19 bool BuildConversionPipeline( |
20 const std::unique_ptr<StreamType>& in_type, | 20 const StreamType& in_type, |
21 const std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>>& | 21 const std::vector<std::unique_ptr<StreamTypeSet>>& out_type_sets, |
22 out_type_sets, | |
23 Graph* graph, | 22 Graph* graph, |
24 OutputRef* output, | 23 OutputRef* output, |
25 std::unique_ptr<StreamType>* out_type); | 24 std::unique_ptr<StreamType>* out_type); |
26 | 25 |
27 } // namespace media | 26 } // namespace media |
28 } // namespace mojo | 27 } // namespace mojo |
29 | 28 |
30 #endif // SERVICES_MEDIA_FRAMEWORK_CONVERSION_PIPELINE_BUILDER_H_ | 29 #endif // SERVICES_MEDIA_FRAMEWORK_CONVERSION_PIPELINE_BUILDER_H_ |
OLD | NEW |