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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h

Issue 2398963003: Move usage of QualityScaler to ViEEncoder. (Closed)
Patch Set: rebase Created 4 years 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Eventual handler for the contained encoders' EncodedImageCallbacks, but 54 // Eventual handler for the contained encoders' EncodedImageCallbacks, but
55 // called from an internal helper that also knows the correct stream 55 // called from an internal helper that also knows the correct stream
56 // index. 56 // index.
57 EncodedImageCallback::Result OnEncodedImage( 57 EncodedImageCallback::Result OnEncodedImage(
58 size_t stream_idx, 58 size_t stream_idx,
59 const EncodedImage& encoded_image, 59 const EncodedImage& encoded_image,
60 const CodecSpecificInfo* codec_specific_info, 60 const CodecSpecificInfo* codec_specific_info,
61 const RTPFragmentationHeader* fragmentation); 61 const RTPFragmentationHeader* fragmentation);
62 62
63 void OnDroppedFrame() override; 63 VideoEncoder::ScalingSettings GetScalingSettings() const override;
64 64
65 bool SupportsNativeHandle() const override; 65 bool SupportsNativeHandle() const override;
66 const char* ImplementationName() const override; 66 const char* ImplementationName() const override;
67 67
68 private: 68 private:
69 struct StreamInfo { 69 struct StreamInfo {
70 StreamInfo() 70 StreamInfo()
71 : encoder(NULL), 71 : encoder(NULL),
72 callback(NULL), 72 callback(NULL),
73 width(0), 73 width(0),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::unique_ptr<VideoEncoderFactory> factory_; 106 std::unique_ptr<VideoEncoderFactory> factory_;
107 VideoCodec codec_; 107 VideoCodec codec_;
108 std::vector<StreamInfo> streaminfos_; 108 std::vector<StreamInfo> streaminfos_;
109 EncodedImageCallback* encoded_complete_callback_; 109 EncodedImageCallback* encoded_complete_callback_;
110 std::string implementation_name_; 110 std::string implementation_name_;
111 }; 111 };
112 112
113 } // namespace webrtc 113 } // namespace webrtc
114 114
115 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ 115 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698