Lines Matching refs:BUSize
1115 unsigned int old_busize = ctx->sRCParams.BUSize;
1122 if (ctx->sRCParams.BUSize != 0) { /* application provided BUSize */
1138 if (ctx->sRCParams.BUSize < 6) {
1140 ctx->sRCParams.BUSize = 0; /* need repatch */;
1142 if (ctx->sRCParams.BUSize > MBsperSlice) {
1144 ctx->sRCParams.BUSize = 0; /* need repatch */;
1146 if (ctx->sRCParams.BUSize > MBsLastSlice) {
1148 ctx->sRCParams.BUSize = 0; /* need repatch */;
1151 if (ctx->sRCParams.BUSize != 0) {
1152 BUs = MBsperSlice / ctx->sRCParams.BUSize;
1153 if ((BUs * ctx->sRCParams.BUSize) != MBsperSlice) {
1155 ctx->sRCParams.BUSize = 0; /* need repatch */;
1158 if (ctx->sRCParams.BUSize != 0) {
1159 BUs = MBsLastSlice / ctx->sRCParams.BUSize;
1160 if ((BUs * ctx->sRCParams.BUSize) != MBsLastSlice) {
1162 ctx->sRCParams.BUSize = 0; /* need repatch */;
1166 if (ctx->sRCParams.BUSize != 0) {
1170 MaxBUsPerPipe = (MaxMBsPerPipe + ctx->sRCParams.BUSize - 1) / ctx->sRCParams.BUSize;
1173 ctx->sRCParams.BUSize = 0; /* need repatch */;
1178 if (ctx->sRCParams.BUSize == 0) {
1183 IMG_UINT32 BUSize = 6;
1197 MaxBUsPerPipe = (MaxMBsPerPipe + BUSize - 1) / BUSize;
1200 BUSize++;
1201 MaxBUsPerPipe = (MaxMBsPerPipe + BUSize - 1) / BUSize;
1205 BUsperSlice = MBsperSlice / BUSize;
1206 BUsLastSlice = MBsLastSlice / BUSize;
1207 while ((BUsperSlice*BUSize != MBsperSlice) ||
1208 (BUsLastSlice*BUSize != MBsLastSlice)) {
1209 BUSize++;
1210 BUsperSlice = MBsperSlice / BUSize;
1211 BUsLastSlice = MBsLastSlice / BUSize;
1214 ctx->sRCParams.BUSize = BUSize;
1221 if (ctx->sRCParams.BUSize != old_busize)
1222 drv_debug_msg(VIDEO_DEBUG_GENERAL, "Patched Basic unit to %d (original=%d)\n", ctx->sRCParams.BUSize, old_busize);
1248 psPicParams->sInParams.BitsPerMB = psPicParams->sInParams.BitsPerBU / psRCParams->BUSize;
1542 psPicParams->sInParams.MBPerBU = psRCParams->BUSize;
1544 psPicParams->sInParams.BUPerFrm = (psPicParams->sInParams.MBPerFrm) / psRCParams->BUSize;