]> granicus.if.org Git - libvpx/commitdiff
Merge "[spatial svc] Remove vpx_svc_parameters_t and the loop that sets it for each...
authorMinghai Shang <minghai@google.com>
Mon, 22 Sep 2014 21:01:24 +0000 (14:01 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Mon, 22 Sep 2014 21:01:24 +0000 (14:01 -0700)
1  2 
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_svc_layercontext.c
vp9/vp9_cx_iface.c

Simple merge
index 8c735abee3e4218fe36ee1a593d2e5bf711c5654,1a3f29604128733335cd611a4f4370377d97e5e9..eed681c968ab3b96620667f601cf5553362bb089
@@@ -286,13 -266,27 +266,15 @@@ int vp9_svc_start_frame(VP9_COMP *cons
      count >>= 1;
    }
  
 -  cpi->lst_fb_idx =
 -      cpi->svc.spatial_layer_id * cpi->svc.number_temporal_layers +
 -      cpi->svc.temporal_layer_id;
 -  if (lc->frames_from_key_frame < cpi->svc.number_temporal_layers)
 -    cpi->ref_frame_flags &= ~VP9_LAST_FLAG;
 -
 -  if (cpi->svc.spatial_layer_id == 0) {
 -    if (cpi->svc.temporal_layer_id == 0)
 -      cpi->gld_fb_idx = lc->gold_ref_idx >= 0 ?
 -                        lc->gold_ref_idx : cpi->lst_fb_idx;
 -    else
 -      cpi->gld_fb_idx = cpi->lst_fb_idx - 1;
 -  } else {
 -    if (cpi->svc.temporal_layer_id == 0)
 -      cpi->gld_fb_idx = cpi->svc.spatial_layer_id -
 -                        cpi->svc.number_temporal_layers;
 -    else
 -      cpi->gld_fb_idx = cpi->lst_fb_idx - 1;
 -  }
+   cpi->ref_frame_flags = VP9_ALT_FLAG | VP9_GOLD_FLAG | VP9_LAST_FLAG;
 +  cpi->lst_fb_idx = cpi->svc.spatial_layer_id;
 +
 +  if (cpi->svc.spatial_layer_id == 0)
 +    cpi->gld_fb_idx = (lc->gold_ref_idx >= 0) ?
 +                      lc->gold_ref_idx : cpi->lst_fb_idx;
 +  else
 +    cpi->gld_fb_idx = cpi->svc.spatial_layer_id - 1;
  
    if (lc->current_video_frame_in_layer == 0) {
      if (cpi->svc.spatial_layer_id >= 2) {
Simple merge