Lines Matching refs:layer
288 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local
291 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
292 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags()
297 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
375 hwc_layer_1_t const* layer = &list->hwLayers[i]; in isSameFrame() local
376 if(curFrame.isFBComposed[i] && layerUpdating(layer)){ in isSameFrame()
383 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument
384 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp()
385 if((has90Transform(layer) and (not isRotationDoable(ctx, hnd))) || in isSupportedForMDPComp()
386 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp()
394 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument
395 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension()
398 if (layer->flags & HWC_COLOR_FILL) { in isValidDimension()
407 if(!isSecureBuffer(hnd) && isNonIntegralSourceCrop(layer->sourceCropf)) in isValidDimension()
410 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension()
411 hwc_rect_t dst = layer->displayFrame; in isValidDimension()
412 bool rotated90 = (bool)(layer->transform & HAL_TRANSFORM_ROT_90); in isValidDimension()
521 hwc_rect_t MDPComp::calculateDirtyRect(const hwc_layer_1_t* layer, in calculateDirtyRect() argument
523 hwc_region_t surfDamage = layer->surfaceDamage; in calculateDirtyRect()
524 hwc_rect_t src = integerizeSourceCrop(layer->sourceCropf); in calculateDirtyRect()
525 hwc_rect_t dst = layer->displayFrame; in calculateDirtyRect()
533 dirtyRect = getIntersection(layer->displayFrame, scissor); in calculateDirtyRect()
570 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
571 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
580 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
588 if (layer->blending == HWC_BLENDING_NONE && in validateAndApplyROI()
589 layer->planeAlpha == 0xFF) in validateAndApplyROI()
610 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
611 if (layerUpdating(layer) || in generateROI()
612 isYuvBuffer((private_handle_t *)layer->handle)) { in generateROI()
613 hwc_rect_t dirtyRect = getIntersection(layer->displayFrame, in generateROI()
615 if(!needsScaling(layer) && !layer->transform) { in generateROI()
616 dirtyRect = calculateDirtyRect(layer, fullFrame); in generateROI()
675 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
676 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
688 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
694 if (layer->blending == HWC_BLENDING_NONE && in validateAndApplyROI()
695 layer->planeAlpha == 0xFF) { in validateAndApplyROI()
724 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
725 private_handle_t *hnd = (private_handle_t *)layer->handle; in generateROI()
727 if (layerUpdating(layer) || isYuvBuffer(hnd)) { in generateROI()
728 hwc_rect_t l_dirtyRect = getIntersection(layer->displayFrame, in generateROI()
730 hwc_rect_t r_dirtyRect = getIntersection(layer->displayFrame, in generateROI()
733 if(!needsScaling(layer) && !layer->transform) { in generateROI()
734 l_dirtyRect = calculateDirtyRect(layer, l_frame); in generateROI()
735 r_dirtyRect = calculateDirtyRect(layer, r_frame); in generateROI()
827 hwc_layer_1_t* layer = &list->hwLayers[i]; in tryFullFrame() local
828 private_handle_t *hnd = (private_handle_t *)layer->handle; in tryFullFrame()
830 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in tryFullFrame()
841 int transform = (layer->flags & HWC_COLOR_FILL) ? 0 : layer->transform; in tryFullFrame()
871 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPComp() local
873 not isSupportedForMDPComp(ctx, layer)) { in fullMDPComp()
926 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
927 if(not isSupportedForMDPComp(ctx, layer)) { in fullMDPCompWithPTOR()
947 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
948 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
949 hwc_rect_t dispFrame = layer->displayFrame; in fullMDPCompWithPTOR()
953 has90Transform(layer)) { in fullMDPCompWithPTOR()
964 hwc_layer_1_t* layer = &list->hwLayers[j]; in fullMDPCompWithPTOR() local
965 hwc_rect_t disFrame = layer->displayFrame; in fullMDPCompWithPTOR()
969 if (has90Transform(layer) || needsScaling(layer)) { in fullMDPCompWithPTOR()
993 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
994 displayFrame[i] = layer->displayFrame; in fullMDPCompWithPTOR()
995 sourceCrop[i] = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
1039 hwc_layer_1_t* layer = &list->hwLayers[index]; in fullMDPCompWithPTOR() local
1040 layer->sourceCropf.left = (float)ctx->mPtorInfo.displayFrame[j].left; in fullMDPCompWithPTOR()
1041 layer->sourceCropf.top = (float)ctx->mPtorInfo.displayFrame[j].top; in fullMDPCompWithPTOR()
1042 layer->sourceCropf.right = (float)ctx->mPtorInfo.displayFrame[j].right; in fullMDPCompWithPTOR()
1043 layer->sourceCropf.bottom =(float)ctx->mPtorInfo.displayFrame[j].bottom; in fullMDPCompWithPTOR()
1046 private_handle_t *hnd = (private_handle_t *)layer->handle; in fullMDPCompWithPTOR()
1054 blending[j] = layer->blending; in fullMDPCompWithPTOR()
1055 planeAlpha[j] = layer->planeAlpha; in fullMDPCompWithPTOR()
1056 transform[j] = layer->transform; in fullMDPCompWithPTOR()
1057 layer->blending = HWC_BLENDING_NONE; in fullMDPCompWithPTOR()
1058 layer->planeAlpha = 0xFF; in fullMDPCompWithPTOR()
1059 layer->transform = 0; in fullMDPCompWithPTOR()
1063 layer = &list->hwLayers[i]; in fullMDPCompWithPTOR()
1064 if(!isValidRect(getIntersection(layer->displayFrame, in fullMDPCompWithPTOR()
1069 hwc_rect_t srcCrop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
1070 hwc_rect_t destRect = deductRect(layer->displayFrame, in fullMDPCompWithPTOR()
1071 getIntersection(layer->displayFrame, overlapRect[j])); in fullMDPCompWithPTOR()
1072 qhwc::calculate_crop_rects(srcCrop, layer->displayFrame, destRect, in fullMDPCompWithPTOR()
1073 layer->transform); in fullMDPCompWithPTOR()
1074 layer->sourceCropf.left = (float)srcCrop.left; in fullMDPCompWithPTOR()
1075 layer->sourceCropf.top = (float)srcCrop.top; in fullMDPCompWithPTOR()
1076 layer->sourceCropf.right = (float)srcCrop.right; in fullMDPCompWithPTOR()
1077 layer->sourceCropf.bottom = (float)srcCrop.bottom; in fullMDPCompWithPTOR()
1098 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
1099 layer->displayFrame = displayFrame[i]; in fullMDPCompWithPTOR()
1100 layer->sourceCropf.left = (float)sourceCrop[i].left; in fullMDPCompWithPTOR()
1101 layer->sourceCropf.top = (float)sourceCrop[i].top; in fullMDPCompWithPTOR()
1102 layer->sourceCropf.right = (float)sourceCrop[i].right; in fullMDPCompWithPTOR()
1103 layer->sourceCropf.bottom = (float)sourceCrop[i].bottom; in fullMDPCompWithPTOR()
1109 hwc_layer_1_t* layer = &list->hwLayers[idx]; in fullMDPCompWithPTOR() local
1114 layer->blending = blending[i]; in fullMDPCompWithPTOR()
1115 layer->planeAlpha = planeAlpha[i]; in fullMDPCompWithPTOR()
1116 layer->transform = transform[i]; in fullMDPCompWithPTOR()
1164 hwc_layer_1_t* layer = &list->hwLayers[i]; in cacheBasedComp() local
1165 if(not isSupportedForMDPComp(ctx, layer)) { in cacheBasedComp()
1226 hwc_layer_1_t* layer = &list->hwLayers[i]; in loadBasedComp() local
1227 if(not isSupportedForMDPComp(ctx, layer)) { in loadBasedComp()
1457 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isYUVDoable() argument
1458 if(isSkipLayer(layer)) { in isYUVDoable()
1463 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1468 if(isSecuring(ctx, layer)) { in isYUVDoable()
1473 if(!isValidDimension(ctx, layer)) { in isYUVDoable()
1479 if(layer->planeAlpha < 0xFF) { in isYUVDoable()
1490 bool MDPComp::isSecureRGBDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isSecureRGBDoable() argument
1491 if(isSkipLayer(layer)) { in isSecureRGBDoable()
1497 if(isSecuring(ctx, layer)) { in isSecureRGBDoable()
1502 if(not isSupportedForMDPComp(ctx, layer)) { in isSecureRGBDoable()
1648 hwc_layer_1_t* layer = &list->hwLayers[i]; in markLayersForCaching() local
1654 if(not isSupportedForMDPComp(ctx, layer)) { in markLayersForCaching()
1680 hwc_layer_1_t * layer = &list->hwLayers[i]; in updateLayerCache() local
1681 if (!layerUpdating(layer)) { in updateLayerCache()
1702 hwc_layer_1_t * layer = &list->hwLayers[i]; in dropNonAIVLayers() local
1703 if(!(isAIVVideoLayer(layer) || isAIVCCLayer(layer))) { in dropNonAIVLayers()
1721 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in updateYUV() local
1727 if(!isYUVDoable(ctx, layer)) { in updateYUV()
1734 private_handle_t *hnd = (private_handle_t *)layer->handle; in updateYUV()
1752 hwc_layer_1_t* layer = &list->hwLayers[nSecureRGBIndex]; in updateSecureRGB() local
1754 if(!isSecureRGBDoable(ctx, layer)) { in updateSecureRGB()
1780 hwc_layer_1_t* layer = &list->hwLayers[i]; in getUpdatingFBRect() local
1781 hwc_rect_t dst = layer->displayFrame; in getUpdatingFBRect()
1826 hwc_layer_1_t* layer = &list->hwLayers[index]; in postHeuristicsHandling() local
1835 private_handle_t *hnd = (private_handle_t *)layer->handle; in postHeuristicsHandling()
1837 if(configure4k2kYuv(ctx, layer, in postHeuristicsHandling()
1849 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){ in postHeuristicsHandling()
1887 hwc_layer_1_t* layer = &list->hwLayers[index]; in resourceCheck() local
1888 private_handle_t *hnd = (private_handle_t *)layer->handle; in resourceCheck()
1889 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in resourceCheck()
2163 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
2164 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
2181 int MDPCompNonSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2190 __FUNCTION__, layer, zOrder, dest); in configure()
2192 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, dest, in configure()
2202 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
2203 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
2219 pipeSpecs.needsScaling = qhwc::needsScaling(layer) or in allocLayerPipes()
2236 int MDPCompNonSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
2245 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2269 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
2270 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
2272 if (!(layer->flags & HWC_COLOR_FILL)) { in draw()
2300 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2311 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2342 using pipe: %d", __FUNCTION__, layer, in draw()
2380 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
2381 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
2383 hwc_rect_t dst = layer->displayFrame; in adjustForSourceSplit()
2396 bool MDPCompSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2400 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2401 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2408 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2439 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
2440 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
2441 hwc_rect_t dst = layer->displayFrame; in allocLayerPipes()
2456 if(!acquireMDPPipes(ctx, layer, pipe_info)) { in allocLayerPipes()
2465 int MDPCompSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
2468 hwc_rect_t dst = layer->displayFrame; in configure4k2kYuv()
2477 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2481 return configure(ctx, layer, PipeLayerPair); in configure4k2kYuv()
2488 int MDPCompSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2498 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest); in configure()
2500 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, lDest, in configure()
2524 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
2525 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
2554 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2565 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2605 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2617 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2646 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
2647 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
2656 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
2664 if (layer->blending == HWC_BLENDING_NONE && in validateAndApplyROI()
2665 layer->planeAlpha == 0xFF) in validateAndApplyROI()
2689 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
2692 if(!isYuvBuffer((private_handle_t *)layer->handle) && layer->transform) in generateROI()
2695 if (layerUpdating(layer) || in generateROI()
2696 isYuvBuffer((private_handle_t *)layer->handle)) { in generateROI()
2697 hwc_rect_t dirtyRect = getIntersection(layer->displayFrame, in generateROI()
2699 if (!needsScaling(layer) && !layer->transform) { in generateROI()
2700 dirtyRect = calculateDirtyRect(layer, fullFrame); in generateROI()
2747 bool MDPCompSrcSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2749 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2750 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2751 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in acquireMDPPipes()
2765 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in acquireMDPPipes()
2789 uint32_t cropWidth = has90Transform(layer) ? crop.bottom - crop.top : in acquireMDPPipes()
2791 uint32_t cropHeight = has90Transform(layer) ? crop.right - crop.left : in acquireMDPPipes()
2798 const uint32_t downscale = getRotDownscale(ctx, layer); in acquireMDPPipes()
2822 int MDPCompSrcSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2824 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
2836 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configure()
2837 hwc_rect_t dst = layer->displayFrame; in configure()
2838 int transform = layer->transform; in configure()
2845 "dest_pipeR: %d",__FUNCTION__, layer, z, lDest, rDest); in configure()
2859 if (layer->flags & HWC_FORMAT_RB_SWAP) { in configure()
2873 int downscale = getRotDownscale(ctx, layer); in configure()
2875 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); in configure()
2882 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) { in configure()
2885 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()
2938 static_cast<eRotFlags>(rotFlags), layer->planeAlpha, in configure()
2939 (ovutils::eBlending) getBlending(layer->blending)); in configure()
2952 layer->planeAlpha, in configure()
2953 (ovutils::eBlending) getBlending(layer->blending)); in configure()