OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/renderer/media/rtc_video_decoder_bridge_tv.h" | 5 #include "content/renderer/media/rtc_video_decoder_bridge_tv.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "content/renderer/media/rtc_video_decoder_factory_tv.h" | 17 #include "content/renderer/media/rtc_video_decoder_factory_tv.h" |
18 #include "media/base/bind_to_loop.h" | 18 #include "media/base/bind_to_loop.h" |
19 #include "media/base/decoder_buffer.h" | 19 #include "media/base/decoder_buffer.h" |
20 #include "third_party/libjingle/source/talk/base/ratetracker.h" | 20 #include "third_party/libjingle/source/talk/base/ratetracker.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 RTCVideoDecoderBridgeTv::RTCVideoDecoderBridgeTv( | 24 RTCVideoDecoderBridgeTv::RTCVideoDecoderBridgeTv( |
25 RTCVideoDecoderFactoryTv* factory) | 25 RTCVideoDecoderFactoryTv* factory) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // libjingle, so that it can generate proper stats. | 129 // libjingle, so that it can generate proper stats. |
130 webrtc::I420VideoFrame dummy_video_frame; | 130 webrtc::I420VideoFrame dummy_video_frame; |
131 int half_width = (size.width() + 1) / 2; | 131 int half_width = (size.width() + 1) / 2; |
132 dummy_video_frame.CreateEmptyFrame( | 132 dummy_video_frame.CreateEmptyFrame( |
133 size.width(), size.height(), size.width(), half_width, half_width); | 133 size.width(), size.height(), size.width(), half_width, half_width); |
134 dummy_video_frame.set_timestamp(timestamp); | 134 dummy_video_frame.set_timestamp(timestamp); |
135 callback->Decoded(dummy_video_frame); | 135 callback->Decoded(dummy_video_frame); |
136 } | 136 } |
137 | 137 |
138 } // namespace content | 138 } // namespace content |
OLD | NEW |