Lines Matching refs:psRCParams

105     IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams);  in tng__H264ES_get_codec_type()  local
110 switch (psRCParams->eRCMode) { in tng__H264ES_get_codec_type()
125 switch (psRCParams->eRCMode) { in tng__H264ES_get_codec_type()
195 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_process_misc_framerate_param() local
209 if (psRCParams->ui32FrameRate == 0) in tng__H264ES_process_misc_framerate_param()
210 psRCParams->ui32FrameRate = psMiscFrameRateParam->framerate; in tng__H264ES_process_misc_framerate_param()
212 if(psMiscFrameRateParam->framerate != psRCParams->ui32FrameRate){ in tng__H264ES_process_misc_framerate_param()
213 if (psMiscFrameRateParam->framerate > psRCParams->ui32FrameRate) in tng__H264ES_process_misc_framerate_param()
214psRCParams->ui32BitsPerSecond /= (float)psMiscFrameRateParam->framerate / psRCParams->ui32FrameRat… in tng__H264ES_process_misc_framerate_param()
216psRCParams->ui32BitsPerSecond *= (float)psRCParams->ui32FrameRate / psMiscFrameRateParam->framerat… in tng__H264ES_process_misc_framerate_param()
217 psRCParams->ui32FrameRate = psMiscFrameRateParam->framerate; in tng__H264ES_process_misc_framerate_param()
229 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_process_misc_ratecontrol_param() local
243 __FUNCTION__, psRCParams->ui32BitsPerSecond, psMiscRcParams->bits_per_second); in tng__H264ES_process_misc_ratecontrol_param()
252 if ((psRCParams->ui32BitsPerSecond != psMiscRcParams->bits_per_second) && in tng__H264ES_process_misc_ratecontrol_param()
254 psRCParams->ui32BitsPerSecond = psMiscRcParams->bits_per_second; in tng__H264ES_process_misc_ratecontrol_param()
260 psRCParams->ui32BitsPerSecond, psMiscRcParams->bits_per_second); in tng__H264ES_process_misc_ratecontrol_param()
277 if (psRCParams->ui32FrameRate == 0) in tng__H264ES_process_misc_ratecontrol_param()
278 psRCParams->ui32FrameRate = 30; in tng__H264ES_process_misc_ratecontrol_param()
282 if (psRCParams->ui32BitsPerSecond == 0) { in tng__H264ES_process_misc_ratecontrol_param()
283 …ontext->picture_width * ctx->obj_context->picture_height * 3 / 2 ) * 8 * psRCParams->ui32FrameRate; in tng__H264ES_process_misc_ratecontrol_param()
288 psRCParams->ui32BitsPerSecond = max_bps; in tng__H264ES_process_misc_ratecontrol_param()
292psRCParams->ui32BufferSize = (IMG_UINT32)(psRCParams->ui32BitsPerSecond * ctx->uiCbrBufferTenths /… in tng__H264ES_process_misc_ratecontrol_param()
294 if (psRCParams->ui32BitsPerSecond < 256000) in tng__H264ES_process_misc_ratecontrol_param()
295 psRCParams->ui32BufferSize = ((9 * psRCParams->ui32BitsPerSecond) >> 1); in tng__H264ES_process_misc_ratecontrol_param()
297 psRCParams->ui32BufferSize = ((5 * psRCParams->ui32BitsPerSecond) >> 1); in tng__H264ES_process_misc_ratecontrol_param()
302 __FUNCTION__, ctx->uiCbrBufferTenths, psRCParams->ui32BufferSize); in tng__H264ES_process_misc_ratecontrol_param()
305 __FUNCTION__, psRCParams->ui32BitsPerSecond, psMiscRcParams->bits_per_second); in tng__H264ES_process_misc_ratecontrol_param()
308 psRCParams->i32InitialDelay = (13 * psRCParams->ui32BufferSize) >> 4; in tng__H264ES_process_misc_ratecontrol_param()
309 psRCParams->i32InitialLevel = (3 * psRCParams->ui32BufferSize) >> 4; in tng__H264ES_process_misc_ratecontrol_param()
311 ui32BitsPerFrame = psRCParams->ui32BitsPerSecond / psRCParams->ui32FrameRate; in tng__H264ES_process_misc_ratecontrol_param()
313psRCParams->i32InitialLevel = ((psRCParams->i32InitialLevel + ui32BitsPerFrame / 2) / ui32BitsPerF… in tng__H264ES_process_misc_ratecontrol_param()
314 psRCParams->i32InitialLevel = tng__max(psRCParams->i32InitialLevel, ui32BitsPerFrame); in tng__H264ES_process_misc_ratecontrol_param()
315 psRCParams->i32InitialDelay = psRCParams->ui32BufferSize - psRCParams->i32InitialLevel; in tng__H264ES_process_misc_ratecontrol_param()
327 if ((psRCParams->ui32InitialQp != psMiscRcParams->initial_qp) && in tng__H264ES_process_misc_ratecontrol_param()
331 __FUNCTION__, psRCParams->ui32InitialQp, psMiscRcParams->initial_qp); in tng__H264ES_process_misc_ratecontrol_param()
333 psRCParams->ui32InitialQp = psMiscRcParams->initial_qp; in tng__H264ES_process_misc_ratecontrol_param()
336 if ((psRCParams->iMinQP != psMiscRcParams->min_qp) && in tng__H264ES_process_misc_ratecontrol_param()
340 __FUNCTION__, psRCParams->iMinQP, psMiscRcParams->min_qp); in tng__H264ES_process_misc_ratecontrol_param()
342 psRCParams->iMinQP = psMiscRcParams->min_qp; in tng__H264ES_process_misc_ratecontrol_param()
362 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_process_misc_hrd_param() local
384 if (!psRCParams->bRCEnable) { in tng__H264ES_process_misc_hrd_param()
502 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_calculate_level() local
513 ui32MBs = ui32MBf * psRCParams->ui32FrameRate; in tng__H264ES_calculate_level()
572 if (psRCParams->bRCEnable) { in tng__H264ES_calculate_level()
574 if (psRCParams->ui32FrameRate > 135000000) ui32TempLevel = SH_LEVEL_51; in tng__H264ES_calculate_level()
575 else if (psRCParams->ui32FrameRate > 50000000) ui32TempLevel = SH_LEVEL_50; in tng__H264ES_calculate_level()
576 else if (psRCParams->ui32FrameRate > 20000000) ui32TempLevel = SH_LEVEL_41; in tng__H264ES_calculate_level()
577 else if (psRCParams->ui32FrameRate > 14000000) ui32TempLevel = SH_LEVEL_32; in tng__H264ES_calculate_level()
578 else if (psRCParams->ui32FrameRate > 10000000) ui32TempLevel = SH_LEVEL_31; in tng__H264ES_calculate_level()
579 else if (psRCParams->ui32FrameRate > 4000000) ui32TempLevel = SH_LEVEL_30; in tng__H264ES_calculate_level()
580 else if (psRCParams->ui32FrameRate > 2000000) ui32TempLevel = SH_LEVEL_21; in tng__H264ES_calculate_level()
581 else if (psRCParams->ui32FrameRate > 768000) ui32TempLevel = SH_LEVEL_20; in tng__H264ES_calculate_level()
582 else if (psRCParams->ui32FrameRate > 384000) ui32TempLevel = SH_LEVEL_13; in tng__H264ES_calculate_level()
583 else if (psRCParams->ui32FrameRate > 192000) ui32TempLevel = SH_LEVEL_12; in tng__H264ES_calculate_level()
584 else if (psRCParams->ui32FrameRate > 128000) ui32TempLevel = SH_LEVEL_11; in tng__H264ES_calculate_level()
585 else if (psRCParams->ui32FrameRate > 64000) ui32TempLevel = SH_LEVEL_1B; in tng__H264ES_calculate_level()
606 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_process_sequence_param() local
701 if (psRCParams->ui32BitsPerSecond == 0) in tng__H264ES_process_sequence_param()
702 psRCParams->ui32BitsPerSecond = psSeqParams->bits_per_second; in tng__H264ES_process_sequence_param()
704 if (psSeqParams->bits_per_second != psRCParams->ui32BitsPerSecond) { in tng__H264ES_process_sequence_param()
705 psRCParams->ui32BitsPerSecond = psSeqParams->bits_per_second; in tng__H264ES_process_sequence_param()
709 psRCParams->ui32IntraFreq = ctx->ui32IntraCnt; in tng__H264ES_process_sequence_param()
710 psRCParams->ui32TransferBitsPerSecond = psRCParams->ui32BitsPerSecond; in tng__H264ES_process_sequence_param()
711 psRCParams->ui16BFrames = ui32IPCount - 1; in tng__H264ES_process_sequence_param()
713 if (psRCParams->ui32FrameRate == 0) in tng__H264ES_process_sequence_param()
714 psRCParams->ui32FrameRate = 30; in tng__H264ES_process_sequence_param()
717 if (psRCParams->eRCMode == IMG_RCMODE_VCM) in tng__H264ES_process_sequence_param()
718 psRCParams->ui16BFrames = 0; in tng__H264ES_process_sequence_param()
720 if ((psRCParams->ui16BFrames > 0) && (ctx->ui8ProfileIdc == H264ES_PROFILE_BASELINE)) { in tng__H264ES_process_sequence_param()
729 if (psRCParams->ui16BFrames != 0) { in tng__H264ES_process_sequence_param()
791 IMG_RC_PARAMS * psRCParams = &(ctx->sRCParams);
1064 IMG_RC_PARAMS *psRCParams = &(ctx->sRCParams); in tng__H264ES_process_misc_max_slice_size_param() local
1072 psRCParams->ui32SliceByteLimit = psMiscMaxSliceSizeParams->max_slice_size; in tng__H264ES_process_misc_max_slice_size_param()
1074 "Max slice size is %d\n", psRCParams->ui32SliceByteLimit); in tng__H264ES_process_misc_max_slice_size_param()
1079 psRCParams->ui32SliceByteLimit = 0; in tng__H264ES_process_misc_max_slice_size_param()