Lines Matching refs:sAirInfo

46     ctx->sAirInfo.pi8AIR_Table = (IMG_INT8 *)malloc(ui32MbNum);  in tng_air_buf_create()
48 if (!ctx->sAirInfo.pi8AIR_Table) { in tng_air_buf_create()
53 memset(ctx->sAirInfo.pi8AIR_Table, 0, ui32MbNum); in tng_air_buf_create()
61 …= %d, ctx->sAirInfo.pi8AIR_Table = 0x%08x\n", __FUNCTION__, ui32MbNum, ctx->sAirInfo.pi8AIR_Table); in tng_air_buf_clear()
62 memset(ctx->sAirInfo.pi8AIR_Table, 0, ui32MbNum); in tng_air_buf_clear()
63 …= %d, ctx->sAirInfo.pi8AIR_Table = 0x%08x\n", __FUNCTION__, ui32MbNum, ctx->sAirInfo.pi8AIR_Table); in tng_air_buf_clear()
72 if (ctx->sAirInfo.pi8AIR_Table != NULL) in tng_air_buf_free()
73 free(ctx->sAirInfo.pi8AIR_Table); in tng_air_buf_free()
432 if (ctx->sAirInfo.i16AIRSkipCnt >= 0) in tng__send_air_inp_ctrl_buf()
433 ui32Skip = ctx->sAirInfo.i16AIRSkipCnt; in tng__send_air_inp_ctrl_buf()
455 if (ctx->sAirInfo.pi8AIR_Table[tsp] > 0) in tng__send_air_inp_ctrl_buf()
467 ui32NewScanPos = (IMG_UINT32) (ctx->sAirInfo.ui16AIRScanPos + ui32Skip) % ui32MBMaxSize; in tng__send_air_inp_ctrl_buf()
471 ((ctx->sAirInfo.i32NumAIRSPerFrame == 0) || in tng__send_air_inp_ctrl_buf()
472 ui32SentCnt < (IMG_UINT32) ctx->sAirInfo.i32NumAIRSPerFrame)) { in tng__send_air_inp_ctrl_buf()
475 if (ctx->sAirInfo.pi8AIR_Table[ui32NewScanPos] >= 0) { in tng__send_air_inp_ctrl_buf()
477 … ctx->sAirInfo.pi8AIR_Table[ui32NewScanPos] = -1 - ctx->sAirInfo.pi8AIR_Table[ui32NewScanPos]; in tng__send_air_inp_ctrl_buf()
479 if (ctx->sAirInfo.pi8AIR_Table[ui32NewScanPos] < -1) { in tng__send_air_inp_ctrl_buf()
483 ctx->sAirInfo.pi8AIR_Table[ui32NewScanPos]++; in tng__send_air_inp_ctrl_buf()
495 if (ui32NewScanPos == ctx->sAirInfo.ui16AIRScanPos) { in tng__send_air_inp_ctrl_buf()
501 ctx->sAirInfo.ui16AIRScanPos = ui32NewScanPos; in tng__send_air_inp_ctrl_buf()
673 if (ctx->sAirInfo.i32NumAIRSPerFrame == 0) in tng__calc_air_inp_ctrl_buf()
675 else if (ctx->sAirInfo.i32NumAIRSPerFrame < 0) in tng__calc_air_inp_ctrl_buf()
676 …ctx->sAirInfo.i32NumAIRSPerFrame = ui32MaxMBs = ((ui32MBFrameWidth * ui32MBPictureHeight) + 99) / … in tng__calc_air_inp_ctrl_buf()
678 ui32MaxMBs = ctx->sAirInfo.i32NumAIRSPerFrame; in tng__calc_air_inp_ctrl_buf()
682 if (ctx->sAirInfo.i32SAD_Threshold >= 0) in tng__calc_air_inp_ctrl_buf()
683 ui32tSAD_Threshold = (IMG_UINT16)ctx->sAirInfo.i32SAD_Threshold; in tng__calc_air_inp_ctrl_buf()
686 if (ctx->sAirInfo.i32SAD_Threshold == -1) { in tng__calc_air_inp_ctrl_buf()
695 …ctx->sAirInfo.i32SAD_Threshold = -1 - ui32SADParam; // Negative numbers indicate auto-adjusting th… in tng__calc_air_inp_ctrl_buf()
697 ui32tSAD_Threshold = (IMG_UINT32) - (ctx->sAirInfo.i32SAD_Threshold + 1); in tng__calc_air_inp_ctrl_buf()
703 …kp:%i\n", (unsigned int)ui32tSAD_Threshold, (unsigned int)ui32MaxMBs, ctx->sAirInfo.i16AIRSkipCnt); in tng__calc_air_inp_ctrl_buf()
711 if (ctx->sAirInfo.i32SAD_Threshold>=0) in tng__calc_air_inp_ctrl_buf()
712 if (ctx->sAirInfo.i32NumAIRSPerFrame>0) in tng__calc_air_inp_ctrl_buf()
733 if (ctx->sAirInfo.pi8AIR_Table[ui32MBy * ui32MBFrameWidth + ui32MBx] < 0) in tng__calc_air_inp_ctrl_buf()
734 …ctx->sAirInfo.pi8AIR_Table[ui32MBy * ui32MBFrameWidth + ui32MBx] = -1 - ctx->sAirInfo.pi8AIR_Tabl… in tng__calc_air_inp_ctrl_buf()
767 ctx->sAirInfo.pi8AIR_Table[ui32MBy * ui32MBFrameWidth + ui32MBx]++; in tng__calc_air_inp_ctrl_buf()
779 …fprintf(fp,"%4x[%i]%c, ",ui32SADParam, ctx->sAirInfo.pi8AIR_Table[ui32MBy * ui32MBFrameWidth + ui3… in tng__calc_air_inp_ctrl_buf()
789 if (ctx->sAirInfo.i32SAD_Threshold < 0) { in tng__calc_air_inp_ctrl_buf()
792 ctx->sAirInfo.i32SAD_Threshold = (IMG_INT32) - ((IMG_INT32)ui32tSAD_ThresholdLo) - 1; in tng__calc_air_inp_ctrl_buf()
795 … ctx->sAirInfo.i32SAD_Threshold = (IMG_INT32) - ((IMG_INT32)ui32tSAD_ThresholdHi) - 1; in tng__calc_air_inp_ctrl_buf()
798 …ctx->sAirInfo.i32SAD_Threshold = ((IMG_INT32)ui32tSAD_ThresholdHi - (IMG_INT32)ui32tSAD_Threshold); in tng__calc_air_inp_ctrl_buf()
799 … ctx->sAirInfo.i32SAD_Threshold *= ((IMG_INT32)ui32MaxMBs - (IMG_INT32)ui32NumMBsOverThreshold); in tng__calc_air_inp_ctrl_buf()
800 …ctx->sAirInfo.i32SAD_Threshold /= ((IMG_INT32)ui32NumMBsOverHi - (IMG_INT32)ui32NumMBsOverThreshol… in tng__calc_air_inp_ctrl_buf()
801 ctx->sAirInfo.i32SAD_Threshold += ui32tSAD_Threshold; in tng__calc_air_inp_ctrl_buf()
803 …ctx->sAirInfo.i32SAD_Threshold = ((IMG_INT32)ui32tSAD_Threshold - (IMG_INT32)ui32tSAD_ThresholdLo); in tng__calc_air_inp_ctrl_buf()
804 … ctx->sAirInfo.i32SAD_Threshold *= ((IMG_INT32)ui32MaxMBs - (IMG_INT32)ui32NumMBsOverLo); in tng__calc_air_inp_ctrl_buf()
805 …ctx->sAirInfo.i32SAD_Threshold /= ((IMG_INT32)ui32NumMBsOverThreshold - (IMG_INT32)ui32NumMBsOverL… in tng__calc_air_inp_ctrl_buf()
806 ctx->sAirInfo.i32SAD_Threshold += ui32tSAD_ThresholdLo; in tng__calc_air_inp_ctrl_buf()
808 ctx->sAirInfo.i32SAD_Threshold = -ctx->sAirInfo.i32SAD_Threshold - 1; in tng__calc_air_inp_ctrl_buf()
813 …fp,"Target No. MB's:%i\nThreshold adjusted to: %i\n",ui32MaxMBs, -(ctx->sAirInfo.i32SAD_Threshold)… in tng__calc_air_inp_ctrl_buf()