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

Side by Side Diff: remoting/codec/video_encoder_row_based.cc

Issue 10877014: Moved the video encoders/decoders to the codec directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 4 months 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
OLDNEW
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/base/encoder_row_based.h" 5 #include "remoting/codec/video_encoder_row_based.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "remoting/base/capture_data.h" 8 #include "remoting/base/capture_data.h"
9 #include "remoting/base/compressor_verbatim.h" 9 #include "remoting/base/compressor_verbatim.h"
10 #include "remoting/base/compressor_zlib.h" 10 #include "remoting/base/compressor_zlib.h"
11 #include "remoting/base/util.h" 11 #include "remoting/base/util.h"
12 #include "remoting/proto/video.pb.h" 12 #include "remoting/proto/video.pb.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 uint8* EncoderRowBased::GetOutputBuffer(VideoPacket* packet, size_t size) { 170 uint8* EncoderRowBased::GetOutputBuffer(VideoPacket* packet, size_t size) {
171 packet->mutable_data()->resize(size); 171 packet->mutable_data()->resize(size);
172 // TODO(ajwong): Is there a better way to do this at all??? 172 // TODO(ajwong): Is there a better way to do this at all???
173 return const_cast<uint8*>(reinterpret_cast<const uint8*>( 173 return const_cast<uint8*>(reinterpret_cast<const uint8*>(
174 packet->mutable_data()->data())); 174 packet->mutable_data()->data()));
175 } 175 }
176 176
177 } // namespace remoting 177 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder_row_based.h ('k') | remoting/codec/video_encoder_row_based_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698