Chromium Code Reviews| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 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 |