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 17 matching lines...) Expand all Loading... |
28 virtual ~VP9EncoderImpl(); | 28 virtual ~VP9EncoderImpl(); |
29 | 29 |
30 int Release() override; | 30 int Release() override; |
31 | 31 |
32 int InitEncode(const VideoCodec* codec_settings, | 32 int InitEncode(const VideoCodec* codec_settings, |
33 int number_of_cores, | 33 int number_of_cores, |
34 size_t max_payload_size) override; | 34 size_t max_payload_size) override; |
35 | 35 |
36 int Encode(const VideoFrame& input_image, | 36 int Encode(const VideoFrame& input_image, |
37 const CodecSpecificInfo* codec_specific_info, | 37 const CodecSpecificInfo* codec_specific_info, |
38 const std::vector<VideoFrameType>* frame_types) override; | 38 const std::vector<FrameType>* frame_types) override; |
39 | 39 |
40 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; | 40 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; |
41 | 41 |
42 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 42 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
43 | 43 |
44 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; | 44 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; |
45 | 45 |
46 void OnDroppedFrame() override {} | 46 void OnDroppedFrame() override {} |
47 | 47 |
48 private: | 48 private: |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 Vp9FrameBufferPool frame_buffer_pool_; | 121 Vp9FrameBufferPool frame_buffer_pool_; |
122 DecodedImageCallback* decode_complete_callback_; | 122 DecodedImageCallback* decode_complete_callback_; |
123 bool inited_; | 123 bool inited_; |
124 vpx_codec_ctx_t* decoder_; | 124 vpx_codec_ctx_t* decoder_; |
125 VideoCodec codec_; | 125 VideoCodec codec_; |
126 bool key_frame_required_; | 126 bool key_frame_required_; |
127 }; | 127 }; |
128 } // namespace webrtc | 128 } // namespace webrtc |
129 | 129 |
130 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_IMPL_H_ | 130 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_IMPL_H_ |
OLD | NEW |