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

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

Issue 1092813003: Enable Cyclic Refresh for VP9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromium_vp9_6_1
Patch Set: Created 5 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
« no previous file with comments | « no previous file | remoting/codec/video_encoder_vpx.cc » ('j') | remoting/codec/video_encoder_vpx.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VPX_H_ 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
6 #define REMOTING_CODEC_VIDEO_ENCODER_VPX_H_ 6 #define REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "remoting/codec/scoped_vpx_codec.h" 10 #include "remoting/codec/scoped_vpx_codec.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Prepares |image_| for encoding. Writes updated rectangles into 43 // Prepares |image_| for encoding. Writes updated rectangles into
44 // |updated_region|. 44 // |updated_region|.
45 void PrepareImage(const webrtc::DesktopFrame& frame, 45 void PrepareImage(const webrtc::DesktopFrame& frame,
46 webrtc::DesktopRegion* updated_region); 46 webrtc::DesktopRegion* updated_region);
47 47
48 // Updates the active map according to |updated_region|. Active map is then 48 // Updates the active map according to |updated_region|. Active map is then
49 // given to the encoder to speed up encoding. 49 // given to the encoder to speed up encoding.
50 void PrepareActiveMap(const webrtc::DesktopRegion& updated_region); 50 void PrepareActiveMap(const webrtc::DesktopRegion& updated_region);
51 51
52 // Updates the active map to revealing areas updated by cyclic refresh.
Wez 2015/04/18 00:17:55 This doesn't seem to update the active map at all;
aconverse 2015/04/20 18:32:39 Done.
53 void UpdateActiveMap(webrtc::DesktopRegion* updated_region);
54
52 // True if the encoder is for VP9, false for VP8. 55 // True if the encoder is for VP9, false for VP8.
53 const bool use_vp9_; 56 const bool use_vp9_;
54 57
55 // Options controlling VP9 encode quantization and color space. 58 // Options controlling VP9 encode quantization and color space.
56 // These are always off (false) for VP8. 59 // These are always off (false) for VP8.
57 bool lossless_encode_; 60 bool lossless_encode_;
58 bool lossless_color_; 61 bool lossless_color_;
59 62
60 // Holds the initialized & configured codec. 63 // Holds the initialized & configured codec.
61 ScopedVpxCodec codec_; 64 ScopedVpxCodec codec_;
(...skipping 12 matching lines...) Expand all
74 77
75 // Used to help initialize VideoPackets from DesktopFrames. 78 // Used to help initialize VideoPackets from DesktopFrames.
76 VideoEncoderHelper helper_; 79 VideoEncoderHelper helper_;
77 80
78 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); 81 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx);
79 }; 82 };
80 83
81 } // namespace remoting 84 } // namespace remoting
82 85
83 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 86 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/codec/video_encoder_vpx.cc » ('j') | remoting/codec/video_encoder_vpx.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698