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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Set the cpu_speed setting for encoder based on resolution and/or platform. | 69 // Set the cpu_speed setting for encoder based on resolution and/or platform. |
70 int SetCpuSpeed(int width, int height); | 70 int SetCpuSpeed(int width, int height); |
71 | 71 |
72 // Determine number of encoder threads to use. | 72 // Determine number of encoder threads to use. |
73 int NumberOfThreads(int width, int height, int number_of_cores); | 73 int NumberOfThreads(int width, int height, int number_of_cores); |
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. | |
79 int UpdateCodecFrameSize(int width, int height); | |
80 | |
81 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, | 78 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, |
82 const vpx_codec_cx_pkt& pkt, | 79 const vpx_codec_cx_pkt& pkt, |
83 int stream_idx, | 80 int stream_idx, |
84 uint32_t timestamp); | 81 uint32_t timestamp); |
85 | 82 |
86 int GetEncodedPartitions(const VideoFrame& input_image); | 83 int GetEncodedPartitions(const VideoFrame& input_image); |
87 | 84 |
88 // Set the stream state for stream |stream_idx|. | 85 // Set the stream state for stream |stream_idx|. |
89 void SetStreamState(bool send_stream, int stream_idx); | 86 void SetStreamState(bool send_stream, int stream_idx); |
90 | 87 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 bool inited_; | 142 bool inited_; |
146 vpx_codec_ctx_t* decoder_; | 143 vpx_codec_ctx_t* decoder_; |
147 int propagation_cnt_; | 144 int propagation_cnt_; |
148 int last_frame_width_; | 145 int last_frame_width_; |
149 int last_frame_height_; | 146 int last_frame_height_; |
150 bool key_frame_required_; | 147 bool key_frame_required_; |
151 }; | 148 }; |
152 } // namespace webrtc | 149 } // namespace webrtc |
153 | 150 |
154 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ | 151 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ |
OLD | NEW |