Lines Matching full:layer
685 bool isDownscaleRequired(hwc_layer_1_t const* layer) {
686 hwc_rect_t displayFrame = layer->displayFrame;
687 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
699 bool needsScaling(hwc_layer_1_t const* layer) {
701 hwc_rect_t displayFrame = layer->displayFrame;
702 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
715 // Checks if layer needs scaling with split
716 bool needsScalingWithSplit(hwc_context_t* ctx, hwc_layer_1_t const* layer,
727 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
728 hwc_rect_t displayFrame = layer->displayFrame;
729 private_handle_t *hnd = (private_handle_t *)layer->handle;
769 bool isAlphaScaled(hwc_layer_1_t const* layer) {
770 if(needsScaling(layer) && isAlphaPresent(layer)) {
776 bool isAlphaPresent(hwc_layer_1_t const* layer) {
777 private_handle_t *hnd = (private_handle_t *)layer->handle;
806 hwc_layer_1_t *layer = &list->hwLayers[i];
807 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
812 layer->sourceCropf.left = (float)crop.left;
813 layer->sourceCropf.right = (float)crop.right;
814 layer->sourceCropf.top = (float)crop.top;
815 layer->sourceCropf.bottom = (float)crop.bottom;
842 hwc_layer_1_t const* layer = &list->hwLayers[i];
843 private_handle_t *hnd = (private_handle_t *)layer->handle;
846 if (layer->flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
880 if(layer->blending == HWC_BLENDING_PREMULT)
932 bool isSecuring(hwc_context_t* ctx, hwc_layer_1_t const* layer) {
939 private_handle_t *hnd = (private_handle_t *)layer->handle;
1198 hwc_layer_1_t* layer = (hwc_layer_1_t*)&list->hwLayers[j];
1199 hwc_rect_t& bottomframe = layer->displayFrame;
1201 integerizeSourceCrop(layer->sourceCropf);
1202 int transform =layer->transform;
1211 //Update layer sourceCropf
1212 layer->sourceCropf.left =(float)bottomCrop.left;
1213 layer->sourceCropf.top = (float)bottomCrop.top;
1214 layer->sourceCropf.right = (float)bottomCrop.right;
1215 layer->sourceCropf.bottom = (float)bottomCrop.bottom;
1217 //Update layer dirtyRect
1218 layer->dirtyRect = getIntersection(bottomCrop,
1219 layer->dirtyRect);
1350 // if ABC is enabled for more than one layer.
1410 // Release all the app layer fds immediately,
1416 // & if it's a not VPU layer
1418 // if ABC is enabled for more than one layer
1461 void setMdpFlags(hwc_context_t *ctx, hwc_layer_1_t *layer,
1464 private_handle_t *hnd = (private_handle_t *)layer->handle;
1467 if(layer->blending == HWC_BLENDING_PREMULT) {
1493 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) {
1569 int configColorLayer(hwc_context_t *ctx, hwc_layer_1_t *layer,
1573 hwc_rect_t dst = layer->displayFrame;
1580 uint32_t color = layer->transform;
1584 if (layer->blending == HWC_BLENDING_PREMULT)
1588 layer->planeAlpha,
1589 (ovutils::eBlending) getBlending(layer->blending));
1591 // Configure MDP pipe for Color layer
1600 ALOGE("%s: Configure color layer failed!", __FUNCTION__);
1630 int configureNonSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
1634 private_handle_t *hnd = (private_handle_t *)layer->handle;
1637 if (layer->flags & HWC_COLOR_FILL) {
1638 // Configure Color layer
1639 return configColorLayer(ctx, layer, dpy, mdpFlags, z, isFg, dest);
1641 ALOGE("%s: layer handle is NULL", __FUNCTION__);
1647 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1648 hwc_rect_t dst = layer->displayFrame;
1649 int transform = layer->transform;
1657 if (layer->flags & HWC_FORMAT_RB_SWAP) {
1678 setMdpFlags(ctx, layer, mdpFlags, downscale, transform);
1681 if((has90Transform(layer) && isRotationDoable(ctx, hnd)) || downscale) {
1684 ctx->mLayerRotMap[dpy]->add(layer, *rot);
1701 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
1702 (ovutils::eBlending) getBlending(layer->blending));
1722 //Make sure there are no gaps between left and right splits if the layer
1740 int configureSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
1744 private_handle_t *hnd = (private_handle_t *)layer->handle;
1746 ALOGE("%s: layer handle is NULL", __FUNCTION__);
1754 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1755 hwc_rect_t dst = layer->displayFrame;
1756 int transform = layer->transform;
1764 if (layer->flags & HWC_FORMAT_RB_SWAP) {
1775 setMdpFlags(ctx, layer, mdpFlagsL, 0, transform);
1789 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) {
1792 ctx->mLayerRotMap[dpy]->add(layer, *rot);
1831 //Not needed if the layer is confined to one half of the screen.
1858 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
1859 (ovutils::eBlending) getBlending(layer->blending));
1872 layer->planeAlpha,
1873 (ovutils::eBlending) getBlending(layer->blending));
1886 int configureSourceSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
1890 private_handle_t *hnd = (private_handle_t *)layer->handle;
1892 ALOGE("%s: layer handle is NULL", __FUNCTION__);
1898 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);;
1899 hwc_rect_t dst = layer->displayFrame;
1900 int transform = layer->transform;
1904 //Splitting only YUV layer on primary panel needs different zorders
1916 setMdpFlags(ctx, layer, mdpFlagsL, 0, transform);
1919 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) {
1922 ctx->mLayerRotMap[dpy]->add(layer, *rot);
1957 //Not needed if the layer is confined to one half of the screen.
1984 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
1985 (ovutils::eBlending) getBlending(layer->blending));
1998 layer->planeAlpha,
1999 (ovutils::eBlending) getBlending(layer->blending));
2048 //clear prev layer prop flags and realloc for current frame
2083 hwc_layer_1_t* layer = &(list->hwLayers[index]);
2084 if(layer->compositionType == HWC_FRAMEBUFFER)
2206 void LayerRotMap::add(hwc_layer_1_t* layer, Rotator *rot) {
2208 mLayer[mCount] = layer;