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

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

Issue 363813002: Update to Pipeline Metadata and Decoder Stream for Orientation Data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split enum to own file Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/synchronization/condition_variable.h" 11 #include "base/synchronization/condition_variable.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "base/time/default_tick_clock.h" 14 #include "base/time/default_tick_clock.h"
15 #include "media/base/audio_renderer.h" 15 #include "media/base/audio_renderer.h"
16 #include "media/base/buffering_state.h" 16 #include "media/base/buffering_state.h"
17 #include "media/base/demuxer.h" 17 #include "media/base/demuxer.h"
18 #include "media/base/media_export.h" 18 #include "media/base/media_export.h"
19 #include "media/base/pipeline_status.h" 19 #include "media/base/pipeline_status.h"
20 #include "media/base/ranges.h" 20 #include "media/base/ranges.h"
21 #include "media/base/serial_runner.h" 21 #include "media/base/serial_runner.h"
22 #include "media/base/video_decoder_config.h"
scherkus (not reviewing) 2014/07/07 22:41:11 no longer need this include
23 #include "media/base/video_rotation.h"
22 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
23 25
24 namespace base { 26 namespace base {
25 class SingleThreadTaskRunner; 27 class SingleThreadTaskRunner;
26 class TimeDelta; 28 class TimeDelta;
27 } 29 }
28 30
29 namespace media { 31 namespace media {
30 32
31 class Clock; 33 class Clock;
32 class FilterCollection; 34 class FilterCollection;
33 class MediaLog; 35 class MediaLog;
34 class TextRenderer; 36 class TextRenderer;
35 class TextTrackConfig; 37 class TextTrackConfig;
36 class VideoRenderer; 38 class VideoRenderer;
37 39
38 // Metadata describing a pipeline once it has been initialized. 40 // Metadata describing a pipeline once it has been initialized.
39 struct PipelineMetadata { 41 struct PipelineMetadata {
40 PipelineMetadata() : has_audio(false), has_video(false) {} 42 PipelineMetadata()
43 : has_audio(false), has_video(false), video_rotation(VIDEO_ROTATION_0) {}
41 44
42 bool has_audio; 45 bool has_audio;
43 bool has_video; 46 bool has_video;
44 gfx::Size natural_size; 47 gfx::Size natural_size;
48 VideoRotation video_rotation;
45 base::Time timeline_offset; 49 base::Time timeline_offset;
46 }; 50 };
47 51
48 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; 52 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB;
49 53
50 // Pipeline runs the media pipeline. Filters are created and called on the 54 // Pipeline runs the media pipeline. Filters are created and called on the
51 // task runner injected into this object. Pipeline works like a state 55 // task runner injected into this object. Pipeline works like a state
52 // machine to perform asynchronous initialization, pausing, seeking and playing. 56 // machine to perform asynchronous initialization, pausing, seeking and playing.
53 // 57 //
54 // Here's a state diagram that describes the lifetime of this object. 58 // Here's a state diagram that describes the lifetime of this object.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 bool underflow_disabled_for_testing_; 438 bool underflow_disabled_for_testing_;
435 439
436 base::ThreadChecker thread_checker_; 440 base::ThreadChecker thread_checker_;
437 441
438 DISALLOW_COPY_AND_ASSIGN(Pipeline); 442 DISALLOW_COPY_AND_ASSIGN(Pipeline);
439 }; 443 };
440 444
441 } // namespace media 445 } // namespace media
442 446
443 #endif // MEDIA_BASE_PIPELINE_H_ 447 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698