Lines Matching refs:n

210     IMG_INT16 n;  in tng__MPEG4ES_generate_bias_tables()  local
222 for(n=31;n>=1;n--) in tng__MPEG4ES_generate_bias_tables()
224 iX = n-12; in tng__MPEG4ES_generate_bias_tables()
232 uiDCScaleL = CalculateDCScaler(n, IMG_FALSE); in tng__MPEG4ES_generate_bias_tables()
233 uiDCScaleC = CalculateDCScaler(n, IMG_TRUE); in tng__MPEG4ES_generate_bias_tables()
234 uiLambda = psBiasParams->uLambdaSAD ? psBiasParams->uLambdaSAD : MPEG4_QPLAMBDA_MAP[n - 1]; in tng__MPEG4ES_generate_bias_tables()
239 ctx->sBiasTables.aui32LambdaBias[n] = ui32RegVal; in tng__MPEG4ES_generate_bias_tables()
242 for(n=31;n>=1;n-=2) { in tng__MPEG4ES_generate_bias_tables()
245 iInterMBBias = psBiasParams->uTHInter * (n - psBiasParams->uTHInterQP); in tng__MPEG4ES_generate_bias_tables()
257 ctx->sBiasTables.aui32IntraBias[n] = iIntra16Bias; in tng__MPEG4ES_generate_bias_tables()
258 ctx->sBiasTables.aui32InterBias_P[n] = iInterMBBias; in tng__MPEG4ES_generate_bias_tables()
259 ctx->sBiasTables.aui32DirectBias_P[n] = uDirectVecBias; in tng__MPEG4ES_generate_bias_tables()
277 IMG_INT16 n; in tng__H263ES_generate_bias_tables() local
288 for(n=31;n>=1;n--) in tng__H263ES_generate_bias_tables()
290 iX = n-12; in tng__H263ES_generate_bias_tables()
298 uiDCScaleL = CalculateDCScaler(n, IMG_FALSE); in tng__H263ES_generate_bias_tables()
299 uiDCScaleC = CalculateDCScaler(n, IMG_TRUE); in tng__H263ES_generate_bias_tables()
300 uiLambda = psBiasParams->uLambdaSAD ? psBiasParams->uLambdaSAD : H263_QPLAMBDA_MAP[n - 1]; in tng__H263ES_generate_bias_tables()
306 ctx->sBiasTables.aui32LambdaBias[n] = ui32RegVal; in tng__H263ES_generate_bias_tables()
309 for(n=31;n>=1;n-=2) { in tng__H263ES_generate_bias_tables()
312 iInterMBBias = psBiasParams->uTHInter * (n - psBiasParams->uTHInterQP); in tng__H263ES_generate_bias_tables()
324 ctx->sBiasTables.aui32IntraBias[n] = iIntra16Bias; in tng__H263ES_generate_bias_tables()
325 ctx->sBiasTables.aui32InterBias_P[n] = iInterMBBias; in tng__H263ES_generate_bias_tables()
326 ctx->sBiasTables.aui32DirectBias_P[n] = uDirectVecBias; in tng__H263ES_generate_bias_tables()
342 IMG_INT32 n; in tng__H264ES_generate_bias_tables() local
360 for (n = 51; n >= 0; n--) { in tng__H264ES_generate_bias_tables()
364 iX = n - 12; in tng__H264ES_generate_bias_tables()
368 uiLambdaSATD = H264_QPLAMBDA_MAP_SATD_TABLES[psBiasParams->uLambdaSATDTable][n]; in tng__H264ES_generate_bias_tables()
375 ui32RegVal = PVR_QP_SCALE_CR[n]; in tng__H264ES_generate_bias_tables()
379 ctx->sBiasTables.aui32LambdaBias[n] = ui32RegVal; in tng__H264ES_generate_bias_tables()
382 for (n = 52; n >= 0; n -= 2) { in tng__H264ES_generate_bias_tables()
383 IMG_INT8 qp = n; in tng__H264ES_generate_bias_tables()
388 uDirectVecBias_P = H264_DIRECT_BIAS[n/2]; in tng__H264ES_generate_bias_tables()
394 uIntra8Scale = H264_INTRA8_SCALE[n/2] - 8; in tng__H264ES_generate_bias_tables()
433 ctx->sBiasTables.aui32IntraBias[n] = iIntra16Bias; in tng__H264ES_generate_bias_tables()
434 ctx->sBiasTables.aui32InterBias_P[n] = iInterMBBias_P; in tng__H264ES_generate_bias_tables()
435 ctx->sBiasTables.aui32DirectBias_P[n] = uDirectVecBias_P; in tng__H264ES_generate_bias_tables()
436 ctx->sBiasTables.aui32InterBias_B[n] = iInterMBBias_B; in tng__H264ES_generate_bias_tables()
437 ctx->sBiasTables.aui32DirectBias_B[n] = uDirectVecBias_B; in tng__H264ES_generate_bias_tables()
438 ctx->sBiasTables.aui32IntraScale[n] = uIntra8Scale; in tng__H264ES_generate_bias_tables()
507 IMG_INT32 n; in tng__H263ES_load_bias_tables() local
527 for(n=31;n>=1;n--) in tng__H263ES_load_bias_tables()
544 for(n=31;n>=1;n-=2) in tng__H263ES_load_bias_tables()
546 …eg_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTRA_BIAS_TABLE, 0, psBiasTables->aui32IntraBias[n]); in tng__H263ES_load_bias_tables()
547 …_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTER_BIAS_TABLE, 0, psBiasTables->aui32InterBias_P[n]); in tng__H263ES_load_bias_tables()
548 …rite(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_DIRECT_BIAS_TABLE, 0, psBiasTables->aui32DirectBias_P[n]); in tng__H263ES_load_bias_tables()
563 IMG_INT32 n; in tng__MPEG4_load_bias_tables() local
582 for (n=31; n >= 1; n--) { in tng__MPEG4_load_bias_tables()
601 for(n=31;n>=1;n-=2) in tng__MPEG4_load_bias_tables()
603 …eg_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTRA_BIAS_TABLE, 0, psBiasTables->aui32IntraBias[n]); in tng__MPEG4_load_bias_tables()
604 …_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTER_BIAS_TABLE, 0, psBiasTables->aui32InterBias_P[n]); in tng__MPEG4_load_bias_tables()
605 …rite(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_DIRECT_BIAS_TABLE, 0, psBiasTables->aui32DirectBias_P[n]); in tng__MPEG4_load_bias_tables()
625 IMG_INT32 n; in tng__H264ES_load_bias_tables() local
647 for (n=51; n >= 0; n--) { in tng__H264ES_load_bias_tables()
653 for (n = 0; n < 4; n++) { in tng__H264ES_load_bias_tables()
655 …ui32RegVal = (((H264_LAMBDA_COEFFS[n][0]) << (SHIFT_TOPAZHP_TOP_CR_POLYNOM_ALPHA_COEFF_CORE_00)) &… in tng__H264ES_load_bias_tables()
656 …ui32RegVal |= (((H264_LAMBDA_COEFFS[n][1]) << (SHIFT_TOPAZHP_TOP_CR_POLYNOM_BETA_COEFF_CORE_00)) &… in tng__H264ES_load_bias_tables()
663 …ui32RegVal = (((H264_LAMBDA_COEFFS[n][2]) << (SHIFT_TOPAZHP_TOP_CR_POLYNOM_GAMMA_COEFF_CORE_01)) &… in tng__H264ES_load_bias_tables()
675 for (n=52;n>=0;n-=2) { in tng__H264ES_load_bias_tables()
677 …_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTER_BIAS_TABLE, 0, psBiasTables->aui32InterBias_B[n]); in tng__H264ES_load_bias_tables()
678 …rite(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_DIRECT_BIAS_TABLE, 0, psBiasTables->aui32DirectBias_B[n]); in tng__H264ES_load_bias_tables()
680 …_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTER_BIAS_TABLE, 0, psBiasTables->aui32InterBias_P[n]); in tng__H264ES_load_bias_tables()
681 …rite(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_DIRECT_BIAS_TABLE, 0, psBiasTables->aui32DirectBias_P[n]); in tng__H264ES_load_bias_tables()
683 …eg_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTRA_BIAS_TABLE, 0, psBiasTables->aui32IntraBias[n]); in tng__H264ES_load_bias_tables()
684 …_write(TOPAZ_MULTICORE_REG, TOPAZHP_TOP_CR_INTRA_SCALE_TABLE, 0, psBiasTables->aui32IntraScale[n]); in tng__H264ES_load_bias_tables()