av1/encoder/encode_strategy.c
// Update frame_flags to tell the encoder's caller what sort of frame was
// encoded.
Update frame_flags to tell the encoder's caller what sort of frame was
encoded.
Update frame_flags to tell the encoder ' s caller what sort of frame was encoded .
static void update_frame_flags(AV1_COMP *cpi, unsigned int *frame_flags) {
  if (encode_show_existing_frame(&cpi->common)) {
    *frame_flags &= ~FRAMEFLAGS_GOLDEN;
    *frame_flags &= ~FRAMEFLAGS_BWDREF;
    *frame_flags &= ~FRAMEFLAGS_ALTREF;
    *frame_flags &= ~FRAMEFLAGS_KEY;
    return;
  }
  if (cpi->refresh_golden_frame == 1) {
    *frame_flags |= FRAMEFLAGS_GOLDEN;
  } else {
    *frame_flags &= ~FRAMEFLAGS_GOLDEN;
  }
  if (cpi->refresh_alt_ref_frame == 1) {
    *frame_flags |= FRAMEFLAGS_ALTREF;
  } else {
    *frame_flags &= ~FRAMEFLAGS_ALTREF;
  }
  if (cpi->refresh_bwd_ref_frame == 1) {
    *frame_flags |= FRAMEFLAGS_BWDREF;
  } else {
    *frame_flags &= ~FRAMEFLAGS_BWDREF;
  }
  if (cpi->common.current_frame.frame_type == KEY_FRAME) {
    *frame_flags |= FRAMEFLAGS_KEY;
  } else {
    *frame_flags &= ~FRAMEFLAGS_KEY;
  }
}
static void update_frame_flags ( AV1_COMP * cpi , unsigned int * frame_flags ) { if ( encode_show_existing_frame ( & cpi -> common ) ) { * frame_flags &= ~ FRAMEFLAGS_GOLDEN ; * frame_flags &= ~ FRAMEFLAGS_BWDREF ; * frame_flags &= ~ FRAMEFLAGS_ALTREF ; * frame_flags &= ~ FRAMEFLAGS_KEY ; return ; } if ( cpi -> refresh_golden_frame == 1 ) { * frame_flags |= FRAMEFLAGS_GOLDEN ; } else { * frame_flags &= ~ FRAMEFLAGS_GOLDEN ; } if ( cpi -> refresh_alt_ref_frame == 1 ) { * frame_flags |= FRAMEFLAGS_ALTREF ; } else { * frame_flags &= ~ FRAMEFLAGS_ALTREF ; } if ( cpi -> refresh_bwd_ref_frame == 1 ) { * frame_flags |= FRAMEFLAGS_BWDREF ; } else { * frame_flags &= ~ FRAMEFLAGS_BWDREF ; } if ( cpi -> common . current_frame . frame_type == KEY_FRAME ) { * frame_flags |= FRAMEFLAGS_KEY ; } else { * frame_flags &= ~ FRAMEFLAGS_KEY ; } }
Update frame_flags to tell the encoder's caller what sort of frame was
encoded.
Update frame_flags to tell the encoder ' s caller what sort of frame was encoded .