OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ |
6 #define CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "chromecast/media/cma/backend/media_component_device.h" | |
16 #include "chromecast/media/cma/pipeline/av_pipeline_client.h" | 15 #include "chromecast/media/cma/pipeline/av_pipeline_client.h" |
| 16 #include "chromecast/public/media/media_component_device.h" |
17 #include "chromecast/public/media/stream_id.h" | 17 #include "chromecast/public/media/stream_id.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 class AudioDecoderConfig; | 20 class AudioDecoderConfig; |
21 class VideoDecoderConfig; | 21 class VideoDecoderConfig; |
22 } | 22 } |
23 | 23 |
24 namespace chromecast { | 24 namespace chromecast { |
25 namespace media { | 25 namespace media { |
26 class BrowserCdmCast; | 26 class BrowserCdmCast; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // AV pipeline state. | 124 // AV pipeline state. |
125 State state_; | 125 State state_; |
126 | 126 |
127 // Buffering state. | 127 // Buffering state. |
128 // Can be NULL if there is no buffering strategy. | 128 // Can be NULL if there is no buffering strategy. |
129 scoped_refptr<BufferingState> buffering_state_; | 129 scoped_refptr<BufferingState> buffering_state_; |
130 | 130 |
131 // |buffered_time_| is the maximum timestamp of buffered frames. | 131 // |buffered_time_| is the maximum timestamp of buffered frames. |
132 // |playable_buffered_time_| is the maximum timestamp of buffered and | 132 // |playable_buffered_time_| is the maximum timestamp of buffered and |
133 // playable frames (i.e. the key id is available for those frames). | 133 // playable frames (i.e. the key id is available for those frames). |
134 base::TimeDelta buffered_time_; | 134 TimeDelta buffered_time_; |
135 base::TimeDelta playable_buffered_time_; | 135 TimeDelta playable_buffered_time_; |
136 | 136 |
137 // List of frames buffered but not playable right away due to a missing | 137 // List of frames buffered but not playable right away due to a missing |
138 // key id. | 138 // key id. |
139 std::list<scoped_refptr<DecoderBufferBase> > non_playable_frames_; | 139 std::list<scoped_refptr<DecoderBufferBase> > non_playable_frames_; |
140 | 140 |
141 // Buffer provider. | 141 // Buffer provider. |
142 scoped_ptr<BufferingFrameProvider> frame_provider_; | 142 scoped_ptr<BufferingFrameProvider> frame_provider_; |
143 | 143 |
144 // Indicate whether the frame fetching process is active. | 144 // Indicate whether the frame fetching process is active. |
145 bool enable_feeding_; | 145 bool enable_feeding_; |
(...skipping 19 matching lines...) Expand all Loading... |
165 base::WeakPtr<AvPipelineImpl> weak_this_; | 165 base::WeakPtr<AvPipelineImpl> weak_this_; |
166 base::WeakPtrFactory<AvPipelineImpl> weak_factory_; | 166 base::WeakPtrFactory<AvPipelineImpl> weak_factory_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(AvPipelineImpl); | 168 DISALLOW_COPY_AND_ASSIGN(AvPipelineImpl); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace media | 171 } // namespace media |
172 } // namespace chromecast | 172 } // namespace chromecast |
173 | 173 |
174 #endif // CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ | 174 #endif // CHROMECAST_MEDIA_CMA_BASE_AV_PIPELINE_IMPL_H_ |
OLD | NEW |