Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: remoting/base/encoder_vp8.cc

Issue 5382008: Refactor ZLib and Verbatim encoders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/base/encoder_verbatim_unittest.cc ('k') | remoting/base/encoder_zlib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/base/encoder_verbatim_unittest.cc ('k') | remoting/base/encoder_zlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698