OLD | NEW |
---|---|
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 29 matching lines...) Expand all Loading... | |
40 // with the configured lossless color & encoding modes. | 40 // with the configured lossless color & encoding modes. |
41 void Configure(const webrtc::DesktopSize& size); | 41 void Configure(const webrtc::DesktopSize& size); |
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 SetActiveMapFromRegion(const webrtc::DesktopRegion& updated_region); |
51 | |
52 // Updates the active map to revealing areas updated by cyclic refresh. | |
Wez
2015/04/21 01:29:18
Suggest: "Adds areas changed in the most recent fr
aconverse
2015/04/28 17:03:56
Done.
| |
53 void UpdateRegionFromActiveMap(webrtc::DesktopRegion* updated_region); | |
51 | 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. |
(...skipping 13 matching lines...) Expand all Loading... | |
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_ |
OLD | NEW |