Lines Matching refs:psBiasParams
215 IMG_BIAS_PARAMS *psBiasParams = &(ctx->sBiasParams); in tng__MPEG4ES_generate_bias_tables() local
234 uiLambda = psBiasParams->uLambdaSAD ? psBiasParams->uLambdaSAD : MPEG4_QPLAMBDA_MAP[n - 1]; in tng__MPEG4ES_generate_bias_tables()
243 if(psBiasParams->bRCEnable || psBiasParams->bRCBiases) { in tng__MPEG4ES_generate_bias_tables()
244 uDirectVecBias = psBiasParams->uTHSkipIPE * uiLambda; in tng__MPEG4ES_generate_bias_tables()
245 iInterMBBias = psBiasParams->uTHInter * (n - psBiasParams->uTHInterQP); in tng__MPEG4ES_generate_bias_tables()
248 if(iInterMBBias > psBiasParams->uTHInterMaxLevel) in tng__MPEG4ES_generate_bias_tables()
249 iInterMBBias = psBiasParams->uTHInterMaxLevel; in tng__MPEG4ES_generate_bias_tables()
252 uDirectVecBias = psBiasParams->uIPESkipVecBias; in tng__MPEG4ES_generate_bias_tables()
253 iInterMBBias = psBiasParams->iInterMBBias; in tng__MPEG4ES_generate_bias_tables()
254 iIntra16Bias = psBiasParams->iIntra16Bias; in tng__MPEG4ES_generate_bias_tables()
262 if(psBiasParams->bRCEnable || psBiasParams->bRCBiases) in tng__MPEG4ES_generate_bias_tables()
263 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz1; in tng__MPEG4ES_generate_bias_tables()
265 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz2; in tng__MPEG4ES_generate_bias_tables()
282 IMG_BIAS_PARAMS * psBiasParams = &(ctx->sBiasParams); in tng__H263ES_generate_bias_tables() local
300 uiLambda = psBiasParams->uLambdaSAD ? psBiasParams->uLambdaSAD : H263_QPLAMBDA_MAP[n - 1]; in tng__H263ES_generate_bias_tables()
310 if(psBiasParams->bRCEnable || psBiasParams->bRCBiases) { in tng__H263ES_generate_bias_tables()
311 uDirectVecBias = psBiasParams->uTHSkipIPE * uiLambda; in tng__H263ES_generate_bias_tables()
312 iInterMBBias = psBiasParams->uTHInter * (n - psBiasParams->uTHInterQP); in tng__H263ES_generate_bias_tables()
315 if(iInterMBBias > psBiasParams->uTHInterMaxLevel) in tng__H263ES_generate_bias_tables()
316 iInterMBBias = psBiasParams->uTHInterMaxLevel; in tng__H263ES_generate_bias_tables()
319 uDirectVecBias = psBiasParams->uIPESkipVecBias; in tng__H263ES_generate_bias_tables()
320 iInterMBBias = psBiasParams->iInterMBBias; in tng__H263ES_generate_bias_tables()
321 iIntra16Bias = psBiasParams->iIntra16Bias; in tng__H263ES_generate_bias_tables()
329 if(psBiasParams->bRCEnable || psBiasParams->bRCBiases) in tng__H263ES_generate_bias_tables()
330 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz1; in tng__H263ES_generate_bias_tables()
332 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz2; in tng__H263ES_generate_bias_tables()
345 IMG_BIAS_PARAMS * psBiasParams = &(ctx->sBiasParams); in tng__H264ES_generate_bias_tables() local
368 uiLambdaSATD = H264_QPLAMBDA_MAP_SATD_TABLES[psBiasParams->uLambdaSATDTable][n]; in tng__H264ES_generate_bias_tables()
370 if (psBiasParams->uLambdaSAD != 0) uiLambdaSAD = psBiasParams->uLambdaSAD; in tng__H264ES_generate_bias_tables()
371 if (psBiasParams->uLambdaSATD != 0) uiLambdaSATD = psBiasParams->uLambdaSATD; in tng__H264ES_generate_bias_tables()
386 if (psBiasParams->bRCEnable || psBiasParams->bRCBiases) { in tng__H264ES_generate_bias_tables()
396 if (psBiasParams->uDirectVecBias != UNINIT_PARAM) in tng__H264ES_generate_bias_tables()
397 uDirectVecBias_B = psBiasParams->uDirectVecBias; in tng__H264ES_generate_bias_tables()
398 if (psBiasParams->iInterMBBiasB != UNINIT_PARAM) in tng__H264ES_generate_bias_tables()
399 iInterMBBias_B = psBiasParams->iInterMBBiasB; in tng__H264ES_generate_bias_tables()
401 if (psBiasParams->uIPESkipVecBias != UNINIT_PARAM) in tng__H264ES_generate_bias_tables()
402 uDirectVecBias_P = psBiasParams->uIPESkipVecBias; in tng__H264ES_generate_bias_tables()
403 if (psBiasParams->iInterMBBias != UNINIT_PARAM) in tng__H264ES_generate_bias_tables()
404 iInterMBBias_P = psBiasParams->iInterMBBias; in tng__H264ES_generate_bias_tables()
406 … if (psBiasParams->iIntra16Bias != UNINIT_PARAM) iIntra16Bias = psBiasParams->iIntra16Bias; in tng__H264ES_generate_bias_tables()
408 … if (psBiasParams->uDirectVecBias == UNINIT_PARAM || psBiasParams->iInterMBBiasB == UNINIT_PARAM) { in tng__H264ES_generate_bias_tables()
409 …up ... uDirectVecBias = 0x%x, iInterMBBiasB = 0x%x\n", psBiasParams->uDirectVecBias, psBiasParams-… in tng__H264ES_generate_bias_tables()
412 uDirectVecBias_B = psBiasParams->uDirectVecBias; in tng__H264ES_generate_bias_tables()
413 iInterMBBias_B = psBiasParams->iInterMBBiasB; in tng__H264ES_generate_bias_tables()
415 … if (psBiasParams->uIPESkipVecBias == UNINIT_PARAM || psBiasParams->iInterMBBias == UNINIT_PARAM) { in tng__H264ES_generate_bias_tables()
416 …up ... uIPESkipVecBias = 0x%x, iInterMBBias = 0x%x\n", psBiasParams->uIPESkipVecBias, psBiasParams… in tng__H264ES_generate_bias_tables()
419 uDirectVecBias_P = psBiasParams->uIPESkipVecBias; in tng__H264ES_generate_bias_tables()
420 iInterMBBias_P = psBiasParams->iInterMBBias; in tng__H264ES_generate_bias_tables()
422 iIntra16Bias = psBiasParams->iIntra16Bias; in tng__H264ES_generate_bias_tables()
423 uisz2 = psBiasParams->uisz2; in tng__H264ES_generate_bias_tables()
441 if (psBiasParams->bRCEnable || psBiasParams->bRCBiases) in tng__H264ES_generate_bias_tables()
442 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz1; in tng__H264ES_generate_bias_tables()
444 ctx->sBiasTables.ui32sz1 = psBiasParams->uisz2; in tng__H264ES_generate_bias_tables()
446 if (psBiasParams->bZeroDetectionDisable) { in tng__H264ES_generate_bias_tables()
450 … ctx->sBiasTables.ui32RejectThresholdH264 = F_ENCODE(psBiasParams->uzb4, INTEL_H264_ConfigReg1) in tng__H264ES_generate_bias_tables()
451 | F_ENCODE(psBiasParams->uzb8, INTEL_H264_ConfigReg2); in tng__H264ES_generate_bias_tables()
736 IMG_BIAS_PARAMS * psBiasParams = &(ctx->sBiasParams); in tng_init_bias_params() local
737 memset(psBiasParams, 0, sizeof(IMG_BIAS_PARAMS)); in tng_init_bias_params()
739 psBiasParams->uLambdaSAD = 0; in tng_init_bias_params()
740 psBiasParams->uLambdaSATD = 0; in tng_init_bias_params()
741 psBiasParams->uLambdaSATDTable = 0; in tng_init_bias_params()
743 psBiasParams->bRCEnable = ctx->sRCParams.bRCEnable; in tng_init_bias_params()
744 psBiasParams->bRCBiases = IMG_TRUE; in tng_init_bias_params()
746 psBiasParams->iIntra16Bias = UNINIT_PARAM; in tng_init_bias_params()
747 psBiasParams->iInterMBBias = UNINIT_PARAM; in tng_init_bias_params()
748 psBiasParams->iInterMBBiasB = UNINIT_PARAM; in tng_init_bias_params()
750 psBiasParams->uDirectVecBias = UNINIT_PARAM; in tng_init_bias_params()
751 psBiasParams->uIPESkipVecBias = UNINIT_PARAM; in tng_init_bias_params()
752 psBiasParams->uSPESkipVecBias = 0; //not in spec in tng_init_bias_params()
754 psBiasParams->uisz1 = 6; in tng_init_bias_params()
755 psBiasParams->uisz2 = 6; in tng_init_bias_params()
756 psBiasParams->bZeroDetectionDisable = TOPAZHP_DEFAULT_bZeroDetectionDisable; in tng_init_bias_params()
758 psBiasParams->uzb4 = 6; in tng_init_bias_params()
759 psBiasParams->uzb8 = 4; in tng_init_bias_params()
761 psBiasParams->uTHInter = TOPAZHP_DEFAULT_uTHInter; in tng_init_bias_params()
762 psBiasParams->uTHInterQP = TOPAZHP_DEFAULT_uTHInterQP; in tng_init_bias_params()
763 psBiasParams->uTHInterMaxLevel = TOPAZHP_DEFAULT_uTHInterMaxLevel; in tng_init_bias_params()
764 psBiasParams->uTHSkipIPE = TOPAZHP_DEFAULT_uTHSkipIPE; in tng_init_bias_params()
765 psBiasParams->uTHSkipSPE = TOPAZHP_DEFAULT_uTHSkipSPE; in tng_init_bias_params()