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

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

Issue 2329653002: Add WebrtcVideoEncoder interface (Closed)
Patch Set: win Created 4 years, 3 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/video_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 19 matching lines...) Expand all
30 static std::unique_ptr<VideoEncoderVpx> CreateForVP8(); 30 static std::unique_ptr<VideoEncoderVpx> CreateForVP8();
31 static std::unique_ptr<VideoEncoderVpx> CreateForVP9(); 31 static std::unique_ptr<VideoEncoderVpx> CreateForVP9();
32 32
33 ~VideoEncoderVpx() override; 33 ~VideoEncoderVpx() override;
34 34
35 void SetTickClockForTests(base::TickClock* tick_clock); 35 void SetTickClockForTests(base::TickClock* tick_clock);
36 36
37 // VideoEncoder interface. 37 // VideoEncoder interface.
38 void SetLosslessEncode(bool want_lossless) override; 38 void SetLosslessEncode(bool want_lossless) override;
39 void SetLosslessColor(bool want_lossless) override; 39 void SetLosslessColor(bool want_lossless) override;
40 std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, 40 std::unique_ptr<VideoPacket> Encode(
41 uint32_t flags) override; 41 const webrtc::DesktopFrame& frame) override;
42 42
43 private: 43 private:
44 explicit VideoEncoderVpx(bool use_vp9); 44 explicit VideoEncoderVpx(bool use_vp9);
45 45
46 // (Re)Configures this instance to encode frames of the specified |size|, 46 // (Re)Configures this instance to encode frames of the specified |size|,
47 // with the configured lossless color & encoding modes. 47 // with the configured lossless color & encoding modes.
48 void Configure(const webrtc::DesktopSize& size); 48 void Configure(const webrtc::DesktopSize& size);
49 49
50 // Prepares |image_| for encoding. Writes updated rectangles into 50 // Prepares |image_| for encoding. Writes updated rectangles into
51 // |updated_region|. 51 // |updated_region|.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 base::DefaultTickClock default_tick_clock_; 91 base::DefaultTickClock default_tick_clock_;
92 base::TickClock* clock_; 92 base::TickClock* clock_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); 94 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx);
95 }; 95 };
96 96
97 } // namespace remoting 97 } // namespace remoting
98 98
99 #endif // REMOTING_CODEC_VIDEO_ENCODER_VPX_H_ 99 #endif // REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698