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

Side by Side Diff: services/media/framework/parts/decoder.h

Issue 1822333002: Motown: wholesale clang-format (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat Created 4 years, 9 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
« no previous file with comments | « services/media/framework/packet.cc ('k') | services/media/framework/parts/demux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PARTS_DECODER_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_DECODER_H_
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_DECODER_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_DECODER_H_
7 7
8 #include "services/media/framework/models/transform.h" 8 #include "services/media/framework/models/transform.h"
9 #include "services/media/framework/packet.h" 9 #include "services/media/framework/packet.h"
10 #include "services/media/framework/payload_allocator.h" 10 #include "services/media/framework/payload_allocator.h"
11 #include "services/media/framework/result.h" 11 #include "services/media/framework/result.h"
12 #include "services/media/framework/stream_type.h" 12 #include "services/media/framework/stream_type.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace media { 15 namespace media {
16 16
17 // Abstract base class for transforms that decode compressed media. 17 // Abstract base class for transforms that decode compressed media.
18 class Decoder : public Transform { 18 class Decoder : public Transform {
19 public: 19 public:
20 // Creates a Decoder object for a given stream type. 20 // Creates a Decoder object for a given stream type.
21 static Result Create( 21 static Result Create(const StreamType& stream_type,
22 const StreamType& stream_type, 22 std::shared_ptr<Decoder>* decoder_out);
23 std::shared_ptr<Decoder>* decoder_out);
24 23
25 ~Decoder() override {} 24 ~Decoder() override {}
26 25
27 // Returns the type of the stream the decoder will produce. 26 // Returns the type of the stream the decoder will produce.
28 virtual std::unique_ptr<StreamType> output_stream_type() = 0; 27 virtual std::unique_ptr<StreamType> output_stream_type() = 0;
29 }; 28 };
30 29
31 } // namespace media 30 } // namespace media
32 } // namespace mojo 31 } // namespace mojo
33 32
34 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_DECODER_H_ 33 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_DECODER_H_
OLDNEW
« no previous file with comments | « services/media/framework/packet.cc ('k') | services/media/framework/parts/demux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698