| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Call encoder initialize function and set control settings. | 75 // Call encoder initialize function and set control settings. |
| 76 int InitAndSetControlSettings(); | 76 int InitAndSetControlSettings(); |
| 77 | 77 |
| 78 // Update frame size for codec. | 78 // Update frame size for codec. |
| 79 int UpdateCodecFrameSize(int width, int height); | 79 int UpdateCodecFrameSize(int width, int height); |
| 80 | 80 |
| 81 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, | 81 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, |
| 82 const vpx_codec_cx_pkt& pkt, | 82 const vpx_codec_cx_pkt& pkt, |
| 83 int stream_idx, | 83 int stream_idx, |
| 84 uint32_t timestamp, | 84 uint32_t timestamp); |
| 85 bool only_predicting_from_key_frame); | |
| 86 | 85 |
| 87 int GetEncodedPartitions(const VideoFrame& input_image, | 86 int GetEncodedPartitions(const VideoFrame& input_image); |
| 88 bool only_predicting_from_key_frame); | |
| 89 | 87 |
| 90 // Set the stream state for stream |stream_idx|. | 88 // Set the stream state for stream |stream_idx|. |
| 91 void SetStreamState(bool send_stream, int stream_idx); | 89 void SetStreamState(bool send_stream, int stream_idx); |
| 92 | 90 |
| 93 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size); | 91 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size); |
| 94 | 92 |
| 95 const bool use_gf_boost_; | 93 const bool use_gf_boost_; |
| 96 | 94 |
| 97 EncodedImageCallback* encoded_complete_callback_; | 95 EncodedImageCallback* encoded_complete_callback_; |
| 98 VideoCodec codec_; | 96 VideoCodec codec_; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool inited_; | 145 bool inited_; |
| 148 vpx_codec_ctx_t* decoder_; | 146 vpx_codec_ctx_t* decoder_; |
| 149 int propagation_cnt_; | 147 int propagation_cnt_; |
| 150 int last_frame_width_; | 148 int last_frame_width_; |
| 151 int last_frame_height_; | 149 int last_frame_height_; |
| 152 bool key_frame_required_; | 150 bool key_frame_required_; |
| 153 }; | 151 }; |
| 154 } // namespace webrtc | 152 } // namespace webrtc |
| 155 | 153 |
| 156 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ | 154 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ |
| OLD | NEW |