Home
last modified time | relevance | path

Searched refs:layer (Results 1 – 9 of 9) sorted by relevance

/hardware/samsung_slsi/exynos5/libhwc/
Dhwc.cpp234 static bool is_transformed(const hwc_layer_1_t &layer) in is_transformed() argument
236 return layer.transform != 0; in is_transformed()
239 static bool is_rotated(const hwc_layer_1_t &layer) in is_rotated() argument
241 return (layer.transform & HAL_TRANSFORM_ROT_90) || in is_rotated()
242 (layer.transform & HAL_TRANSFORM_ROT_180); in is_rotated()
245 static bool is_scaled(const hwc_layer_1_t &layer) in is_scaled() argument
247 return WIDTH(layer.displayFrame) != WIDTH(layer.sourceCrop) || in is_scaled()
248 HEIGHT(layer.displayFrame) != HEIGHT(layer.sourceCrop); in is_scaled()
355 static bool is_x_aligned(const hwc_layer_1_t &layer, int format) in is_x_aligned() argument
363 return (layer.displayFrame.left % pixel_alignment) == 0 && in is_x_aligned()
[all …]
/hardware/qcom/display/libhwcomposer/
Dhwc_mdpcomp.cpp146 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local
149 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
150 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags()
154 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
261 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument
263 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension()
273 hwc_rect_t crop = layer->sourceCrop; in isValidDimension()
274 hwc_rect_t dst = layer->displayFrame; in isValidDimension()
278 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension()
397 hwc_layer_1_t* layer = &list->hwLayers[i]; in isFullFrameDoable() local
[all …]
Dhwc_utils.cpp275 bool needsScaling(hwc_layer_1_t const* layer) { in needsScaling() argument
278 hwc_rect_t displayFrame = layer->displayFrame; in needsScaling()
279 hwc_rect_t sourceCrop = layer->sourceCrop; in needsScaling()
293 bool isAlphaScaled(hwc_layer_1_t const* layer) { in isAlphaScaled() argument
294 if(needsScaling(layer) && isAlphaPresent(layer)) { in isAlphaScaled()
300 bool isAlphaPresent(hwc_layer_1_t const* layer) { in isAlphaPresent() argument
301 private_handle_t *hnd = (private_handle_t *)layer->handle; in isAlphaPresent()
345 hwc_layer_1_t const* layer = &list->hwLayers[i]; in setListStats() local
346 private_handle_t *hnd = (private_handle_t *)layer->handle; in setListStats()
361 if(layer->transform & HWC_TRANSFORM_ROT_90) in setListStats()
[all …]
Dhwc_utils.h120 void add(hwc_layer_1_t* layer, overlay::Rotator *rot);
158 bool isSecuring(hwc_context_t* ctx, hwc_layer_1_t const* layer);
161 bool needsScaling(hwc_layer_1_t const* layer);
162 bool isAlphaPresent(hwc_layer_1_t const* layer);
186 void setMdpFlags(hwc_layer_1_t *layer,
191 int configureLowRes(hwc_context_t *ctx, hwc_layer_1_t *layer, const int& dpy,
197 int configureHighRes(hwc_context_t *ctx, hwc_layer_1_t *layer, const int& dpy,
244 inline void getLayerResolution(const hwc_layer_1_t* layer, in getLayerResolution() argument
246 hwc_rect_t displayFrame = layer->displayFrame; in getLayerResolution()
Dhwc_fbupdate.cpp63 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local
66 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
92 (ovutils::eBlending) getBlending(layer->blending)); in configure()
103 int transform = layer->transform; in configure()
167 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local
170 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
204 (ovutils::eBlending) getBlending(layer->blending)); in configure()
215 (ovutils::eBlending) getBlending(layer->blending)); in configure()
231 int transform = layer->transform; in configure()
Dhwc_mdpcomp.h126 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
146 bool isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer);
155 bool isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer);
191 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
213 bool acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer,
218 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
Dhwc_copybit.cpp254 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
286 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument
296 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit()
314 src.handle = (native_handle_t *)layer->handle; in drawLayerUsingCopybit()
322 hwc_rect_t sourceCrop = layer->sourceCrop; in drawLayerUsingCopybit()
328 hwc_rect_t displayFrame = layer->displayFrame; in drawLayerUsingCopybit()
354 if((layer->transform == HWC_TRANSFORM_ROT_90) || in drawLayerUsingCopybit()
355 (layer->transform == HWC_TRANSFORM_ROT_270)) { in drawLayerUsingCopybit()
454 hwc_region_t region = layer->visibleRegionScreen; in drawLayerUsingCopybit()
462 layer->transform); in drawLayerUsingCopybit()
[all …]
Dhwc_copybit.h51 int drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer,
66 void getLayerResolution(const hwc_layer_1_t* layer,
/hardware/ti/omap4xxx/hwc/
Dhwc.c256 hwc_layer_1_t *layer = &list->hwLayers[i]; in dump_set_info() local
257 IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle; in dump_set_info()
258 dump_printf(&log, "%p:%s,", handle, layer->compositionType == HWC_OVERLAY ? "DSS" : "SGX"); in dump_set_info()
259 if ((layer->flags & HWC_SKIP_LAYER) || !handle) { in dump_set_info()
263 if (layer->flags & HWC_HINT_CLEAR_FB) in dump_set_info()
266 if (layer->transform) in dump_set_info()
267 dump_printf(&log, "~%d", layer->transform); in dump_set_info()
313 static int scaled(hwc_layer_1_t *layer) in scaled() argument
315 int w = WIDTH(layer->sourceCrop); in scaled()
316 int h = HEIGHT(layer->sourceCrop); in scaled()
[all …]