OLD | NEW |
---|---|
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_H_ | 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_H_ |
6 #define REMOTING_CODEC_VIDEO_ENCODER_H_ | 6 #define REMOTING_CODEC_VIDEO_ENCODER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // Request that the encoder provide lossless encoding, or color, if possible. | 27 // Request that the encoder provide lossless encoding, or color, if possible. |
28 virtual void SetLosslessEncode(bool want_lossless) {} | 28 virtual void SetLosslessEncode(bool want_lossless) {} |
29 virtual void SetLosslessColor(bool want_lossless) {} | 29 virtual void SetLosslessColor(bool want_lossless) {} |
30 | 30 |
31 // Encode an image stored in |frame|. If |frame.updated_region()| is empty | 31 // Encode an image stored in |frame|. If |frame.updated_region()| is empty |
32 // then the encoder may return a packet (e.g. to top-off previously-encoded | 32 // then the encoder may return a packet (e.g. to top-off previously-encoded |
33 // portions of the frame to higher quality) or return nullptr to indicate that | 33 // portions of the frame to higher quality) or return nullptr to indicate that |
34 // there is no work to do. | 34 // there is no work to do. |
35 virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, | 35 virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, |
36 uint32_t flags) = 0; | 36 uint32_t flags) = 0; |
37 | |
38 virtual void UpdateTargetBitrate(uint32_t bitrate) {} | |
Sergey Ulanov
2016/05/10 00:00:58
bitrate_kbps
also make it int (https://google.gith
Irfan
2016/05/10 16:30:45
Done.
| |
37 }; | 39 }; |
38 | 40 |
39 } // namespace remoting | 41 } // namespace remoting |
40 | 42 |
41 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_ | 43 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_ |
OLD | NEW |