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

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

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Retype some const unique_ptr<T>& parameters to const T&. 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698