Skip to content

Commit

Permalink
[Encode] AV1 enable sliding window for CBR
Browse files Browse the repository at this point in the history
enable OvershootCBRPct for CBR
  • Loading branch information
Christa03 authored and intel-mediadev committed Jul 1, 2024
1 parent aedbec4 commit 80f88cf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,10 @@ namespace encode

dmem->INIT_SLIDINGWINDOW_ENABLE = seqParams->SlidingWindowSize != 0;
dmem->INIT_SLIDINGWINDOW_SIZE = (uint8_t)seqParams->SlidingWindowSize;

if (dmem->INIT_SLIDINGWINDOW_ENABLE && seqParams->TargetBitRate[0] > 0)
{
dmem->INIT_OvershootCBR_pct = (uint16_t)(seqParams->MaxBitRatePerSlidingWindow * 100 / seqParams->TargetBitRate[0]);
}
return MOS_STATUS_SUCCESS;
}

Expand Down

0 comments on commit 80f88cf

Please sign in to comment.