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

Side by Side Diff: remoting/codec/video_encoder_vp8.h

Issue 13642007: Rewrite scoped_array<T> to scoped_ptr<T[]> in remoting/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually rewrite Win files. Created 7 years, 8 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
« no previous file with comments | « remoting/codec/video_decoder_verbatim.h ('k') | remoting/host/disconnect_window_win.cc » ('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) 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 #ifndef REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
6 #define REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 6 #define REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "remoting/codec/video_encoder.h" 9 #include "remoting/codec/video_encoder.h"
10 #include "third_party/skia/include/core/SkRegion.h" 10 #include "third_party/skia/include/core/SkRegion.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // Update the active map according to |updated_region|. Active map is then 42 // Update the active map according to |updated_region|. Active map is then
43 // given to the encoder to speed up encoding. 43 // given to the encoder to speed up encoding.
44 void PrepareActiveMap(const SkRegion& updated_region); 44 void PrepareActiveMap(const SkRegion& updated_region);
45 45
46 // True if the encoder is initialized. 46 // True if the encoder is initialized.
47 bool initialized_; 47 bool initialized_;
48 48
49 scoped_ptr<vpx_codec_ctx_t> codec_; 49 scoped_ptr<vpx_codec_ctx_t> codec_;
50 scoped_ptr<vpx_image_t> image_; 50 scoped_ptr<vpx_image_t> image_;
51 scoped_array<uint8> active_map_; 51 scoped_ptr<uint8[]> active_map_;
52 int active_map_width_; 52 int active_map_width_;
53 int active_map_height_; 53 int active_map_height_;
54 int last_timestamp_; 54 int last_timestamp_;
55 55
56 // Buffer for storing the yuv image. 56 // Buffer for storing the yuv image.
57 scoped_array<uint8> yuv_image_; 57 scoped_ptr<uint8[]> yuv_image_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVp8); 59 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVp8);
60 }; 60 };
61 61
62 } // namespace remoting 62 } // namespace remoting
63 63
64 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 64 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
OLDNEW
« no previous file with comments | « remoting/codec/video_decoder_verbatim.h ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698