| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 * WEBRTC VP8 wrapper interface | 10 * WEBRTC VP8 wrapper interface |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int Encode(const VideoFrame& input_image, | 49 int Encode(const VideoFrame& input_image, |
| 50 const CodecSpecificInfo* codec_specific_info, | 50 const CodecSpecificInfo* codec_specific_info, |
| 51 const std::vector<FrameType>* frame_types) override; | 51 const std::vector<FrameType>* frame_types) override; |
| 52 | 52 |
| 53 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; | 53 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; |
| 54 | 54 |
| 55 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 55 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
| 56 | 56 |
| 57 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; | 57 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; |
| 58 | 58 |
| 59 void OnDroppedFrame() override {} | 59 void OnDroppedFrame() override; |
| 60 | 60 |
| 61 const char* ImplementationName() const override; | 61 const char* ImplementationName() const override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 void SetupTemporalLayers(int num_streams, | 64 void SetupTemporalLayers(int num_streams, |
| 65 int num_temporal_layers, | 65 int num_temporal_layers, |
| 66 const VideoCodec& codec); | 66 const VideoCodec& codec); |
| 67 | 67 |
| 68 // Set the cpu_speed setting for encoder based on resolution and/or platform. | 68 // Set the cpu_speed setting for encoder based on resolution and/or platform. |
| 69 int SetCpuSpeed(int width, int height); | 69 int SetCpuSpeed(int width, int height); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int image_format_; | 162 int image_format_; |
| 163 vpx_ref_frame_t* ref_frame_; | 163 vpx_ref_frame_t* ref_frame_; |
| 164 int propagation_cnt_; | 164 int propagation_cnt_; |
| 165 int last_frame_width_; | 165 int last_frame_width_; |
| 166 int last_frame_height_; | 166 int last_frame_height_; |
| 167 bool key_frame_required_; | 167 bool key_frame_required_; |
| 168 }; // end of VP8DecoderImpl class | 168 }; // end of VP8DecoderImpl class |
| 169 } // namespace webrtc | 169 } // namespace webrtc |
| 170 | 170 |
| 171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ | 171 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ |
| OLD | NEW |