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

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

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 scoped_ptr<VideoEncoderVpx> CreateForVP8(); 30 static scoped_ptr<VideoEncoderVpx> CreateForVP8();
31 static scoped_ptr<VideoEncoderVpx> CreateForVP9(); 31 static scoped_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 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; 40 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame,
41 const uint32_t flags = 0) override;
41 42
42 private: 43 private:
43 explicit VideoEncoderVpx(bool use_vp9); 44 explicit VideoEncoderVpx(bool use_vp9);
44 45
45 // (Re)Configures this instance to encode frames of the specified |size|, 46 // (Re)Configures this instance to encode frames of the specified |size|,
46 // with the configured lossless color & encoding modes. 47 // with the configured lossless color & encoding modes.
47 void Configure(const webrtc::DesktopSize& size); 48 void Configure(const webrtc::DesktopSize& size);
48 49
49 // Prepares |image_| for encoding. Writes updated rectangles into 50 // Prepares |image_| for encoding. Writes updated rectangles into
50 // |updated_region|. 51 // |updated_region|.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 VideoEncoderHelper helper_; 89 VideoEncoderHelper helper_;
89 90
90 base::DefaultTickClock default_tick_clock_; 91 base::DefaultTickClock default_tick_clock_;
91 base::TickClock* clock_; 92 base::TickClock* clock_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); 94 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx);
94 }; 95 };
95 96
96 } // namespace remoting 97 } // namespace remoting
97 98
98 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 99 #endif // REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698