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

Side by Side Diff: webrtc/media/engine/videoencodersoftwarefallbackwrapper.h

Issue 2398963003: Move usage of QualityScaler to ViEEncoder. (Closed)
Patch Set: prevent data race Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 int32_t Release() override; 37 int32_t Release() override;
38 int32_t Encode(const VideoFrame& frame, 38 int32_t Encode(const VideoFrame& frame,
39 const CodecSpecificInfo* codec_specific_info, 39 const CodecSpecificInfo* codec_specific_info,
40 const std::vector<FrameType>* frame_types) override; 40 const std::vector<FrameType>* frame_types) override;
41 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; 41 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override;
42 int32_t SetRateAllocation(const BitrateAllocation& bitrate_allocation, 42 int32_t SetRateAllocation(const BitrateAllocation& bitrate_allocation,
43 uint32_t framerate) override; 43 uint32_t framerate) override;
44 void OnDroppedFrame() override; 44 void OnDroppedFrame() override;
45 bool SupportsNativeHandle() const override; 45 bool SupportsNativeHandle() const override;
46 ScalingSettings GetScalingSettings() const override;
46 47
47 private: 48 private:
48 bool InitFallbackEncoder(); 49 bool InitFallbackEncoder();
49 50
50 // Settings used in the last InitEncode call and used if a dynamic fallback to 51 // Settings used in the last InitEncode call and used if a dynamic fallback to
51 // software is required. 52 // software is required.
52 VideoCodec codec_settings_; 53 VideoCodec codec_settings_;
53 int32_t number_of_cores_; 54 int32_t number_of_cores_;
54 size_t max_payload_size_; 55 size_t max_payload_size_;
55 56
(...skipping 11 matching lines...) Expand all
67 webrtc::VideoEncoder* const encoder_; 68 webrtc::VideoEncoder* const encoder_;
68 69
69 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_; 70 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_;
70 std::string fallback_implementation_name_; 71 std::string fallback_implementation_name_;
71 EncodedImageCallback* callback_; 72 EncodedImageCallback* callback_;
72 }; 73 };
73 74
74 } // namespace webrtc 75 } // namespace webrtc
75 76
76 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ 77 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698