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

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

Issue 5068001: Move move classes to the remoting::protocol namespace. Minor cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes for windows 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
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/decoder_row_based.h" 5 #include "remoting/base/decoder_row_based.h"
6 6
7 #include "remoting/base/decompressor.h" 7 #include "remoting/base/decompressor.h"
8 #include "remoting/base/decompressor_zlib.h" 8 #include "remoting/base/decompressor_zlib.h"
9 #include "remoting/base/decompressor_verbatim.h" 9 #include "remoting/base/decompressor_verbatim.h"
10 #include "remoting/base/util.h" 10 #include "remoting/base/util.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 if (frame->format() != media::VideoFrame::RGB32) { 59 if (frame->format() != media::VideoFrame::RGB32) {
60 LOG(WARNING) << "DecoderRowBased only supports RGB32."; 60 LOG(WARNING) << "DecoderRowBased only supports RGB32.";
61 state_ = kError; 61 state_ = kError;
62 return; 62 return;
63 } 63 }
64 64
65 frame_ = frame; 65 frame_ = frame;
66 state_ = kReady; 66 state_ = kReady;
67 } 67 }
68 68
69 Decoder::DecodeResult DecoderRowBased::DecodePacket( 69 Decoder::DecodeResult DecoderRowBased::DecodePacket(const VideoPacket* packet) {
70 const VideoPacket* packet) {
71 UpdateStateForPacket(packet); 70 UpdateStateForPacket(packet);
72 71
73 if (state_ == kError) { 72 if (state_ == kError) {
74 return DECODE_ERROR; 73 return DECODE_ERROR;
75 } 74 }
76 75
77 const uint8* in = reinterpret_cast<const uint8*>(packet->data().data()); 76 const uint8* in = reinterpret_cast<const uint8*>(packet->data().data());
78 const int in_size = packet->data().size(); 77 const int in_size = packet->data().size();
79 78
80 const int row_size = clip_.width() * kBytesPerPixel; 79 const int row_size = clip_.width() * kBytesPerPixel;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 void DecoderRowBased::GetUpdatedRects(UpdatedRects* rects) { 174 void DecoderRowBased::GetUpdatedRects(UpdatedRects* rects) {
176 rects->push_back(clip_); 175 rects->push_back(clip_);
177 } 176 }
178 177
179 VideoPacketFormat::Encoding DecoderRowBased::Encoding() { 178 VideoPacketFormat::Encoding DecoderRowBased::Encoding() {
180 return encoding_; 179 return encoding_;
181 } 180 }
182 181
183 } // namespace remoting 182 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/client/input_handler.h » ('j') | remoting/protocol/client_control_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698