Lines Matching refs:sRCParams
147 ctx->sRCParams.RCEnable = IMG_TRUE;
150 ctx->sRCParams.RCEnable = IMG_TRUE;
153 ctx->sRCParams.RCEnable = IMG_TRUE;
156 ctx->sRCParams.RCEnable = IMG_FALSE;
232 (ctx->sRCParams.BitsPerSecond != pSequenceParams->bits_per_second))
239 ctx->sRCParams.BitsPerSecond = TOPAZ_H264_MAX_BITRATE;
245 ctx->sRCParams.BitsPerSecond = pSequenceParams->bits_per_second;
247 ctx->sRCParams.Slices = 1;
249 ctx->sRCParams.IntraFreq = pSequenceParams->intra_period;
250 if (ctx->sRCParams.IntraFreq == 0)
251 ctx->sRCParams.IntraFreq = 1000;
253 ctx->sRCParams.IDRFreq = pSequenceParams->intra_idr_period;
255 ctx->sRCParams.IntraFreq, ctx->sRCParams.IDRFreq);
257 VUI_Params.Time_Scale = ctx->sRCParams.FrameRate * 2;
258 VUI_Params.bit_rate_value_minus1 = ctx->sRCParams.BitsPerSecond / 64 - 1;
259 VUI_Params.cbp_size_value_minus1 = ctx->sRCParams.BufferSize / 64 - 1;
296 if (0 != ctx->sRCParams.IDRFreq) {
341 if ((ctx->sRCParams.IntraFreq != 0) && (ctx->sRCParams.IDRFreq != 0)) { /* period IDR is desired */
347 if ((ctx->obj_context->frame_count % ctx->sRCParams.IntraFreq) == 0) {
349 intra_cnt = ctx->obj_context->frame_count / ctx->sRCParams.IntraFreq;
353 if ((is_intra) && ((intra_cnt % ctx->sRCParams.IDRFreq) == 0)) {
495 if (ctx->sRCParams.RCEnable && ctx->sRCParams.FrameSkip)
517 if (!(ctx->sRCParams.RCEnable && ctx->sRCParams.FrameSkip)) {
600 if (ctx->sRCParams.FrameRate == frame_rate_param->framerate)
603 ctx->sRCParams.FrameRate = frame_rate_param->framerate;
604 ctx->sRCParams.BitsPerSecond += ctx->delta_change;
643 if ((rate_control_param->bits_per_second == ctx->sRCParams.BitsPerSecond) &&
644 (ctx->sRCParams.VCMBitrateMargin == rate_control_param->target_percentage * 128 / 100) &&
645 (ctx->sRCParams.BufferSize == ctx->sRCParams.BitsPerSecond / 1000 * rate_control_param->window_size) &&
646 (ctx->sRCParams.MinQP == rate_control_param->min_qp) &&
647 (ctx->sRCParams.InitialQp == rate_control_param->initial_qp))
653 ctx->sRCParams.VCMBitrateMargin = rate_control_param->target_percentage * 128 / 100;
655 ctx->sRCParams.BufferSize = ctx->sRCParams.BitsPerSecond * rate_control_param->window_size / 1000;
657 ctx->sRCParams.InitialQp = rate_control_param->initial_qp;
659 ctx->sRCParams.MinQP = rate_control_param->min_qp;
661 if ((bit_rate == ctx->sRCParams.BitsPerSecond) || (bit_rate == 0)) {
662 ctx->sRCParams.BitsPerSecond += ctx->delta_change;
665 ctx->sRCParams.BitsPerSecond = bit_rate;