| OLD | NEW |
| 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 #include "remoting/codec/video_encoder_vp8.h" | 5 #include "remoting/codec/video_encoder_vp8.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "media/base/yuv_convert.h" | 10 #include "media/base/yuv_convert.h" |
| 11 #include "remoting/base/util.h" | 11 #include "remoting/base/util.h" |
| 12 #include "remoting/capturer/capture_data.h" | 12 #include "remoting/capturer/capture_data.h" |
| 13 #include "remoting/proto/video.pb.h" | 13 #include "remoting/proto/video.pb.h" |
| 14 | 14 |
| 15 extern "C" { | 15 extern "C" { |
| 16 #define VPX_CODEC_DISABLE_COMPAT 1 | 16 #define VPX_CODEC_DISABLE_COMPAT 1 |
| 17 #include "third_party/libvpx/libvpx.h" | 17 #include "third_party/libvpx/source/libvpx/vpx/vpx_encoder.h" |
| 18 #include "third_party/libvpx/source/libvpx/vpx/vp8cx.h" |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 // Defines the dimension of a macro block. This is used to compute the active | 23 // Defines the dimension of a macro block. This is used to compute the active |
| 23 // map for the encoder. | 24 // map for the encoder. |
| 24 const int kMacroBlockSize = 16; | 25 const int kMacroBlockSize = 16; |
| 25 | 26 |
| 26 } // namespace remoting | 27 } // namespace remoting |
| 27 | 28 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 rect->set_x(r.rect().x()); | 301 rect->set_x(r.rect().x()); |
| 301 rect->set_y(r.rect().y()); | 302 rect->set_y(r.rect().y()); |
| 302 rect->set_width(r.rect().width()); | 303 rect->set_width(r.rect().width()); |
| 303 rect->set_height(r.rect().height()); | 304 rect->set_height(r.rect().height()); |
| 304 } | 305 } |
| 305 | 306 |
| 306 data_available_callback.Run(packet.Pass()); | 307 data_available_callback.Run(packet.Pass()); |
| 307 } | 308 } |
| 308 | 309 |
| 309 } // namespace remoting | 310 } // namespace remoting |
| OLD | NEW |