Lines Matching refs:mpp
1985 auto updatePreAssignDisplay = [=](ExynosMPP* mpp, const ExynosDisplay* mainDisp, in updatePreAssignDisplayList()
1987 if (mpp->mPreAssignDisplayInfo == HWC_RESERVE_DISPLAY_MAIN_BIT) { in updatePreAssignDisplayList()
1989 mpp->mPreAssignDisplayList[DISPLAY_MODE_PRIMARY_MAIN] = in updatePreAssignDisplayList()
1993 } else if (mpp->mPreAssignDisplayInfo == HWC_RESERVE_DISPLAY_MINOR_BIT) { in updatePreAssignDisplayList()
1995 mpp->mPreAssignDisplayList[DISPLAY_MODE_PRIMARY_MAIN] = in updatePreAssignDisplayList()
1998 mpp->mPreAssignDisplayList[DISPLAY_MODE_PRIMARY_MAIN] = in updatePreAssignDisplayList()
2005 for (auto& mpp : mOtfMPPs) { in updatePreAssignDisplayList() local
2006 updatePreAssignDisplay(mpp, mainDisp, minorDisp); in updatePreAssignDisplayList()
2008 for (auto& mpp : mM2mMPPs) { in updatePreAssignDisplayList() local
2009 updatePreAssignDisplay(mpp, mainDisp, minorDisp); in updatePreAssignDisplayList()
2210 void ExynosResourceManager::setFrameRateForPerformance(ExynosMPP &mpp, in setFrameRateForPerformance() argument
2213 int fps = ceil(msecsPerSec / mpp.mCapacity); in setFrameRateForPerformance()
2215 mpp.mName.c_str(), fps); in setFrameRateForPerformance()
2229 ExynosMPP *mpp = NULL; in deliverPerformanceInfo() local
2233 mpp = mM2mMPPs[i]; in deliverPerformanceInfo()
2234 if (mpp->mPhysicalType != mpp_physical_type) in deliverPerformanceInfo()
2240 if ((mpp->mPrevAssignedState & MPP_ASSIGN_STATE_ASSIGNED) || in deliverPerformanceInfo()
2241 (mpp->mAssignedState & MPP_ASSIGN_STATE_ASSIGNED)) in deliverPerformanceInfo()
2246 if (mpp->canSkipProcessing()) in deliverPerformanceInfo()
2249 if ((mpp->mAssignedDisplay != NULL) && in deliverPerformanceInfo()
2250 (mpp->mAssignedSources.size() > 0)) in deliverPerformanceInfo()
2265 mpp = mM2mMPPs[i]; in deliverPerformanceInfo()
2266 if ((mpp->mPhysicalType == mpp_physical_type) && in deliverPerformanceInfo()
2267 (mpp->mAssignedDisplay != NULL) && in deliverPerformanceInfo()
2268 (mpp->mAssignedSources.size() > 0)) in deliverPerformanceInfo()
2270 if (mpp->canSkipProcessing()) in deliverPerformanceInfo()
2277 if(frame->reset(mpp->mAssignedSources.size()) == false) { in deliverPerformanceInfo()
2278 … HWC_LOGE(NULL,"%d frame reset fail (%zu)", assignedInstanceIndex, mpp->mAssignedSources.size()); in deliverPerformanceInfo()
2281 setFrameRateForPerformance(*mpp, frame); in deliverPerformanceInfo()
2283 for (uint32_t j = 0; j < mpp->mAssignedSources.size(); j++) { in deliverPerformanceInfo()
2284 ExynosMPPSource* mppSource = mpp->mAssignedSources[j]; in deliverPerformanceInfo()
2306 uint32_t format = mpp->mAssignedSources[0]->mMidImg.format; in deliverPerformanceInfo()
2308 if (mpp->mNeedSolidColorLayer) { in deliverPerformanceInfo()
2313 frame->setTargetDimension(mpp->mAssignedDisplay->mXres, in deliverPerformanceInfo()
2314 mpp->mAssignedDisplay->mYres, format, hasSolidColorLayer); in deliverPerformanceInfo()
2319 if ((mpp = getExynosMPP(MPP_LOGICAL_G2D_RGB)) != NULL) in deliverPerformanceInfo()
2320 mpp->mAcrylicHandle->requestPerformanceQoS(&request); in deliverPerformanceInfo()
2331 float ExynosResourceManager::getResourceUsedCapa(ExynosMPP &mpp) in getResourceUsedCapa() argument
2334 if (mpp.mCapacity < 0) in getResourceUsedCapa()
2337 HDEBUGLOGD(eDebugResourceAssigning, "%s:: [%s][%d] mpp[%d, %d]", __func__, mpp.mName.c_str(), in getResourceUsedCapa()
2338 mpp.mLogicalIndex, mpp.mPhysicalType, mpp.mPhysicalIndex); in getResourceUsedCapa()
2340 if (mpp.mMPPType == MPP_TYPE_OTF) { in getResourceUsedCapa()
2342 if ((mpp.mPhysicalType == mOtfMPPs[i]->mPhysicalType) && in getResourceUsedCapa()
2343 (mpp.mPhysicalIndex == mOtfMPPs[i]->mPhysicalIndex)) { in getResourceUsedCapa()
2349 if ((mpp.mPhysicalType == mM2mMPPs[i]->mPhysicalType) && in getResourceUsedCapa()
2350 (mpp.mPhysicalIndex == mM2mMPPs[i]->mPhysicalIndex)) { in getResourceUsedCapa()
2356 HDEBUGLOGD(eDebugResourceAssigning, "\t[%s][%d] mpp usedCapa: %f", mpp.mName.c_str(), in getResourceUsedCapa()
2357 mpp.mLogicalIndex, usedCapa); in getResourceUsedCapa()
2387 auto mpp_compare = [=](ExynosMPP *mpp)->bool { in setScaleDownRatio() argument
2388 return ((mpp->mPhysicalType == physicalType) && in setScaleDownRatio()
2389 (mpp->mPhysicalIndex == physicalIndex) && in setScaleDownRatio()
2390 (mpp->mLogicalIndex == logicalIndex)); in setScaleDownRatio()
2715 for (auto mpp : mOtfMPPs) { in dump() local
2716 mpp->dump(result); in dump()
2718 for (auto mpp : mM2mMPPs) { in dump() local
2719 mpp->dump(result); in dump()