Lines Matching refs:BUSize
687 unsigned int old_busize = ctx->sRCParams.BUSize;
693 if (ctx->sRCParams.BUSize != 0) { /* application provided BUSize */
708 if (ctx->sRCParams.BUSize < 6) {
710 ctx->sRCParams.BUSize = 0; /* need repatch */;
712 if (ctx->sRCParams.BUSize > MBsperSlice) {
714 ctx->sRCParams.BUSize = 0; /* need repatch */;
716 if (ctx->sRCParams.BUSize > MBsLastSlice) {
718 ctx->sRCParams.BUSize = 0; /* need repatch */;
720 BUs = MBsperSlice / ctx->sRCParams.BUSize;
721 if ((BUs * ctx->sRCParams.BUSize) != MBsperSlice) {
723 ctx->sRCParams.BUSize = 0; /* need repatch */;
727 ctx->sRCParams.BUSize = 0; /* need repatch */;
729 BUs = MBsLastSlice / ctx->sRCParams.BUSize;
732 ctx->sRCParams.BUSize = 0; /* need repatch */;
736 if (ctx->sRCParams.BUSize == 0) {
751 if (ctx->sRCParams.BUSize < 6) {
752 ctx->sRCParams.BUSize = 6;
755 BUs = MBs / ctx->sRCParams.BUSize;
756 while (BUs*ctx->sRCParams.BUSize != MBs) {
757 ctx->sRCParams.BUSize++;
758 BUs = MBs / ctx->sRCParams.BUSize;
762 BUsperSlice = MBsperSlice / ctx->sRCParams.BUSize;
763 BUsLastSlice = MBsLastSlice / ctx->sRCParams.BUSize;
765 ctx->sRCParams.BUSize++;
766 BUsperSlice = MBsperSlice / ctx->sRCParams.BUSize;
767 BUsLastSlice = MBsLastSlice / ctx->sRCParams.BUSize;
771 BUsperSlice = MBsperSlice / ctx->sRCParams.BUSize;
772 BUsLastSlice = MBsLastSlice / ctx->sRCParams.BUSize;
773 while ((BUsperSlice*ctx->sRCParams.BUSize != MBsperSlice) ||
774 (BUsLastSlice*ctx->sRCParams.BUSize != MBsLastSlice)) {
775 ctx->sRCParams.BUSize++;
776 BUsperSlice = MBsperSlice / ctx->sRCParams.BUSize;
777 BUsLastSlice = MBsLastSlice / ctx->sRCParams.BUSize;
780 if (ctx->sRCParams.BUSize != old_busize)
781 drv_debug_msg(VIDEO_DEBUG_GENERAL, "Patched Basic unit to %d (original=%d)\n", ctx->sRCParams.BUSize, old_busize);
826 psPicParams->sInParams.MBPerBU = psRCParams->BUSize;
828 psPicParams->sInParams.BUPerFrm = (psPicParams->sInParams.MBPerFrm) / psRCParams->BUSize;
866 BUSize;