Home | History | Annotate | Download | only in encoder

Lines Matching refs:lc

57       LAYER_CONTEXT *const lc = &svc->layer_context[layer];
58 RATE_CONTROL *const lrc = &lc->rc;
60 lc->current_video_frame_in_layer = 0;
61 lc->layer_size = 0;
62 lc->frames_from_key_frame = 0;
63 lc->last_frame_type = FRAME_TYPES;
79 lc->target_bandwidth = oxcf->layer_target_bitrate[layer];
84 lc->target_bandwidth = oxcf->layer_target_bitrate[layer];
92 lc->alt_ref_idx = alt_ref_idx++;
94 lc->alt_ref_idx = INVALID_IDX;
95 lc->gold_ref_idx = INVALID_IDX;
99 lc->target_bandwidth / 1000;
110 lc->sb_index = 0;
111 lc->map = vpx_malloc(mi_rows * mi_cols * sizeof(signed char));
112 memset(lc->map, 0, mi_rows * mi_cols);
114 lc->last_coded_q_map = vpx_malloc(last_coded_q_map_size);
116 memset(lc->last_coded_q_map, MAXQ, last_coded_q_map_size);
118 lc->consec_zero_mv = vpx_malloc(consec_zero_mv_size);
119 memset(lc->consec_zero_mv, 0, consec_zero_mv_size);
154 LAYER_CONTEXT *const lc =
156 RATE_CONTROL *const lrc = &lc->rc;
158 lc->spatial_layer_target_bandwidth = spatial_layer_target;
159 bitrate_alloc = (float)lc->target_bandwidth / spatial_layer_target;
169 lc->framerate = cpi->framerate / oxcf->ts_rate_decimator[tl];
170 lrc->avg_frame_bandwidth = (int)(lc->target_bandwidth / lc->framerate);
186 LAYER_CONTEXT *const lc = &svc->layer_context[layer];
187 RATE_CONTROL *const lrc = &lc->rc;
189 lc->target_bandwidth = oxcf->layer_target_bitrate[layer];
191 bitrate_alloc = (float)lc->target_bandwidth / target_bandwidth;
204 lc->framerate = cpi->framerate / oxcf->ts_rate_decimator[layer];
206 lc->framerate = cpi->framerate;
208 lrc->avg_frame_bandwidth = (int)(lc->target_bandwidth / lc->framerate);
231 LAYER_CONTEXT *const lc = get_layer_context(cpi);
232 RATE_CONTROL *const lrc = &lc->rc;
238 lc->framerate = cpi->framerate / oxcf->ts_rate_decimator[tl];
239 lrc->avg_frame_bandwidth = (int)(lc->target_bandwidth / lc->framerate);
243 lc->avg_frame_size = lrc->avg_frame_bandwidth;
249 lc->avg_frame_size =
250 (int)((lc->target_bandwidth - prev_layer_target_bandwidth) /
251 (lc->framerate - prev_layer_framerate));
257 LAYER_CONTEXT *const lc = get_layer_context(cpi);
258 RATE_CONTROL *const lrc = &lc->rc;
260 lc->framerate = framerate;
261 lrc->avg_frame_bandwidth = (int)(lc->target_bandwidth / lc->framerate);
270 LAYER_CONTEXT *const lc = get_layer_context(cpi);
274 cpi->rc = lc->rc;
275 cpi->twopass = lc->twopass;
276 cpi->oxcf.target_bandwidth = lc->target_bandwidth;
277 cpi->alt_ref_source = lc->alt_ref_source;
294 cr->map = lc->map;
295 lc->map = temp;
296 cr->last_coded_q_map = lc->last_coded_q_map;
297 lc->last_coded_q_map = temp2;
298 cr->consec_zero_mv = lc->consec_zero_mv;
299 lc->consec_zero_mv = temp3;
300 cr->sb_index = lc->sb_index;
306 LAYER_CONTEXT *const lc = get_layer_context(cpi);
308 lc->rc = cpi->rc;
309 lc->twopass = cpi->twopass;
310 lc->target_bandwidth = (int)oxcf->target_bandwidth;
311 lc->alt_ref_source = cpi->alt_ref_source;
319 signed char *temp = lc->map;
320 uint8_t *temp2 = lc->last_coded_q_map;
321 uint8_t *temp3 = lc->consec_zero_mv;
322 lc->map = cr->map;
324 lc->last_coded_q_map = cr->last_coded_q_map;
326 lc->consec_zero_mv = cr->consec_zero_mv;
328 lc->sb_index = cr->sb_index;
349 LAYER_CONTEXT *const lc =
352 ++lc->current_video_frame_in_layer;
353 ++lc->frames_from_key_frame;
542 LAYER_CONTEXT *lc = NULL;
571 lc = &cpi->svc.layer_context[cpi->svc.spatial_layer_id *
578 RATE_CONTROL *const lrc = &lc->rc;
579 lrc->worst_quality = vp9_quantizer_to_qindex(lc->max_q);
580 lrc->best_quality = vp9_quantizer_to_qindex(lc->min_q);
584 lc->scaling_factor_num, lc->scaling_factor_den,
596 LAYER_CONTEXT *lc;
601 lc = &cpi->svc.layer_context[cpi->svc.spatial_layer_id];
604 while ((lc->current_video_frame_in_layer % count) != 0) {
614 cpi->gld_fb_idx = (lc->gold_ref_idx >= 0) ?
615 lc->gold_ref_idx : cpi->lst_fb_idx;
619 if (lc->current_video_frame_in_layer == 0) {
628 cpi->alt_fb_idx = lc->alt_ref_idx;
629 if (!lc->has_alt_frame)
651 lc->scaling_factor_num, lc->scaling_factor_den,
662 lc->rc.frames_to_key != 0 &&
689 cpi->oxcf.worst_allowed_q = vp9_quantizer_to_qindex(lc->max_q);
690 cpi->oxcf.best_allowed_q = vp9_quantizer_to_qindex(lc->min_q);
729 LAYER_CONTEXT *const lc = &svc->layer_context[layer];
730 if (lc->map)
731 vpx_free(lc->map);
732 if (lc->last_coded_q_map)
733 vpx_free(lc->last_coded_q_map);
734 if (lc->consec_zero_mv)
735 vpx_free(lc->consec_zero_mv);