| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 explicit SimulcastEncoderAdapter(VideoEncoderFactory* factory); | 35 explicit SimulcastEncoderAdapter(VideoEncoderFactory* factory); |
| 36 virtual ~SimulcastEncoderAdapter(); | 36 virtual ~SimulcastEncoderAdapter(); |
| 37 | 37 |
| 38 // Implements VideoEncoder | 38 // Implements VideoEncoder |
| 39 int Release() override; | 39 int Release() override; |
| 40 int InitEncode(const VideoCodec* inst, | 40 int InitEncode(const VideoCodec* inst, |
| 41 int number_of_cores, | 41 int number_of_cores, |
| 42 size_t max_payload_size) override; | 42 size_t max_payload_size) override; |
| 43 int Encode(const VideoFrame& input_image, | 43 int Encode(const VideoFrame& input_image, |
| 44 const CodecSpecificInfo* codec_specific_info, | 44 const CodecSpecificInfo* codec_specific_info, |
| 45 const std::vector<VideoFrameType>* frame_types) override; | 45 const std::vector<FrameType>* frame_types) override; |
| 46 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; | 46 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; |
| 47 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 47 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
| 48 int SetRates(uint32_t new_bitrate_kbit, uint32_t new_framerate) override; | 48 int SetRates(uint32_t new_bitrate_kbit, uint32_t new_framerate) override; |
| 49 | 49 |
| 50 // Eventual handler for the contained encoders' EncodedImageCallbacks, but | 50 // Eventual handler for the contained encoders' EncodedImageCallbacks, but |
| 51 // called from an internal helper that also knows the correct stream | 51 // called from an internal helper that also knows the correct stream |
| 52 // index. | 52 // index. |
| 53 int32_t Encoded(size_t stream_idx, | 53 int32_t Encoded(size_t stream_idx, |
| 54 const EncodedImage& encodedImage, | 54 const EncodedImage& encodedImage, |
| 55 const CodecSpecificInfo* codecSpecificInfo = NULL, | 55 const CodecSpecificInfo* codecSpecificInfo = NULL, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 rtc::scoped_ptr<Config> screensharing_extra_options_; | 112 rtc::scoped_ptr<Config> screensharing_extra_options_; |
| 113 VideoCodec codec_; | 113 VideoCodec codec_; |
| 114 std::vector<StreamInfo> streaminfos_; | 114 std::vector<StreamInfo> streaminfos_; |
| 115 EncodedImageCallback* encoded_complete_callback_; | 115 EncodedImageCallback* encoded_complete_callback_; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace webrtc | 118 } // namespace webrtc |
| 119 | 119 |
| 120 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 120 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
| 121 | 121 |
| OLD | NEW |