Lines Matching refs:sRCParams

633     ctx->sRCParams.bBitrateChanged = IMG_FALSE;  in pnw_BeginPicture()
674 if (ctx->sRCParams.RCEnable) { in pnw_set_bias()
675 flBpp = 1.0 * ctx->sRCParams.BitsPerSecond / in pnw_set_bias()
676 (ctx->sRCParams.FrameRate * ctx->Width * ctx->Height); in pnw_set_bias()
693 LoadH264Bias(cmdbuf, core, THSkip, ctx->sRCParams.QCPOffset); in pnw_set_bias()
800 psPicParams->NumSlices = ctx->sRCParams.Slices; in pnw_RenderPictureParameter()
856 if (ctx->sRCParams.RCEnable) { in pnw_RenderPictureParameter()
857 if (ctx->sRCParams.bDisableFrameSkipping) { in pnw_RenderPictureParameter()
862 if (ctx->sRCParams.bDisableBitStuffing && IS_H264_ENC(ctx->eCodec)) { in pnw_RenderPictureParameter()
872 && ctx->in_params_cache.IntraPeriod != ctx->sRCParams.IntraFreq) { in pnw_RenderPictureParameter()
876 ctx->sRCParams.IntraFreq); in pnw_RenderPictureParameter()
877 ctx->in_params_cache.IntraPeriod = ctx->sRCParams.IntraFreq; in pnw_RenderPictureParameter()
879 (ctx->sRCParams.BitsPerSecond / ctx->sRCParams.FrameRate) in pnw_RenderPictureParameter()
880 * ctx->sRCParams.IntraFreq; in pnw_RenderPictureParameter()
891 psPicParams->sInParams.SeInitQP = ctx->sRCParams.InitialQp; in pnw_RenderPictureParameter()
952 origin_qp = ctx->sRCParams.InitialQp; in pnw_SetupRCParam()
955 pnw__setup_rcdata(ctx, psPicParams, &ctx->sRCParams); in pnw_SetupRCParam()
958 ctx->sRCParams.InitialQp = origin_qp; in pnw_SetupRCParam()
986 if (ctx->sRCParams.RCEnable) { in pnw_EndPicture()
989 else if (ctx->sRCParams.bBitrateChanged) { in pnw_EndPicture()
992 val = ~(ctx->sRCParams.BitsPerSecond & 0x1); in pnw_EndPicture()
993 ctx->sRCParams.BitsPerSecond &= ~1; in pnw_EndPicture()
994 ctx->sRCParams.BitsPerSecond |= (val & 1); in pnw_EndPicture()
997 "update the rc data accordingly\n", ctx->sRCParams.BitsPerSecond); in pnw_EndPicture()
998 pnw__update_rcdata(ctx, psPicParams, &ctx->sRCParams); in pnw_EndPicture()
999 if (ctx->sRCParams.MinQP) in pnw_EndPicture()
1000 psPicParams->sInParams.MinQPVal = ctx->sRCParams.MinQP; in pnw_EndPicture()
1115 unsigned int old_busize = ctx->sRCParams.BUSize; in pnw__setup_busize()
1122 if (ctx->sRCParams.BUSize != 0) { /* application provided BUSize */ in pnw__setup_busize()
1138 if (ctx->sRCParams.BUSize < 6) { in pnw__setup_busize()
1140 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1142 if (ctx->sRCParams.BUSize > MBsperSlice) { in pnw__setup_busize()
1144 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1146 if (ctx->sRCParams.BUSize > MBsLastSlice) { in pnw__setup_busize()
1148 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1151 if (ctx->sRCParams.BUSize != 0) { in pnw__setup_busize()
1152 BUs = MBsperSlice / ctx->sRCParams.BUSize; in pnw__setup_busize()
1153 if ((BUs * ctx->sRCParams.BUSize) != MBsperSlice) { in pnw__setup_busize()
1155 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1158 if (ctx->sRCParams.BUSize != 0) { in pnw__setup_busize()
1159 BUs = MBsLastSlice / ctx->sRCParams.BUSize; in pnw__setup_busize()
1160 if ((BUs * ctx->sRCParams.BUSize) != MBsLastSlice) { in pnw__setup_busize()
1162 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1166 if (ctx->sRCParams.BUSize != 0) { in pnw__setup_busize()
1170 MaxBUsPerPipe = (MaxMBsPerPipe + ctx->sRCParams.BUSize - 1) / ctx->sRCParams.BUSize; in pnw__setup_busize()
1173 ctx->sRCParams.BUSize = 0; /* need repatch */; in pnw__setup_busize()
1178 if (ctx->sRCParams.BUSize == 0) { in pnw__setup_busize()
1214 ctx->sRCParams.BUSize = BUSize; in pnw__setup_busize()
1221 if (ctx->sRCParams.BUSize != old_busize) in pnw__setup_busize()
1222 …g(VIDEO_DEBUG_GENERAL, "Patched Basic unit to %d (original=%d)\n", ctx->sRCParams.BUSize, old_busi… in pnw__setup_busize()