| 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/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 Loading... |
| 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 |
| OLD | NEW |