Lines Matching refs:layer

222         hwc_layer_1_t* layer = &(list->hwLayers[index]);  in setMDPCompLayerFlags()  local
225 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
226 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags()
231 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
325 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument
326 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp()
327 if((has90Transform(layer) and (not isRotationDoable(ctx, hnd))) || in isSupportedForMDPComp()
328 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp()
336 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument
337 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension()
340 if (layer->flags & HWC_COLOR_FILL) { in isValidDimension()
349 if(!isSecureBuffer(hnd) && isNonIntegralSourceCrop(layer->sourceCropf)) in isValidDimension()
352 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension()
353 hwc_rect_t dst = layer->displayFrame; in isValidDimension()
354 bool rotated90 = (bool)(layer->transform & HAL_TRANSFORM_ROT_90); in isValidDimension()
469 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
470 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
479 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
487 if (layer->blending == HWC_BLENDING_NONE) in validateAndApplyROI()
508 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
509 if ((mCachedFrame.hnd[index] != layer->handle) || in generateROI()
510 isYuvBuffer((private_handle_t *)layer->handle)) { in generateROI()
511 hwc_rect_t dst = layer->displayFrame; in generateROI()
515 if(!needsScaling(layer) && !layer->transform) in generateROI()
517 hwc_rect_t src = integerizeSourceCrop(layer->sourceCropf); in generateROI()
520 updatingRect = moveRect(layer->dirtyRect, x_off, y_off); in generateROI()
574 const hwc_layer_1_t* layer = &list->hwLayers[i]; in validateAndApplyROI() local
575 hwc_rect_t dstRect = layer->displayFrame; in validateAndApplyROI()
587 if(!isSameRect(res, dstRect) && needsScaling (layer)) { in validateAndApplyROI()
593 if (layer->blending == HWC_BLENDING_NONE) { in validateAndApplyROI()
622 hwc_layer_1_t* layer = &list->hwLayers[index]; in generateROI() local
623 private_handle_t *hnd = (private_handle_t *)layer->handle; in generateROI()
624 if ((mCachedFrame.hnd[index] != layer->handle) || in generateROI()
626 hwc_rect_t dst = layer->displayFrame; in generateROI()
630 if(!needsScaling(layer) && !layer->transform) in generateROI()
632 hwc_rect_t src = integerizeSourceCrop(layer->sourceCropf); in generateROI()
635 updatingRect = moveRect(layer->dirtyRect, x_off, y_off); in generateROI()
719 hwc_layer_1_t* layer = &list->hwLayers[i]; in tryFullFrame() local
720 private_handle_t *hnd = (private_handle_t *)layer->handle; in tryFullFrame()
722 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in tryFullFrame()
734 (layer->transform & HWC_TRANSFORM_FLIP_H) && in tryFullFrame()
770 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPComp() local
772 not isSupportedForMDPComp(ctx, layer)) { in fullMDPComp()
825 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
826 if(not isSupportedForMDPComp(ctx, layer)) { in fullMDPCompWithPTOR()
846 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
847 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
848 hwc_rect_t dispFrame = layer->displayFrame; in fullMDPCompWithPTOR()
852 has90Transform(layer)) { in fullMDPCompWithPTOR()
864 hwc_layer_1_t* layer = &list->hwLayers[j]; in fullMDPCompWithPTOR() local
865 hwc_rect_t disFrame = layer->displayFrame; in fullMDPCompWithPTOR()
869 && (has90Transform(layer) || needsScaling(layer))) { in fullMDPCompWithPTOR()
909 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
910 displayFrame[i] = layer->displayFrame; in fullMDPCompWithPTOR()
911 sourceCrop[i] = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
918 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
919 if(!isValidRect(getIntersection(layer->displayFrame, in fullMDPCompWithPTOR()
924 hwc_rect_t srcCrop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR()
925 hwc_rect_t destRect = deductRect(layer->displayFrame, in fullMDPCompWithPTOR()
927 qhwc::calculate_crop_rects(srcCrop, layer->displayFrame, destRect, in fullMDPCompWithPTOR()
928 layer->transform); in fullMDPCompWithPTOR()
929 layer->sourceCropf.left = (float)srcCrop.left; in fullMDPCompWithPTOR()
930 layer->sourceCropf.top = (float)srcCrop.top; in fullMDPCompWithPTOR()
931 layer->sourceCropf.right = (float)srcCrop.right; in fullMDPCompWithPTOR()
932 layer->sourceCropf.bottom = (float)srcCrop.bottom; in fullMDPCompWithPTOR()
947 hwc_layer_1_t* layer = &list->hwLayers[i]; in fullMDPCompWithPTOR() local
948 layer->displayFrame = displayFrame[i]; in fullMDPCompWithPTOR()
949 layer->sourceCropf.left = (float)sourceCrop[i].left; in fullMDPCompWithPTOR()
950 layer->sourceCropf.top = (float)sourceCrop[i].top; in fullMDPCompWithPTOR()
951 layer->sourceCropf.right = (float)sourceCrop[i].right; in fullMDPCompWithPTOR()
952 layer->sourceCropf.bottom = (float)sourceCrop[i].bottom; in fullMDPCompWithPTOR()
1000 hwc_layer_1_t* layer = &list->hwLayers[i]; in cacheBasedComp() local
1001 if(not isSupportedForMDPComp(ctx, layer)) { in cacheBasedComp()
1068 hwc_layer_1_t* layer = &list->hwLayers[i]; in loadBasedComp() local
1069 if(not isSupportedForMDPComp(ctx, layer)) { in loadBasedComp()
1202 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isYUVDoable() argument
1203 if(isSkipLayer(layer)) { in isYUVDoable()
1208 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1213 if(isSecuring(ctx, layer)) { in isYUVDoable()
1218 if(!isValidDimension(ctx, layer)) { in isYUVDoable()
1224 if(layer->planeAlpha < 0xFF) { in isYUVDoable()
1372 hwc_layer_1_t* layer = &list->hwLayers[i]; in markLayersForCaching() local
1378 if(not isSupportedForMDPComp(ctx, layer)) { in markLayersForCaching()
1427 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in updateYUV() local
1429 if(!isYUVDoable(ctx, layer)) { in updateYUV()
1436 private_handle_t *hnd = (private_handle_t *)layer->handle; in updateYUV()
1458 hwc_layer_1_t* layer = &list->hwLayers[i]; in getUpdatingFBRect() local
1459 hwc_rect_t dst = layer->displayFrame; in getUpdatingFBRect()
1504 hwc_layer_1_t* layer = &list->hwLayers[index]; in postHeuristicsHandling() local
1513 private_handle_t *hnd = (private_handle_t *)layer->handle; in postHeuristicsHandling()
1515 if(configure4k2kYuv(ctx, layer, in postHeuristicsHandling()
1527 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){ in postHeuristicsHandling()
1557 hwc_layer_1_t* layer = &list->hwLayers[index]; in resourceCheck() local
1558 private_handle_t *hnd = (private_handle_t *)layer->handle; in resourceCheck()
1559 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in resourceCheck()
1762 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
1763 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
1780 int MDPCompNonSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
1790 __FUNCTION__, layer, zOrder, dest); in configure()
1792 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest, in configure()
1802 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
1803 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
1819 pipeSpecs.needsScaling = qhwc::needsScaling(layer) or in allocLayerPipes()
1836 int MDPCompNonSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
1846 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
1870 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
1871 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
1873 if (!(layer->flags & HWC_COLOR_FILL)) { in draw()
1901 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
1912 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
1944 using pipe: %d", __FUNCTION__, layer, in draw()
1982 hwc_layer_1_t* layer = &list->hwLayers[index]; in adjustForSourceSplit() local
1983 private_handle_t *hnd = (private_handle_t *)layer->handle; in adjustForSourceSplit()
1985 hwc_rect_t dst = layer->displayFrame; in adjustForSourceSplit()
1998 bool MDPCompSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2002 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2003 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2010 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2041 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
2042 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
2043 hwc_rect_t dst = layer->displayFrame; in allocLayerPipes()
2058 if(!acquireMDPPipes(ctx, layer, pipe_info)) { in allocLayerPipes()
2067 int MDPCompSplit::configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure4k2kYuv() argument
2070 hwc_rect_t dst = layer->displayFrame; in configure4k2kYuv()
2080 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
2084 return configure(ctx, layer, PipeLayerPair); in configure4k2kYuv()
2091 int MDPCompSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2102 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest); in configure()
2104 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest, in configure()
2128 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
2129 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
2158 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2169 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2209 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
2221 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()
2237 bool MDPCompSrcSplit::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
2239 private_handle_t *hnd = (private_handle_t *)layer->handle; in acquireMDPPipes()
2240 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
2241 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in acquireMDPPipes()
2252 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in acquireMDPPipes()
2297 int MDPCompSrcSplit::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
2299 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
2312 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configure()
2313 hwc_rect_t dst = layer->displayFrame; in configure()
2314 int transform = layer->transform; in configure()
2322 "dest_pipeR: %d",__FUNCTION__, layer, z, lDest, rDest); in configure()
2325 if (layer->flags & HWC_FORMAT_RB_SWAP) { in configure()
2333 setMdpFlags(ctx, layer, mdpFlags, 0, transform); in configure()
2340 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) { in configure()
2343 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()
2385 static_cast<eRotFlags>(rotFlags), layer->planeAlpha, in configure()
2386 (ovutils::eBlending) getBlending(layer->blending)); in configure()
2399 layer->planeAlpha, in configure()
2400 (ovutils::eBlending) getBlending(layer->blending)); in configure()