• Home
  • Raw
  • Download

Lines Matching refs:psMtxEncContext

2592     IMG_MTX_VIDEO_CONTEXT* psMtxEncContext = NULL;  in tng__setvideo_params()  local
2608 psMtxEncContext = (IMG_MTX_VIDEO_CONTEXT*)(ps_mem->bufs_mtx_context.virtual_addr); in tng__setvideo_params()
2614 psMtxEncContext->ui32InitialQp = ctx->sRCParams.ui32InitialQp; in tng__setvideo_params()
2615 psMtxEncContext->ui32BUSize = ctx->sRCParams.ui32BUSize; in tng__setvideo_params()
2616psMtxEncContext->ui16CQPOffset = (ctx->sRCParams.i8QCPOffset & 0x1f) | ((ctx->sRCParams.i8QCPOffse… in tng__setvideo_params()
2617 psMtxEncContext->eStandard = ctx->eStandard; in tng__setvideo_params()
2618 psMtxEncContext->ui32WidthInMbs = ctx->ui16Width >> 4; in tng__setvideo_params()
2619 psMtxEncContext->ui32PictureHeightInMbs = ctx->ui16PictureHeight >> 4; in tng__setvideo_params()
2620 psMtxEncContext->bOutputReconstructed = (ps_buf->rec_surface != NULL) ? IMG_TRUE : IMG_FALSE; in tng__setvideo_params()
2621 psMtxEncContext->ui32VopTimeResolution = ctx->ui32VopTimeResolution; in tng__setvideo_params()
2622 psMtxEncContext->ui8MaxSlicesPerPicture = ctx->ui8SlicesPerPicture; in tng__setvideo_params()
2623 psMtxEncContext->ui8NumPipes = ctx->ui8PipesToUse; in tng__setvideo_params()
2624 psMtxEncContext->eFormat = ctx->eFormat; in tng__setvideo_params()
2626 psMtxEncContext->b8IsInterlaced = ctx->bIsInterlaced; in tng__setvideo_params()
2627 psMtxEncContext->b8TopFieldFirst = ctx->bTopFieldFirst; in tng__setvideo_params()
2628 psMtxEncContext->b8ArbitrarySO = ctx->bArbitrarySO; in tng__setvideo_params()
2630 psMtxEncContext->ui32IdrPeriod = ctx->ui32IdrPeriod * ctx->ui32IntraCnt; in tng__setvideo_params()
2631 psMtxEncContext->ui32BFrameCount = ctx->sRCParams.ui16BFrames; in tng__setvideo_params()
2632 psMtxEncContext->b8Hierarchical = (IMG_BOOL8) ctx->sRCParams.b16Hierarchical; in tng__setvideo_params()
2633 psMtxEncContext->ui32IntraLoopCnt = ctx->ui32IntraCnt; in tng__setvideo_params()
2634 psMtxEncContext->ui8RefSpacing = ctx->ui8RefSpacing; in tng__setvideo_params()
2635 psMtxEncContext->ui32DebugCRCs = ctx->ui32DebugCRCs; in tng__setvideo_params()
2637 psMtxEncContext->ui8FirstPipe = ctx->ui8BasePipe; in tng__setvideo_params()
2638 psMtxEncContext->ui8LastPipe = ctx->ui8BasePipe + ctx->ui8PipesToUse - 1; in tng__setvideo_params()
2639 psMtxEncContext->ui8PipesToUseFlags = 0; in tng__setvideo_params()
2640 ui8Flag = 0x1 << psMtxEncContext->ui8FirstPipe; in tng__setvideo_params()
2641 for (nIndex = 0; nIndex < psMtxEncContext->ui8NumPipes; nIndex++, ui8Flag<<=1) in tng__setvideo_params()
2642psMtxEncContext->ui8PipesToUseFlags |= ui8Flag; //Pipes used MUST be contiguous from the BasePipe … in tng__setvideo_params()
2646 psMtxEncContext->ui8MPEG2IntraDCPrecision = ctx->ui8MPEG2IntraDCPrecision; in tng__setvideo_params()
2648 psMtxEncContext->b16EnableMvc = ctx->bEnableMVC; in tng__setvideo_params()
2649 psMtxEncContext->ui16MvcViewIdx = ctx->ui16MVCViewIdx; in tng__setvideo_params()
2651 psMtxEncContext->b16NoSequenceHeaders = ctx->bNoSequenceHeaders; in tng__setvideo_params()
2692psMtxEncContext->ui32PicRowStride = F_ENCODE(ui16SrcYStride >> 6, TOPAZHP_CR_CUR_PIC_LUMA_STRIDE) | in tng__setvideo_params()
2696 psMtxEncContext->eRCMode = ctx->sRCParams.eRCMode; in tng__setvideo_params()
2697 psMtxEncContext->b8DisableBitStuffing = ctx->sRCParams.bDisableBitStuffing; in tng__setvideo_params()
2698 psMtxEncContext->b8FirstPic = IMG_TRUE; in tng__setvideo_params()
2701 psMtxEncContext->bCARC = ctx->sCARCParams.bCARC; in tng__setvideo_params()
2702 psMtxEncContext->iCARCBaseline = ctx->sCARCParams.i32CARCBaseline; in tng__setvideo_params()
2703 psMtxEncContext->uCARCThreshold = ctx->sCARCParams.ui32CARCThreshold; in tng__setvideo_params()
2704 psMtxEncContext->uCARCCutoff = ctx->sCARCParams.ui32CARCCutoff; in tng__setvideo_params()
2705 psMtxEncContext->uCARCNegRange = ctx->sCARCParams.ui32CARCNegRange; in tng__setvideo_params()
2706 psMtxEncContext->uCARCNegScale = ctx->sCARCParams.ui32CARCNegScale; in tng__setvideo_params()
2707 psMtxEncContext->uCARCPosRange = ctx->sCARCParams.ui32CARCPosRange; in tng__setvideo_params()
2708 psMtxEncContext->uCARCPosScale = ctx->sCARCParams.ui32CARCPosScale; in tng__setvideo_params()
2709 psMtxEncContext->uCARCShift = ctx->sCARCParams.ui32CARCShift; in tng__setvideo_params()
2710psMtxEncContext->ui32MVClip_Config = F_ENCODE(ctx->bNoOffscreenMv, TOPAZHP_CR_MVCALC_RESTRICT_PIC… in tng__setvideo_params()
2711 psMtxEncContext->ui32LRITC_Tile_Use_Config = 0; in tng__setvideo_params()
2712 psMtxEncContext->ui32LRITC_Cache_Chunk_Config = 0; in tng__setvideo_params()
2714psMtxEncContext->ui32IPCM_0_Config = F_ENCODE(ctx->ui32CabacBinFlex, TOPAZ_VLC_CR_CABAC_BIN_FLEX) | in tng__setvideo_params()
2717 psMtxEncContext->ui32IPCM_1_Config = F_ENCODE(3200, TOPAZ_VLC_CR_IPCM_THRESHOLD) | in tng__setvideo_params()
2721psMtxEncContext->ui32H264CompControl = F_ENCODE((ctx->bCabacEnabled ? 0 : 1), TOPAZHP_CR_H264COMP… in tng__setvideo_params()
2723psMtxEncContext->ui32H264CompControl |= F_ENCODE(ctx->bUseDefaultScalingList ? 1 : 0, TOPAZHP_CR_H… in tng__setvideo_params()
2725psMtxEncContext->ui32H264CompControl |= F_ENCODE(ctx->bH2648x8Transform ? 1 : 0, TOPAZHP_CR_H264CO… in tng__setvideo_params()
2727psMtxEncContext->ui32H264CompControl |= F_ENCODE(ctx->bH264IntraConstrained ? 1 : 0, TOPAZHP_CR_H2… in tng__setvideo_params()
2731 psMtxEncContext->bMCAdaptiveRoundingDisable = ctx->bVPAdaptiveRoundingDisable; in tng__setvideo_params()
2732psMtxEncContext->ui32H264CompControl |= F_ENCODE(psMtxEncContext->bMCAdaptiveRoundingDisable ? 0 :… in tng__setvideo_params()
2734 if (!psMtxEncContext->bMCAdaptiveRoundingDisable) in tng__setvideo_params()
2737 psMtxEncContext->ui16MCAdaptiveRoundingOffsets[j][i] = H264_ROUNDING_OFFSETS[j][i]; in tng__setvideo_params()
2741psMtxEncContext->ui32H264CompControl |= F_ENCODE(USE_VCM_HW_SUPPORT, TOPAZHP_CR_H264COMP_VIDEO_CON… in tng__setvideo_params()
2744 psMtxEncContext->ui32H264CompControl |= in tng__setvideo_params()
2754 psMtxEncContext->ui32H264CompControl |= in tng__setvideo_params()
2758 psMtxEncContext->ui32H264CompIntraPredModes = 0x3ffff;// leave at default for now. in tng__setvideo_params()
2759 psMtxEncContext->ui32PredCombControl = ctx->ui32PredCombControl; in tng__setvideo_params()
2760psMtxEncContext->ui32SkipCodedInterIntra = F_ENCODE(ctx->ui8InterIntraIndex, TOPAZHP_CR_INTER_INTR… in tng__setvideo_params()
2764 psMtxEncContext->ui32MBHostCtrl = F_ENCODE(ctx->bEnableHostQP, TOPAZHP_CR_MB_HOST_QP) in tng__setvideo_params()
2767 psMtxEncContext->ui32PredCombControl |= F_ENCODE(1, TOPAZHP_CR_INTER_INTRA_SCALE_ENABLE) in tng__setvideo_params()
2772 psMtxEncContext->ui32PredCombControl |= F_ENCODE(1, TOPAZHP_CR_CUMULATIVE_BIASES_ENABLE); in tng__setvideo_params()
2774 psMtxEncContext->ui32PredCombControl |= in tng__setvideo_params()
2780psMtxEncContext->ui32DeblockCtrl = F_ENCODE(ctx->ui8DeblockIDC, TOPAZ_DB_CR_DISABLE_DEBLOCK_IDC); in tng__setvideo_params()
2781 psMtxEncContext->ui32VLCControl = 0; in tng__setvideo_params()
2785psMtxEncContext->ui32VLCControl |= F_ENCODE(1, TOPAZ_VLC_CR_CODEC); // 1 for H.264 note this is in… in tng__setvideo_params()
2786 psMtxEncContext->ui32VLCControl |= F_ENCODE(0, TOPAZ_VLC_CR_CODEC_EXTEND); in tng__setvideo_params()
2790psMtxEncContext->ui32VLCControl |= F_ENCODE(3, TOPAZ_VLC_CR_CODEC); // 3 for H.263 note this is in… in tng__setvideo_params()
2791 psMtxEncContext->ui32VLCControl |= F_ENCODE(0, TOPAZ_VLC_CR_CODEC_EXTEND); in tng__setvideo_params()
2795psMtxEncContext->ui32VLCControl |= F_ENCODE(2, TOPAZ_VLC_CR_CODEC); // 2 for Mpeg4 note this is in… in tng__setvideo_params()
2796 psMtxEncContext->ui32VLCControl |= F_ENCODE(0, TOPAZ_VLC_CR_CODEC_EXTEND); in tng__setvideo_params()
2799 psMtxEncContext->ui32VLCControl |= F_ENCODE(0, TOPAZ_VLC_CR_CODEC); in tng__setvideo_params()
2800 psMtxEncContext->ui32VLCControl |= F_ENCODE(1, TOPAZ_VLC_CR_CODEC_EXTEND); in tng__setvideo_params()
2807psMtxEncContext->ui32VLCControl |= F_ENCODE(1, TOPAZ_VLC_CR_CABAC_ENABLE); // 2 for Mpeg4 note thi… in tng__setvideo_params()
2810psMtxEncContext->ui32VLCControl |= F_ENCODE(ctx->bIsInterlaced ? 1 : 0, TOPAZ_VLC_CR_VLC_FIELD_COD… in tng__setvideo_params()
2811psMtxEncContext->ui32VLCControl |= F_ENCODE(ctx->bH2648x8Transform ? 1 : 0, TOPAZ_VLC_CR_VLC_8X8_T… in tng__setvideo_params()
2812psMtxEncContext->ui32VLCControl |= F_ENCODE(ctx->bH264IntraConstrained ? 1 : 0, TOPAZ_VLC_CR_VLC_C… in tng__setvideo_params()
2814psMtxEncContext->ui32VLCSliceControl = F_ENCODE(ctx->sRCParams.ui32SliceByteLimit, TOPAZ_VLC_CR_SL… in tng__setvideo_params()
2815psMtxEncContext->ui32VLCSliceMBControl = F_ENCODE(ctx->sRCParams.ui32SliceMBLimit, TOPAZ_VLC_CR_SL… in tng__setvideo_params()
2829psMtxEncContext->ui32IPEVectorClipping = F_ENCODE(1, TOPAZHP_CR_IPE_VECTOR_CLIPPING_ENABLED) in tng__setvideo_params()
2834psMtxEncContext->ui32IPEVectorClipping = F_ENCODE(1, TOPAZHP_CR_IPE_VECTOR_CLIPPING_ENABLED) in tng__setvideo_params()
2838psMtxEncContext->ui32IPEVectorClipping = F_ENCODE(1, TOPAZHP_CR_IPE_VECTOR_CLIPPING_ENABLED) in tng__setvideo_params()
2844 psMtxEncContext->ui32IPEVectorClipping = in tng__setvideo_params()
2850psMtxEncContext->ui32SPEMvdClipRange = F_ENCODE(0, TOPAZHP_CR_SPE_MVD_CLIP_ENABLE); in tng__setvideo_params()
2855psMtxEncContext->ui32IPEVectorClipping = F_ENCODE(1, TOPAZHP_CR_IPE_VECTOR_CLIPPING_ENABLED) in tng__setvideo_params()
2859psMtxEncContext->ui32SPEMvdClipRange = F_ENCODE(1, TOPAZHP_CR_SPE_MVD_CLIP_ENABLE) in tng__setvideo_params()
2877psMtxEncContext->ui32IPEVectorClipping = F_ENCODE(1, TOPAZHP_CR_IPE_VECTOR_CLIPPING_ENABLED) in tng__setvideo_params()
2881psMtxEncContext->ui32SPEMvdClipRange = F_ENCODE(0, TOPAZHP_CR_SPE_MVD_CLIP_ENABLE); in tng__setvideo_params()
2894 psMtxEncContext->aui32DirectBias_P[n >> 1] = ctx->sBiasTables.aui32DirectBias_P[n]; in tng__setvideo_params()
2895 psMtxEncContext->aui32InterBias_P[n >> 1] = ctx->sBiasTables.aui32InterBias_P[n]; in tng__setvideo_params()
2896 psMtxEncContext->aui32DirectBias_B[n >> 1] = ctx->sBiasTables.aui32DirectBias_B[n]; in tng__setvideo_params()
2897 psMtxEncContext->aui32InterBias_B[n >> 1] = ctx->sBiasTables.aui32InterBias_B[n]; in tng__setvideo_params()
2903 tng__generate_scale_tables(psMtxEncContext); in tng__setvideo_params()
2908 psMtxEncContext->b8WeightedPredictionEnabled = ctx->bWeightedPrediction; in tng__setvideo_params()
2909 psMtxEncContext->ui8MTXWeightedImplicitBiPred = ctx->ui8VPWeightedImplicitBiPred; in tng__setvideo_params()
2912 psMtxEncContext->b8InsertHRDparams = ctx->bInsertHRDParams; in tng__setvideo_params()
2913 if (psMtxEncContext->b8InsertHRDparams & !ctx->sRCParams.ui32BitsPerSecond) { //ctx->uBitRate in tng__setvideo_params()
2915 psMtxEncContext->b8InsertHRDparams = IMG_FALSE; in tng__setvideo_params()
2917 if (psMtxEncContext->b8InsertHRDparams) { in tng__setvideo_params()
2918 psMtxEncContext->ui64ClockDivBitrate = (90000 * 0x100000000LL); in tng__setvideo_params()
2919psMtxEncContext->ui64ClockDivBitrate /= ctx->sRCParams.ui32BitsPerSecond; //… in tng__setvideo_params()
2920psMtxEncContext->ui32MaxBufferMultClockDivBitrate = (IMG_UINT32)(((IMG_UINT64)(ctx->sRCParams.ui32… in tng__setvideo_params()
2924 memcpy(&psMtxEncContext->sInParams, &ctx->sPicParams.sInParams, sizeof(IN_RC_PARAMS)); in tng__setvideo_params()
2932 psMtxEncContext->ui32LRITC_Cache_Chunk_Config = in tng__setvideo_params()
2939 psMtxEncContext->ui32FirstPicFlags = ctx->ui32FirstPicFlags; in tng__setvideo_params()
2940 psMtxEncContext->ui32NonFirstPicFlags = ctx->ui32NonFirstPicFlags; in tng__setvideo_params()
2943 psMtxEncContext->i8SliceHeaderSlotNum = -1; in tng__setvideo_params()
2947 memset(psMtxEncContext->aui8PicOnLevel, 0, sizeof(psMtxEncContext->aui8PicOnLevel)); in tng__setvideo_params()
2953 … tng__minigop_generate_flat(ps_mem->bufs_flat_gop.virtual_addr, psMtxEncContext->ui32BFrameCount, in tng__setvideo_params()
2954 psMtxEncContext->ui8RefSpacing, psMtxEncContext->aui8PicOnLevel); in tng__setvideo_params()
2958 memset(psMtxEncContext->aui8PicOnLevel, 0, sizeof(psMtxEncContext->aui8PicOnLevel)); in tng__setvideo_params()
2964 …tng_minigop_generate_hierarchical(ps_mem->bufs_hierar_gop.virtual_addr, psMtxEncContext->ui32BFram… in tng__setvideo_params()
2965 psMtxEncContext->ui8RefSpacing, psMtxEncContext->aui8PicOnLevel); in tng__setvideo_params()
2980psMtxEncContext->ui32ScalerInputSizeReg = F_ENCODE(psVideoParams->ui16SourceWidth - 1, TOPAZHP_EXT… in tng__setvideo_params()
2983psMtxEncContext->ui32ScalerCropReg = F_ENCODE(psVideoParams->ui8CropLeft, TOPAZHP_EXT_CR_SCALER_IN… in tng__setvideo_params()
2987 psMtxEncContext->ui32ScalerPitchReg = 0; in tng__setvideo_params()
2990psMtxEncContext->ui32ScalerPitchReg |= F_ENCODE(1, TOPAZHP_EXT_CR_SCALER_HOR_BILINEAR_FILTER); in tng__setvideo_params()
2999psMtxEncContext->ui32ScalerPitchReg |= F_ENCODE(1, TOPAZHP_EXT_CR_SCALER_VER_BILINEAR_FILTER); in tng__setvideo_params()
3007psMtxEncContext->ui32ScalerPitchReg |= F_ENCODE(ui32PitchX, TOPAZHP_EXT_CR_SCALER_INPUT_HOR_PITCH)… in tng__setvideo_params()
3015 psMtxEncContext->asHorScalerCoeffRegs[i32Phase] = 0; in tng__setvideo_params()
3017psMtxEncContext->asHorScalerCoeffRegs[i32Phase] |= F_ENCODE(sccCoeffs[3 - i32Tap][(i32Phase * 2) +… in tng__setvideo_params()
3024 psMtxEncContext->asVerScalerCoeffRegs[i32Phase] = 0; in tng__setvideo_params()
3026psMtxEncContext->asVerScalerCoeffRegs[i32Phase] |= F_ENCODE(sccCoeffs[3 - i32Tap][(i32Phase * 2) +… in tng__setvideo_params()
3031 psMtxEncContext->ui32ScalerInputSizeReg = 0; in tng__setvideo_params()
3047 IMG_MTX_VIDEO_CONTEXT* psMtxEncContext = NULL; in tng__setvideo_cmdbuf() local
3055 psMtxEncContext = (IMG_MTX_VIDEO_CONTEXT*)(ps_mem->bufs_mtx_context.virtual_addr); in tng__setvideo_cmdbuf()
3057 tng_cmdbuf_set_phys(&(psMtxEncContext->ui32MVSettingsBTable), 0, in tng__setvideo_cmdbuf()
3060 tng_cmdbuf_set_phys(&psMtxEncContext->ui32MVSettingsHierarchical, 0, in tng__setvideo_cmdbuf()
3063 tng_cmdbuf_set_phys(psMtxEncContext->apReconstructured, ctx->i32PicNodes, in tng__setvideo_cmdbuf()
3067 tng_cmdbuf_set_phys(&(psMtxEncContext->apReconstructured[i]), 0, in tng__setvideo_cmdbuf()
3072 tng_cmdbuf_set_phys(psMtxEncContext->apColocated, ctx->i32PicNodes, in tng__setvideo_cmdbuf()
3075 tng_cmdbuf_set_phys(psMtxEncContext->apMV, ctx->i32MVStores, in tng__setvideo_cmdbuf()
3079 tng_cmdbuf_set_phys(psMtxEncContext->apInterViewMV, 2, in tng__setvideo_cmdbuf()
3083 tng_cmdbuf_set_phys(psMtxEncContext->apWritebackRegions, WB_FIFO_SIZE, in tng__setvideo_cmdbuf()
3086 tng_cmdbuf_set_phys(psMtxEncContext->apAboveParams, (IMG_UINT32)(ctx->ui8PipesToUse), in tng__setvideo_cmdbuf()
3091 tng_cmdbuf_set_phys(&psMtxEncContext->pSEIBufferingPeriodTemplate, 0, in tng__setvideo_cmdbuf()
3093 tng_cmdbuf_set_phys(&psMtxEncContext->pSEIPictureTimingTemplate, 0, in tng__setvideo_cmdbuf()
3097 tng_cmdbuf_set_phys(psMtxEncContext->apSliceParamsTemplates, NUM_SLICE_TYPES, in tng__setvideo_cmdbuf()
3100 tng_cmdbuf_set_phys(psMtxEncContext->aui32SliceMap, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()
3105 tng_cmdbuf_set_phys(psMtxEncContext->aui32WeightedPredictionVirtAddr, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()
3109 tng_cmdbuf_set_phys(&psMtxEncContext->ui32FlatGopStruct, 0, &(ps_mem->bufs_flat_gop), 0, 0); in tng__setvideo_cmdbuf()
3110 if (psMtxEncContext->b8Hierarchical) in tng__setvideo_cmdbuf()
3111 … tng_cmdbuf_set_phys(&psMtxEncContext->ui32HierarGopStruct, 0, &(ps_mem->bufs_hierar_gop), 0, 0); in tng__setvideo_cmdbuf()
3114 tng_cmdbuf_set_phys(psMtxEncContext->aui32LTRefHeader, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()
3118 tng_cmdbuf_set_phys(psMtxEncContext->apPicHdrTemplates, 4, in tng__setvideo_cmdbuf()
3122 tng_cmdbuf_set_phys(&(psMtxEncContext->apSeqHeader), 0, in tng__setvideo_cmdbuf()
3125 tng_cmdbuf_set_phys(&(psMtxEncContext->apSubSetSeqHeader), 0, in tng__setvideo_cmdbuf()
3130 tng_cmdbuf_set_phys(psMtxEncContext->pFirstPassOutParamAddr, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()
3138 … tng_cmdbuf_set_phys(psMtxEncContext->pFirstPassOutBestMultipassParamAddr, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()
3145 tng_cmdbuf_set_phys(psMtxEncContext->pMBCtrlInParamsAddr, ctx->ui8SlotsInUse, in tng__setvideo_cmdbuf()