OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/base/encoder_vp8.h" |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
6 #include "media/base/callback.h" | 8 #include "media/base/callback.h" |
7 #include "media/base/media.h" | 9 #include "media/base/media.h" |
8 #include "remoting/base/capture_data.h" | 10 #include "remoting/base/capture_data.h" |
9 #include "remoting/base/encoder_vp8.h" | |
10 #include "remoting/proto/video.pb.h" | 11 #include "remoting/proto/video.pb.h" |
11 | 12 |
12 extern "C" { | 13 extern "C" { |
13 #define VPX_CODEC_DISABLE_COMPAT 1 | 14 #define VPX_CODEC_DISABLE_COMPAT 1 |
14 #include "third_party/libvpx/include/vpx/vpx_codec.h" | 15 #include "third_party/libvpx/include/vpx/vpx_codec.h" |
15 #include "third_party/libvpx/include/vpx/vpx_encoder.h" | 16 #include "third_party/libvpx/include/vpx/vpx_encoder.h" |
16 #include "third_party/libvpx/include/vpx/vp8cx.h" | 17 #include "third_party/libvpx/include/vpx/vp8cx.h" |
17 } | 18 } |
18 | 19 |
19 namespace remoting { | 20 namespace remoting { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 197 } |
197 | 198 |
198 message->mutable_format()->set_encoding(VideoPacketFormat::ENCODING_VP8); | 199 message->mutable_format()->set_encoding(VideoPacketFormat::ENCODING_VP8); |
199 message->set_flags(VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET); | 200 message->set_flags(VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET); |
200 | 201 |
201 data_available_callback->Run(message); | 202 data_available_callback->Run(message); |
202 delete data_available_callback; | 203 delete data_available_callback; |
203 } | 204 } |
204 | 205 |
205 } // namespace remoting | 206 } // namespace remoting |
OLD | NEW |