| 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 #include "media/cast/sender/vp8_encoder.h" | 5 #include "media/cast/sender/vp8_encoder.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/video_frame.h" | 8 #include "media/base/video_frame.h" |
| 9 #include "media/cast/cast_defines.h" | 9 #include "media/cast/cast_defines.h" |
| 10 #include "third_party/libvpx/source/libvpx/vpx/vp8cx.h" | 10 #include "third_party/libvpx_new/source/libvpx/vpx/vp8cx.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 namespace cast { | 13 namespace cast { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // After a pause in the video stream, what is the maximum duration amount to | 17 // After a pause in the video stream, what is the maximum duration amount to |
| 18 // pass to the encoder for the next frame (in terms of 1/max_fps sized periods)? | 18 // pass to the encoder for the next frame (in terms of 1/max_fps sized periods)? |
| 19 // This essentially controls the encoded size of the first frame that follows a | 19 // This essentially controls the encoded size of the first frame that follows a |
| 20 // pause in the video stream. | 20 // pause in the video stream. |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 } | 509 } |
| 510 } | 510 } |
| 511 | 511 |
| 512 void Vp8Encoder::GenerateKeyFrame() { | 512 void Vp8Encoder::GenerateKeyFrame() { |
| 513 DCHECK(thread_checker_.CalledOnValidThread()); | 513 DCHECK(thread_checker_.CalledOnValidThread()); |
| 514 key_frame_requested_ = true; | 514 key_frame_requested_ = true; |
| 515 } | 515 } |
| 516 | 516 |
| 517 } // namespace cast | 517 } // namespace cast |
| 518 } // namespace media | 518 } // namespace media |
| OLD | NEW |