Lines Matching refs:layer

264         hwc_layer_1_t* layer = &(list->hwLayers[index]);  in setMDPCompLayerFlags()  local
267 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
268 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags()
273 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
351 hwc_layer_1_t const* layer = &list->hwLayers[i]; in isSameFrame() local
352 if(curFrame.isFBComposed[i] && layerUpdating(layer)) { in isSameFrame()
371 hwc_layer_1_t const* layer = &list->hwLayers[i]; in isSameFrame() local
372 if(layerUpdating(layer)) in isSameFrame()
379 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument
380 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp()
381 if((has90Transform(layer) and (not isRotationDoable(ctx, hnd))) || in isSupportedForMDPComp()
382 (not isValidDimension(ctx,layer)) || in isSupportedForMDPComp()
383 isSkipLayer(layer)) { in isSupportedForMDPComp()
390 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument
391 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension()
394 if (layer->flags & HWC_COLOR_FILL) { in isValidDimension()
403 if(!isSecureBuffer(hnd) && isNonIntegralSourceCrop(layer->sourceCropf)) in isValidDimension()
406 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension()
407 hwc_rect_t dst = layer->displayFrame; in isValidDimension()
408 bool rotated90 = (bool)(layer->transform & HAL_TRANSFORM_ROT_90); in isValidDimension()
538 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
539 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
548 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
556 if (layer->blending == HWC_BLENDING_NONE && in validateAndApplyROI()
557 layer->planeAlpha == 0xFF) in validateAndApplyROI()
578 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
579 if (layerUpdating(layer) || in generateROI()
580 isYuvBuffer((private_handle_t *)layer->handle)) { in generateROI()
582 if(!needsScaling(layer) && !layer->transform && in generateROI()
583 (!isYuvBuffer((private_handle_t *)layer->handle))) in generateROI()
585 dirtyRect = calculateDirtyRect(layer, fullFrame); in generateROI()
638 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
639 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
651 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
657 if (layer->blending == HWC_BLENDING_NONE && in validateAndApplyROI()
658 layer->planeAlpha == 0xFF) { in validateAndApplyROI()
687 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
688 private_handle_t *hnd = (private_handle_t *)layer->handle; in generateROI()
689 if (layerUpdating(layer) || isYuvBuffer(hnd)) { in generateROI()
692 if(!needsScaling(layer) && !layer->transform) in generateROI()
694 l_dirtyRect = calculateDirtyRect(layer, l_frame); in generateROI()
695 r_dirtyRect = calculateDirtyRect(layer, r_frame); in generateROI()
801 hwc_layer_1_t* layer = &list->hwLayers[i]; in tryFullFrame() local
802 private_handle_t *hnd = (private_handle_t *)layer->handle; in tryFullFrame()
804 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in tryFullFrame()
814 int transform = (layer->flags & HWC_COLOR_FILL) ? 0 : layer->transform; in tryFullFrame()
851 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPComp() local
853 not isSupportedForMDPComp(ctx, layer)) { in fullMDPComp()
915 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
916 if(not isSupportedForMDPComp(ctx, layer)) { in fullMDPCompWithPTOR()
945 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
946 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
947 hwc_rect_t dispFrame = layer->displayFrame; in fullMDPCompWithPTOR()
951 has90Transform(layer)) { in fullMDPCompWithPTOR()
962 hwc_layer_1_t* layer = &list->hwLayers[j]; in fullMDPCompWithPTOR() local
963 hwc_rect_t disFrame = layer->displayFrame; in fullMDPCompWithPTOR()
967 if (has90Transform(layer) || needsScaling(layer)) { in fullMDPCompWithPTOR()
991 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
992 displayFrame[i] = layer->displayFrame; in fullMDPCompWithPTOR()
993 sourceCrop[i] = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
1037 hwc_layer_1_t* layer = &list->hwLayers[index]; in fullMDPCompWithPTOR() local
1038 layer->sourceCropf.left = (float)ctx->mPtorInfo.displayFrame[j].left; in fullMDPCompWithPTOR()
1039 layer->sourceCropf.top = (float)ctx->mPtorInfo.displayFrame[j].top; in fullMDPCompWithPTOR()
1040 layer->sourceCropf.right = (float)ctx->mPtorInfo.displayFrame[j].right; in fullMDPCompWithPTOR()
1041 layer->sourceCropf.bottom =(float)ctx->mPtorInfo.displayFrame[j].bottom; in fullMDPCompWithPTOR()
1044 private_handle_t *hnd = (private_handle_t *)layer->handle; in fullMDPCompWithPTOR()
1052 blending[j] = layer->blending; in fullMDPCompWithPTOR()
1053 planeAlpha[j] = layer->planeAlpha; in fullMDPCompWithPTOR()
1054 transform[j] = layer->transform; in fullMDPCompWithPTOR()
1055 layer->blending = HWC_BLENDING_NONE; in fullMDPCompWithPTOR()
1056 layer->planeAlpha = 0xFF; in fullMDPCompWithPTOR()
1057 layer->transform = 0; in fullMDPCompWithPTOR()
1061 layer = &list->hwLayers[i]; in fullMDPCompWithPTOR()
1062 if(!isValidRect(getIntersection(layer->displayFrame, in fullMDPCompWithPTOR()
1067 hwc_rect_t srcCrop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
1068 hwc_rect_t destRect = deductRect(layer->displayFrame, in fullMDPCompWithPTOR()
1069 getIntersection(layer->displayFrame, overlapRect[j])); in fullMDPCompWithPTOR()
1070 qhwc::calculate_crop_rects(srcCrop, layer->displayFrame, destRect, in fullMDPCompWithPTOR()
1071 layer->transform); in fullMDPCompWithPTOR()
1072 layer->sourceCropf.left = (float)srcCrop.left; in fullMDPCompWithPTOR()
1073 layer->sourceCropf.top = (float)srcCrop.top; in fullMDPCompWithPTOR()
1074 layer->sourceCropf.right = (float)srcCrop.right; in fullMDPCompWithPTOR()
1075 layer->sourceCropf.bottom = (float)srcCrop.bottom; in fullMDPCompWithPTOR()
1096 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
1097 layer->displayFrame = displayFrame[i]; in fullMDPCompWithPTOR()
1098 layer->sourceCropf.left = (float)sourceCrop[i].left; in fullMDPCompWithPTOR()
1099 layer->sourceCropf.top = (float)sourceCrop[i].top; in fullMDPCompWithPTOR()
1100 layer->sourceCropf.right = (float)sourceCrop[i].right; in fullMDPCompWithPTOR()
1101 layer->sourceCropf.bottom = (float)sourceCrop[i].bottom; in fullMDPCompWithPTOR()
1107 hwc_layer_1_t* layer = &list->hwLayers[idx]; in fullMDPCompWithPTOR() local
1112 layer->blending = blending[i]; in fullMDPCompWithPTOR()
1113 layer->planeAlpha = planeAlpha[i]; in fullMDPCompWithPTOR()
1114 layer->transform = transform[i]; in fullMDPCompWithPTOR()
1163 hwc_layer_1_t* layer = &list->hwLayers[i]; in cacheBasedComp() local
1164 if(not isSupportedForMDPComp(ctx, layer)) { in cacheBasedComp()
1233 hwc_layer_1_t* layer = &list->hwLayers[i]; in loadBasedComp() local
1234 if(not isSupportedForMDPComp(ctx, layer)) { in loadBasedComp()
1432 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isYUVDoable() argument
1433 if(isSkipLayer(layer)) { in isYUVDoable()
1438 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1443 if(isSecuring(ctx, layer)) { in isYUVDoable()
1448 if(!isValidDimension(ctx, layer)) { in isYUVDoable()
1454 if(layer->planeAlpha < 0xFF) { in isYUVDoable()
1465 bool MDPComp::isSecureRGBDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isSecureRGBDoable() argument
1466 if(isSkipLayer(layer)) { in isSecureRGBDoable()
1472 if(isSecuring(ctx, layer)) { in isSecureRGBDoable()
1477 if(not isSupportedForMDPComp(ctx, layer)) { in isSecureRGBDoable()
1623 hwc_layer_1_t* layer = &list->hwLayers[i]; in markLayersForCaching() local
1629 if(not isSupportedForMDPComp(ctx, layer)) { in markLayersForCaching()
1655 hwc_layer_1_t * layer = &list->hwLayers[i]; in updateLayerCache() local
1656 if (!layerUpdating(layer)) { in updateLayerCache()
1677 hwc_layer_1_t * layer = &list->hwLayers[i]; in dropNonAIVLayers() local
1678 if(!(isAIVVideoLayer(layer) || isAIVCCLayer(layer))) { in dropNonAIVLayers()
1696 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in updateYUV() local
1702 if(!isYUVDoable(ctx, layer)) { in updateYUV()
1709 private_handle_t *hnd = (private_handle_t *)layer->handle; in updateYUV()
1727 hwc_layer_1_t* layer = &list->hwLayers[nSecureRGBIndex]; in updateSecureRGB() local
1729 if(!isSecureRGBDoable(ctx, layer)) { in updateSecureRGB()
1755 hwc_layer_1_t* layer = &list->hwLayers[i]; in getUpdatingFBRect() local
1756 hwc_rect_t dst = layer->displayFrame; in getUpdatingFBRect()
1801 hwc_layer_1_t* layer = &list->hwLayers[index]; in postHeuristicsHandling() local
1810 private_handle_t *hnd = (private_handle_t *)layer->handle; in postHeuristicsHandling()
1812 if(configure4k2kYuv(ctx, layer, in postHeuristicsHandling()
1824 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){ in postHeuristicsHandling()
1854 hwc_layer_1_t* layer = &list->hwLayers[index]; in resourceCheck() local
1855 private_handle_t *hnd = (private_handle_t *)layer->handle; in resourceCheck()
1856 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in resourceCheck()
2127 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
2128 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
2145 int MDPCompNonSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2154 __FUNCTION__, layer, zOrder, dest); in configure()
2156 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, dest, in configure()
2166 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
2167 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
2183 pipeSpecs.needsScaling = qhwc::needsScaling(layer) or in allocLayerPipes()
2200 int MDPCompNonSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
2209 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2228 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
2229 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
2231 if (!(layer->flags & HWC_COLOR_FILL)) { in draw()
2259 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2270 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2301 using pipe: %d", __FUNCTION__, layer, in draw()
2339 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
2340 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
2342 hwc_rect_t dst = layer->displayFrame; in adjustForSourceSplit()
2355 bool MDPCompSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2359 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2360 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2367 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2398 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
2399 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
2400 hwc_rect_t dst = layer->displayFrame; in allocLayerPipes()
2415 if(!acquireMDPPipes(ctx, layer, pipe_info)) { in allocLayerPipes()
2424 int MDPCompSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
2427 hwc_rect_t dst = layer->displayFrame; in configure4k2kYuv()
2436 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2440 return configure(ctx, layer, PipeLayerPair); in configure4k2kYuv()
2447 int MDPCompSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2457 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest); in configure()
2459 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, lDest, in configure()
2478 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
2479 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
2508 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2519 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2559 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2571 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2587 bool MDPCompSrcSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2589 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2590 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2591 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in acquireMDPPipes()
2602 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in acquireMDPPipes()
2625 int cropWidth = has90Transform(layer) ? crop.bottom - crop.top : in acquireMDPPipes()
2653 int MDPCompSrcSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2655 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
2667 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configure()
2668 hwc_rect_t dst = layer->displayFrame; in configure()
2669 int transform = layer->transform; in configure()
2676 "dest_pipeR: %d",__FUNCTION__, layer, z, lDest, rDest); in configure()
2679 if (layer->flags & HWC_FORMAT_RB_SWAP) { in configure()
2693 int downscale = getRotDownscale(ctx, layer); in configure()
2695 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); in configure()
2702 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) { in configure()
2705 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()
2757 static_cast<eRotFlags>(rotFlags), layer->planeAlpha, in configure()
2758 (ovutils::eBlending) getBlending(layer->blending)); in configure()
2771 layer->planeAlpha, in configure()
2772 (ovutils::eBlending) getBlending(layer->blending)); in configure()