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

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

Issue 1908203002: Adapt encoder behavior to target bitrate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary code Created 4 years, 7 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 | « remoting/codec/BUILD.gn ('k') | remoting/codec/webrtc_video_encoder_vpx.h » ('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_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 21 matching lines...) Expand all
32 32
33 // Encode an image stored in |frame|. If |frame.updated_region()| is empty 33 // Encode an image stored in |frame|. If |frame.updated_region()| is empty
34 // then the encoder may return a packet (e.g. to top-off previously-encoded 34 // then the encoder may return a packet (e.g. to top-off previously-encoded
35 // portions of the frame to higher quality) or return nullptr to indicate that 35 // portions of the frame to higher quality) or return nullptr to indicate that
36 // there is no work to do. 36 // there is no work to do.
37 virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, 37 virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame,
38 uint32_t flags) = 0; 38 uint32_t flags) = 0;
39 39
40 static std::unique_ptr<VideoEncoder> Create( 40 static std::unique_ptr<VideoEncoder> Create(
41 const protocol::SessionConfig& config); 41 const protocol::SessionConfig& config);
42 virtual void UpdateTargetBitrate(int bitrate_kbps) {}
42 }; 43 };
43 44
44 } // namespace remoting 45 } // namespace remoting
45 46
46 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_ 47 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « remoting/codec/BUILD.gn ('k') | remoting/codec/webrtc_video_encoder_vpx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698