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

Side by Side Diff: media/base/pipeline.h

Issue 39295: Checking in media::FFmpegDemuxer and tests. (Closed)
Patch Set: Fixes Created 11 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 | « no previous file | media/build/media.vcproj » ('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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // The pipeline is the public API clients use for playing back media. Clients 5 // The pipeline is the public API clients use for playing back media. Clients
6 // provide a filter factory containing the filters they want the pipeline to 6 // provide a filter factory containing the filters they want the pipeline to
7 // use to render media. 7 // use to render media.
8 8
9 #ifndef MEDIA_BASE_PIPELINE_H_ 9 #ifndef MEDIA_BASE_PIPELINE_H_
10 #define MEDIA_BASE_PIPELINE_H_ 10 #define MEDIA_BASE_PIPELINE_H_
(...skipping 13 matching lines...) Expand all
24 PIPELINE_OK, 24 PIPELINE_OK,
25 PIPELINE_STOPPING, 25 PIPELINE_STOPPING,
26 PIPELINE_ERROR_URL_NOT_FOUND, 26 PIPELINE_ERROR_URL_NOT_FOUND,
27 PIPELINE_ERROR_NETWORK, 27 PIPELINE_ERROR_NETWORK,
28 PIPELINE_ERROR_DECODE, 28 PIPELINE_ERROR_DECODE,
29 PIPELINE_ERROR_ABORT, 29 PIPELINE_ERROR_ABORT,
30 PIPELINE_ERROR_INITIALIZATION_FAILED, 30 PIPELINE_ERROR_INITIALIZATION_FAILED,
31 PIPELINE_ERROR_REQUIRED_FILTER_MISSING, 31 PIPELINE_ERROR_REQUIRED_FILTER_MISSING,
32 PIPELINE_ERROR_OUT_OF_MEMORY, 32 PIPELINE_ERROR_OUT_OF_MEMORY,
33 PIPELINE_ERROR_COULD_NOT_RENDER, 33 PIPELINE_ERROR_COULD_NOT_RENDER,
34 PIPELINE_ERROR_READ 34 PIPELINE_ERROR_READ,
35
36 // Demuxer related errors.
37 DEMUXER_ERROR_COULD_NOT_OPEN,
38 DEMUXER_ERROR_COULD_NOT_PARSE,
39 DEMUXER_ERROR_NO_SUPPORTED_STREAMS,
35 }; 40 };
36 41
37 // Base class for Pipeline class which allows for read-only access to members. 42 // Base class for Pipeline class which allows for read-only access to members.
38 // Filters are allowed to access the PipelineStatus interface but are not given 43 // Filters are allowed to access the PipelineStatus interface but are not given
39 // access to the client Pipeline methods. 44 // access to the client Pipeline methods.
40 class PipelineStatus { 45 class PipelineStatus {
41 public: 46 public:
42 // Returns the current initialization state of the pipeline. Clients can 47 // Returns the current initialization state of the pipeline. Clients can
43 // examine this to determine if it is acceptable to call SetRate/SetVolume/ 48 // examine this to determine if it is acceptable to call SetRate/SetVolume/
44 // Seek after calling Start on the pipeline. Note that this will be 49 // Seek after calling Start on the pipeline. Note that this will be
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // This method must be called only after initialization has completed. 171 // This method must be called only after initialization has completed.
167 virtual void SetVolume(float volume) = 0; 172 virtual void SetVolume(float volume) = 0;
168 173
169 protected: 174 protected:
170 virtual ~Pipeline() {} 175 virtual ~Pipeline() {}
171 }; 176 };
172 177
173 } // namespace media 178 } // namespace media
174 179
175 #endif // MEDIA_BASE_PIPELINE_H_ 180 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « no previous file | media/build/media.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698