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 28 matching lines...) Expand all Loading... |
39 size_t max_payload_size) override; | 39 size_t max_payload_size) override; |
40 | 40 |
41 int Encode(const VideoFrame& input_image, | 41 int Encode(const VideoFrame& input_image, |
42 const CodecSpecificInfo* codec_specific_info, | 42 const CodecSpecificInfo* codec_specific_info, |
43 const std::vector<FrameType>* frame_types) override; | 43 const std::vector<FrameType>* frame_types) override; |
44 | 44 |
45 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; | 45 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; |
46 | 46 |
47 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 47 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
48 | 48 |
49 int SetRateAllocation(const BitrateAllocation& bitrate_allocation, | 49 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; |
50 uint32_t frame_rate) override; | |
51 | 50 |
52 void OnDroppedFrame() override {} | 51 void OnDroppedFrame() override {} |
53 | 52 |
54 const char* ImplementationName() const override; | 53 const char* ImplementationName() const override; |
55 | 54 |
56 struct LayerFrameRefSettings { | 55 struct LayerFrameRefSettings { |
57 int8_t upd_buf = -1; // -1 - no update, 0..7 - update buffer 0..7 | 56 int8_t upd_buf = -1; // -1 - no update, 0..7 - update buffer 0..7 |
58 int8_t ref_buf1 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 | 57 int8_t ref_buf1 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 |
59 int8_t ref_buf2 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 | 58 int8_t ref_buf2 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 |
60 int8_t ref_buf3 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 | 59 int8_t ref_buf3 = -1; // -1 - no reference, 0..7 - reference buffer 0..7 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 Vp9FrameBufferPool frame_buffer_pool_; | 161 Vp9FrameBufferPool frame_buffer_pool_; |
163 DecodedImageCallback* decode_complete_callback_; | 162 DecodedImageCallback* decode_complete_callback_; |
164 bool inited_; | 163 bool inited_; |
165 vpx_codec_ctx_t* decoder_; | 164 vpx_codec_ctx_t* decoder_; |
166 VideoCodec codec_; | 165 VideoCodec codec_; |
167 bool key_frame_required_; | 166 bool key_frame_required_; |
168 }; | 167 }; |
169 } // namespace webrtc | 168 } // namespace webrtc |
170 | 169 |
171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ | 170 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ |
OLD | NEW |