Lines Matching refs:sRCParams
135 ctx->sRCParams.RCEnable = IMG_TRUE; in pnw_H264ES_CreateContext()
136 ctx->sRCParams.bDisableBitStuffing = IMG_FALSE; in pnw_H264ES_CreateContext()
139 ctx->sRCParams.RCEnable = IMG_TRUE; in pnw_H264ES_CreateContext()
140 ctx->sRCParams.bDisableBitStuffing = IMG_TRUE; in pnw_H264ES_CreateContext()
143 ctx->sRCParams.RCEnable = IMG_FALSE; in pnw_H264ES_CreateContext()
144 ctx->sRCParams.bDisableBitStuffing = IMG_FALSE; in pnw_H264ES_CreateContext()
147 ctx->sRCParams.RCEnable = IMG_TRUE; in pnw_H264ES_CreateContext()
148 ctx->sRCParams.bDisableBitStuffing = IMG_FALSE; in pnw_H264ES_CreateContext()
160 ctx->sRCParams.FrameRate = 30; in pnw_H264ES_CreateContext()
226 if(ctx->sRCParams.FrameRate == 0) in pnw__H264ES_process_sequence_param()
227 ctx->sRCParams.FrameRate = 30; in pnw__H264ES_process_sequence_param()
239 ctx->sRCParams.bBitrateChanged = in pnw__H264ES_process_sequence_param()
240 (pSequenceParams->bits_per_second == ctx->sRCParams.BitsPerSecond ? in pnw__H264ES_process_sequence_param()
244 ctx->sRCParams.BitsPerSecond = TOPAZ_H264_MAX_BITRATE; in pnw__H264ES_process_sequence_param()
253 max_bps = (ctx->Width * ctx->Height * 3 / 2 ) * 8 * ctx->sRCParams.FrameRate; in pnw__H264ES_process_sequence_param()
260 ctx->Width, ctx->Height, ctx->sRCParams.FrameRate); in pnw__H264ES_process_sequence_param()
265 ctx->sRCParams.BitsPerSecond = max_bps; in pnw__H264ES_process_sequence_param()
275 ctx->sRCParams.BitsPerSecond = pSequenceParams->bits_per_second; in pnw__H264ES_process_sequence_param()
280 ctx->sRCParams.IDRFreq = pSequenceParams->intra_idr_period; in pnw__H264ES_process_sequence_param()
282 ctx->sRCParams.Slices = ctx->Slices; in pnw__H264ES_process_sequence_param()
283 ctx->sRCParams.QCPOffset = 0; in pnw__H264ES_process_sequence_param()
285 if (ctx->sRCParams.IntraFreq != pSequenceParams->intra_period in pnw__H264ES_process_sequence_param()
287 && ctx->sRCParams.IntraFreq != 0 in pnw__H264ES_process_sequence_param()
288 && ((ctx->obj_context->frame_count + 1) % ctx->sRCParams.IntraFreq) != 0 in pnw__H264ES_process_sequence_param()
289 && (!ctx->sRCParams.bDisableFrameSkipping)) { in pnw__H264ES_process_sequence_param()
298 ctx->sRCParams.IntraFreq = pSequenceParams->intra_period; in pnw__H264ES_process_sequence_param()
300 frame_size = ctx->sRCParams.BitsPerSecond / ctx->sRCParams.FrameRate; in pnw__H264ES_process_sequence_param()
304 ctx->sRCParams.BufferSize = ctx->buffer_size; in pnw__H264ES_process_sequence_param()
305 ctx->sRCParams.InitialLevel = ctx->buffer_size - ctx->initial_buffer_fullness; in pnw__H264ES_process_sequence_param()
306 ctx->sRCParams.InitialDelay = ctx->initial_buffer_fullness; in pnw__H264ES_process_sequence_param()
309 ctx->buffer_size = ctx->sRCParams.BitsPerSecond; in pnw__H264ES_process_sequence_param()
310 ctx->initial_buffer_fullness = ctx->sRCParams.BitsPerSecond; in pnw__H264ES_process_sequence_param()
311 ctx->sRCParams.BufferSize = ctx->buffer_size; in pnw__H264ES_process_sequence_param()
312 ctx->sRCParams.InitialLevel = (3 * ctx->sRCParams.BufferSize) >> 4; in pnw__H264ES_process_sequence_param()
314 ctx->sRCParams.InitialLevel += (frame_size / 2); in pnw__H264ES_process_sequence_param()
315 ctx->sRCParams.InitialLevel /= frame_size; in pnw__H264ES_process_sequence_param()
316 ctx->sRCParams.InitialLevel *= frame_size; in pnw__H264ES_process_sequence_param()
317 ctx->sRCParams.InitialDelay = ctx->buffer_size - ctx->sRCParams.InitialLevel; in pnw__H264ES_process_sequence_param()
325 pVUI_Params->bit_rate_value_minus1 = ctx->sRCParams.BitsPerSecond / 64 - 1; in pnw__H264ES_process_sequence_param()
326 pVUI_Params->cbp_size_value_minus1 = ctx->sRCParams.BufferSize / 64 - 1; in pnw__H264ES_process_sequence_param()
328 ctx->sRCParams.bDisableBitStuffing || in pnw__H264ES_process_sequence_param()
329 ctx->sRCParams.bDisableFrameSkipping) in pnw__H264ES_process_sequence_param()
347 pVUI_Params->Time_Scale = ctx->sRCParams.FrameRate * 2; in pnw__H264ES_process_sequence_param()
418 if (ctx->sRCParams.IDRFreq != 0) { in pnw__H264ES_process_sequence_param()
452 90000 * (1.0 * ctx->sRCParams.InitialDelay / ctx->sRCParams.BitsPerSecond); in pnw__H264ES_insert_SEI_buffer_period()
454 90000 * (1.0 * ctx->buffer_size / ctx->sRCParams.BitsPerSecond) in pnw__H264ES_insert_SEI_buffer_period()
509 ctx->sRCParams.IDRFreq * ctx->sRCParams.IntraFreq * 2; in pnw__H264ES_insert_SEI_pic_timing()
621 …if ((ctx->sRCParams.IntraFreq != 0) && (ctx->sRCParams.IDRFreq != 0)) { /* period IDR is desired */ in pnw__H264ES_process_picture_param()
627 if ((ctx->obj_context->frame_count % ctx->sRCParams.IntraFreq) == 0) { in pnw__H264ES_process_picture_param()
629 intra_cnt = ctx->obj_context->frame_count / ctx->sRCParams.IntraFreq; in pnw__H264ES_process_picture_param()
633 if ((is_intra) && ((intra_cnt % ctx->sRCParams.IDRFreq) == 0)) { in pnw__H264ES_process_picture_param()
679 …re_picture_header(cmdbuf->header_mem_p + ctx->pic_header_ofs, IMG_FALSE, ctx->sRCParams.QCPOffset); in pnw__H264ES_process_picture_param()
745 …is_intra = (ctx->sRCParams.RCEnable && ctx->sRCParams.FrameSkip) ? 0 : pBuffer->slice_flags.bits.i… in pnw__H264ES_encode_one_slice()
781 if (!(ctx->sRCParams.RCEnable && ctx->sRCParams.FrameSkip)) { in pnw__H264ES_encode_one_slice()
918 ctx->sRCParams.Slices = obj_buffer->num_elements; in pnw__H264ES_process_slice_param()
1020 if (ctx->sRCParams.FrameRate == frame_rate_param->framerate) in pnw__H264ES_process_misc_param()
1024 ctx->sRCParams.FrameRate, in pnw__H264ES_process_misc_param()
1026 ctx->sRCParams.FrameRate = frame_rate_param->framerate; in pnw__H264ES_process_misc_param()
1027 ctx->sRCParams.bBitrateChanged = IMG_TRUE; in pnw__H264ES_process_misc_param()
1029 ctx->sRCParams.FrameRate = (frame_rate_param->framerate < 1) ? 1 : in pnw__H264ES_process_misc_param()
1041 ctx->sRCParams.bDisableFrameSkipping = IMG_TRUE; in pnw__H264ES_process_misc_param()
1043 ctx->sRCParams.bDisableBitStuffing = IMG_TRUE; in pnw__H264ES_process_misc_param()
1046 ctx->sRCParams.bDisableFrameSkipping, ctx->sRCParams.bDisableBitStuffing); in pnw__H264ES_process_misc_param()
1066 rate_control_param->bits_per_second == ctx->sRCParams.BitsPerSecond) && in pnw__H264ES_process_misc_param()
1068 …ctx->sRCParams.BufferSize == ctx->sRCParams.BitsPerSecond / 1000 * rate_control_param->window_size… in pnw__H264ES_process_misc_param()
1069 (ctx->sRCParams.MinQP == rate_control_param->min_qp) && in pnw__H264ES_process_misc_param()
1070 (ctx->sRCParams.InitialQp == rate_control_param->initial_qp) && in pnw__H264ES_process_misc_param()
1072 ctx->sRCParams.BUSize == rate_control_param->basic_unit_size)) { in pnw__H264ES_process_misc_param()
1078 ctx->sRCParams.bBitrateChanged = IMG_TRUE; in pnw__H264ES_process_misc_param()
1095 ctx->sRCParams.BitsPerSecond, in pnw__H264ES_process_misc_param()
1098 max_bps = (ctx->Width * ctx->Height * 3 / 2 ) * 8 * ctx->sRCParams.FrameRate; in pnw__H264ES_process_misc_param()
1105 ctx->Width, ctx->Height, ctx->sRCParams.FrameRate); in pnw__H264ES_process_misc_param()
1110 ctx->sRCParams.BitsPerSecond = max_bps; in pnw__H264ES_process_misc_param()
1119 ctx->sRCParams.BitsPerSecond = rate_control_param->bits_per_second; in pnw__H264ES_process_misc_param()
1124 ctx->sRCParams.MinQP = rate_control_param->min_qp; in pnw__H264ES_process_misc_param()
1126 ctx->sRCParams.BufferSize = in pnw__H264ES_process_misc_param()
1127 ctx->sRCParams.BitsPerSecond / 1000 * rate_control_param->window_size; in pnw__H264ES_process_misc_param()
1128 if (ctx->sRCParams.FrameRate == 0) { in pnw__H264ES_process_misc_param()
1130 ctx->sRCParams.FrameRate = 30; in pnw__H264ES_process_misc_param()
1133 frame_size = ctx->sRCParams.BitsPerSecond / ctx->sRCParams.FrameRate; in pnw__H264ES_process_misc_param()
1136 ctx->sRCParams.BitsPerSecond); in pnw__H264ES_process_misc_param()
1139 ctx->sRCParams.InitialLevel = (3 * ctx->sRCParams.BufferSize) >> 4; in pnw__H264ES_process_misc_param()
1140 ctx->sRCParams.InitialLevel += (frame_size / 2); in pnw__H264ES_process_misc_param()
1141 ctx->sRCParams.InitialLevel /= frame_size; in pnw__H264ES_process_misc_param()
1142 ctx->sRCParams.InitialLevel *= frame_size; in pnw__H264ES_process_misc_param()
1143 ctx->sRCParams.InitialDelay = in pnw__H264ES_process_misc_param()
1144 ctx->sRCParams.BufferSize - ctx->sRCParams.InitialLevel; in pnw__H264ES_process_misc_param()
1148 ctx->sRCParams.InitialQp = rate_control_param->initial_qp; in pnw__H264ES_process_misc_param()
1150 ctx->sRCParams.BUSize = rate_control_param->basic_unit_size; in pnw__H264ES_process_misc_param()
1225 if (!ctx->sRCParams.RCEnable) { in pnw__H264ES_process_misc_param()
1332 psPicParams->NumSlices = ctx->sRCParams.Slices; in pnw_H264ES_EndPicture()