Lines Matching refs:mCodecConfiguration
55 mCodecConfiguration(nullptr), in C2SoftVpxEnc()
90 if (mCodecConfiguration) { in onRelease()
91 delete mCodecConfiguration; in onRelease()
92 mCodecConfiguration = nullptr; in onRelease()
147 mCodecConfiguration = new vpx_codec_enc_cfg_t; in initEncoder()
148 if (!mCodecConfiguration) goto CleanUp; in initEncoder()
150 mCodecConfiguration, in initEncoder()
157 mCodecConfiguration->g_w = mSize->width; in initEncoder()
158 mCodecConfiguration->g_h = mSize->height; in initEncoder()
160 mCodecConfiguration->g_threads = 0; in initEncoder()
161 mCodecConfiguration->g_error_resilient = mErrorResilience; in initEncoder()
165 mCodecConfiguration->g_timebase.num = 1; in initEncoder()
166 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
168 mCodecConfiguration->rc_target_bitrate = (mBitrate->value + 500) / 1000; in initEncoder()
169 mCodecConfiguration->rc_end_usage = mBitrateControlMode; in initEncoder()
171 mCodecConfiguration->rc_dropframe_thresh = 0; in initEncoder()
173 mCodecConfiguration->g_lag_in_frames = 0; in initEncoder()
176 mCodecConfiguration->rc_resize_allowed = 0; in initEncoder()
178 mCodecConfiguration->g_pass = VPX_RC_ONE_PASS; in initEncoder()
181 mCodecConfiguration->rc_undershoot_pct = 100; in initEncoder()
184 mCodecConfiguration->rc_overshoot_pct = 15; in initEncoder()
186 mCodecConfiguration->rc_buf_initial_sz = 500; in initEncoder()
188 mCodecConfiguration->rc_buf_optimal_sz = 600; in initEncoder()
191 mCodecConfiguration->rc_buf_sz = 1000; in initEncoder()
193 mCodecConfiguration->g_error_resilient = 1; in initEncoder()
195 mCodecConfiguration->kf_max_dist = 3000; in initEncoder()
197 mCodecConfiguration->kf_mode = VPX_KF_AUTO; in initEncoder()
206 mCodecConfiguration->ts_number_layers = 1; in initEncoder()
207 mCodecConfiguration->ts_rate_decimator[0] = 1; in initEncoder()
208 mCodecConfiguration->ts_periodicity = 1; in initEncoder()
209 mCodecConfiguration->ts_layer_id[0] = 0; in initEncoder()
214 mCodecConfiguration->ts_number_layers = 2; in initEncoder()
215 mCodecConfiguration->ts_rate_decimator[0] = 2; in initEncoder()
216 mCodecConfiguration->ts_rate_decimator[1] = 1; in initEncoder()
217 mCodecConfiguration->ts_periodicity = 2; in initEncoder()
218 mCodecConfiguration->ts_layer_id[0] = 0; in initEncoder()
219 mCodecConfiguration->ts_layer_id[1] = 1; in initEncoder()
231 mCodecConfiguration->ts_number_layers = 3; in initEncoder()
232 mCodecConfiguration->ts_rate_decimator[0] = 4; in initEncoder()
233 mCodecConfiguration->ts_rate_decimator[1] = 2; in initEncoder()
234 mCodecConfiguration->ts_rate_decimator[2] = 1; in initEncoder()
235 mCodecConfiguration->ts_periodicity = 4; in initEncoder()
236 mCodecConfiguration->ts_layer_id[0] = 0; in initEncoder()
237 mCodecConfiguration->ts_layer_id[1] = 2; in initEncoder()
238 mCodecConfiguration->ts_layer_id[2] = 1; in initEncoder()
239 mCodecConfiguration->ts_layer_id[3] = 2; in initEncoder()
255 for (size_t i = 0; i < mCodecConfiguration->ts_number_layers; i++) { in initEncoder()
256 mCodecConfiguration->ts_target_bitrate[i] = in initEncoder()
257 mCodecConfiguration->rc_target_bitrate * in initEncoder()
261 mCodecConfiguration->kf_max_dist = mIntf->getSyncFramePeriod(); in initEncoder()
262 mCodecConfiguration->kf_min_dist = mIntf->getSyncFramePeriod(); in initEncoder()
263 mCodecConfiguration->kf_mode = VPX_KF_AUTO; in initEncoder()
266 mCodecConfiguration->rc_min_quantizer = mMinQuantizer; in initEncoder()
269 mCodecConfiguration->rc_max_quantizer = mMaxQuantizer; in initEncoder()
276 mCodecConfiguration, in initEncoder()
290 (uint32_t)(mCodecConfiguration->rc_buf_optimal_sz * mFrameRate->value / 20 + 0.5); in initEncoder()
563 mCodecConfiguration->rc_target_bitrate = in process()
566 mCodecConfiguration); in process()