Home | History | Annotate | Download | only in libhwcomposer

Lines Matching full:layer

860 bool isDownscaleRequired(hwc_layer_1_t const* layer) {
861 hwc_rect_t displayFrame = layer->displayFrame;
862 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
874 bool needsScaling(hwc_layer_1_t const* layer) {
876 hwc_rect_t displayFrame = layer->displayFrame;
877 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
884 if(layer->transform & HWC_TRANSFORM_ROT_90)
893 // Checks if layer needs scaling with split
894 bool needsScalingWithSplit(hwc_context_t* ctx, hwc_layer_1_t const* layer,
905 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf);
906 hwc_rect_t displayFrame = layer->displayFrame;
907 private_handle_t *hnd = (private_handle_t *)layer->handle;
947 bool isAlphaScaled(hwc_layer_1_t const* layer) {
948 if(needsScaling(layer) && isAlphaPresent(layer)) {
954 bool isAlphaPresent(hwc_layer_1_t const* layer) {
955 private_handle_t *hnd = (private_handle_t *)layer->handle;
984 hwc_layer_1_t *layer = &list->hwLayers[i];
985 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
992 layer->sourceCropf.left = (float)crop.left;
993 layer->sourceCropf.right = (float)crop.right;
994 layer->sourceCropf.top = (float)crop.top;
995 layer->sourceCropf.bottom = (float)crop.bottom;
1026 hwc_layer_1_t const* layer = &list->hwLayers[i];
1027 private_handle_t *hnd = (private_handle_t *)layer->handle;
1032 if(ctx->mWindowboxFeature && dpy && isAIVVideoLayer(layer)) {
1035 if (layer->flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
1053 // cache secureRGB layer parameters like we cache for YUV layers
1075 if(layer->blending == HWC_BLENDING_PREMULT)
1147 bool isSecuring(hwc_context_t* ctx, hwc_layer_1_t const* layer) {
1154 private_handle_t *hnd = (private_handle_t *)layer->handle;
1326 bool layerUpdating(const hwc_layer_1_t* layer) {
1327 hwc_region_t surfDamage = layer->surfaceDamage;
1329 isValidRect(layer->surfaceDamage.rects[0]));
1423 hwc_layer_1_t* layer = (hwc_layer_1_t*)&list->hwLayers[j];
1424 hwc_rect_t& bottomframe = layer->displayFrame;
1426 integerizeSourceCrop(layer->sourceCropf);
1427 int transform = (layer->flags & HWC_COLOR_FILL) ? 0 :
1428 layer->transform;
1437 //Update layer sourceCropf
1438 layer->sourceCropf.left =(float)bottomCrop.left;
1439 layer->sourceCropf.top = (float)bottomCrop.top;
1440 layer->sourceCropf.right = (float)bottomCrop.right;
1441 layer->sourceCropf.bottom = (float)bottomCrop.bottom;
1443 //Update layer dirtyRect
1444 layer->dirtyRect = getIntersection(bottomCrop,
1445 layer->dirtyRect);
1578 // if ABC is enabled for more than one layer.
1640 // Release all the app layer fds immediately,
1646 // & if it's a not VPU layer
1648 // if ABC is enabled for more than one layer
1691 void setMdpFlags(hwc_context_t *ctx, hwc_layer_1_t *layer,
1694 private_handle_t *hnd = (private_handle_t *)layer->handle;
1697 if(layer->blending == HWC_BLENDING_PREMULT) {
1728 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) {
1804 int configColorLayer(hwc_context_t *ctx, hwc_layer_1_t *layer,
1808 hwc_rect_t dst = layer->displayFrame;
1815 uint32_t color = layer->transform;
1819 if (layer->blending == HWC_BLENDING_PREMULT)
1823 layer->planeAlpha,
1824 (ovutils::eBlending) getBlending(layer->blending));
1826 // Configure MDP pipe for Color layer
1835 ALOGE("%s: Configure color layer failed!", __FUNCTION__);
1865 int getRotDownscale(hwc_context_t *ctx, const hwc_layer_1_t *layer) {
1871 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1872 hwc_rect_t dst = layer->displayFrame;
1873 private_handle_t *hnd = (private_handle_t *)layer->handle;
1882 int transform = layer->transform;
1971 int configureNonSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
1975 private_handle_t *hnd = (private_handle_t *)layer->handle;
1978 if (layer->flags & HWC_COLOR_FILL) {
1979 // Configure Color layer
1980 return configColorLayer(ctx, layer, dpy, mdpFlags, z, dest);
1982 ALOGE("%s: layer handle is NULL", __FUNCTION__);
1988 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1989 hwc_rect_t dst = layer->displayFrame;
1990 int transform = layer->transform;
1997 if (layer->flags & HWC_FORMAT_RB_SWAP) {
2003 // update source crop and destination position of AIV video layer.
2008 int downscale = getRotDownscale(ctx, layer);
2009 setMdpFlags(ctx, layer, mdpFlags, downscale, transform);
2012 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) {
2015 ctx->mLayerRotMap[dpy]->add(layer, *rot);
2031 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
2032 (ovutils::eBlending) getBlending(layer->blending));
2052 //Make sure there are no gaps between left and right splits if the layer
2070 int configureSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
2074 private_handle_t *hnd = (private_handle_t *)layer->handle;
2076 ALOGE("%s: layer handle is NULL", __FUNCTION__);
2084 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
2085 hwc_rect_t dst = layer->displayFrame;
2086 int transform = layer->transform;
2093 if (layer->flags & HWC_FORMAT_RB_SWAP) {
2100 // update source crop and destination position of AIV video layer.
2108 int downscale = getRotDownscale(ctx, layer);
2109 setMdpFlags(ctx, layer, mdpFlagsL, downscale, transform);
2123 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) {
2126 ctx->mLayerRotMap[dpy]->add(layer, *rot);
2165 //Not needed if the layer is confined to one half of the screen.
2192 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
2193 (ovutils::eBlending) getBlending(layer->blending));
2206 layer->planeAlpha,
2207 (ovutils::eBlending) getBlending(layer->blending));
2220 int configureSourceSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
2224 private_handle_t *hnd = (private_handle_t *)layer->handle;
2226 ALOGE("%s: layer handle is NULL", __FUNCTION__);
2232 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);;
2233 hwc_rect_t dst = layer->displayFrame;
2234 int transform = layer->transform;
2238 //Splitting only YUV layer on primary panel needs different zorders
2246 // update source crop and destination position of AIV video layer.
2255 setMdpFlags(ctx, layer, mdpFlagsL, 0, transform);
2258 if(has90Transform(layer) && isRotationDoable(ctx, hnd)) {
2261 layer, *rot);
2293 //Not needed if the layer is confined to one half of the screen.
2320 static_cast<eRotFlags>(rotFlags), layer->planeAlpha,
2321 (ovutils::eBlending) getBlending(layer->blending));
2334 layer->planeAlpha,
2335 (ovutils::eBlending) getBlending(layer->blending));
2385 //clear prev layer prop flags and realloc for current frame
2426 hwc_layer_1_t* layer = &(list->hwLayers[index]);
2427 if(layer->compositionType == HWC_FRAMEBUFFER)
2582 void LayerRotMap::add(hwc_layer_1_t* layer, Rotator *rot) {
2584 mLayer[mCount] = layer;
2604 hwc_layer_1_t* layer = getLayer(index);
2606 if(rot and layer and layer->handle) {
2607 private_handle_t *hnd = (private_handle_t *)(layer->handle);
2617 * layer and layer-handle) are NULL*/