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

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

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 10 years, 1 month 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/capture_data.h ('k') | remoting/base/decoder.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/capture_data.h" 5 #include "remoting/base/capture_data.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 8
9 DataPlanes::DataPlanes() { 9 DataPlanes::DataPlanes() {
10 for (int i = 0; i < kPlaneCount; ++i) { 10 for (int i = 0; i < kPlaneCount; ++i) {
11 data[i] = NULL; 11 data[i] = NULL;
12 strides[i] = 0; 12 strides[i] = 0;
13 } 13 }
14 } 14 }
15 15
16 CaptureData::CaptureData(const DataPlanes &data_planes, 16 CaptureData::CaptureData(const DataPlanes &data_planes,
17 int width, 17 int width,
18 int height, 18 int height,
19 PixelFormat format) : 19 media::VideoFrame::Format format) :
20 data_planes_(data_planes), dirty_rects_(), 20 data_planes_(data_planes), dirty_rects_(),
21 width_(width), height_(height), pixel_format_(format) { 21 width_(width), height_(height), pixel_format_(format) {
22 } 22 }
23 23
24 CaptureData::~CaptureData() {} 24 CaptureData::~CaptureData() {}
25 25
26 } // namespace remoting 26 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/capture_data.h ('k') | remoting/base/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698