/hardware/qcom/display/msm8226/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 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() [all …]
|
D | hwc_dump_layers.cpp | 221 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 222 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 223 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 224 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 225 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 226 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 255 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 256 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 257 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 259 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_fbupdate.cpp | 74 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 75 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 90 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 101 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 133 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 138 layer = &list->hwLayers[extOnlyLayerIndex]; in configure() 139 layer->compositionType = HWC_OVERLAY; in configure() 149 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 171 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 172 hwc_rect_t displayFrame = layer->displayFrame; in configure() [all …]
|
D | hwc_copybit.cpp | 315 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 316 if (layer->planeAlpha != 0xFF) in prepare() 318 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare() 320 if (layer->transform & HAL_TRANSFORM_ROT_90) { in prepare() 327 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare() 328 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare() 522 hwc_layer_1_t *layer = &list->hwLayers[mDirtyLayerIndex]; in draw() local 524 clear(renderBuffer,layer->dirtyRect); in draw() 526 clear(renderBuffer,layer->displayFrame); in draw() 599 hwc_layer_1_t *layer = &list->hwLayers[i]; in drawOverlap() local [all …]
|
/hardware/qcom/display/msm8994/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 288 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 291 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 292 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 297 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 375 hwc_layer_1_t const* layer = &list->hwLayers[i]; in isSameFrame() local 376 if(curFrame.isFBComposed[i] && layerUpdating(layer)){ in isSameFrame() 383 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument 384 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp() 385 if((has90Transform(layer) and (not isRotationDoable(ctx, hnd))) || in isSupportedForMDPComp() 386 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp() [all …]
|
D | hwc_dump_layers.cpp | 225 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 226 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 227 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 228 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 229 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 230 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 259 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 260 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 261 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 263 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_copybit.cpp | 322 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 323 if (layer->planeAlpha != 0xFF) in prepare() 325 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare() 327 if (has90Transform(layer)) { in prepare() 334 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare() 335 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare() 532 hwc_layer_1_t *layer = &list->hwLayers[mDirtyLayerIndex]; in draw() local 534 clear(renderBuffer,layer->dirtyRect); in draw() 536 clear(renderBuffer,layer->displayFrame); in draw() 634 hwc_layer_1_t *layer = &list->hwLayers[i]; in drawOverlap() local [all …]
|
D | hwc_fbupdate.cpp | 72 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 73 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 88 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 99 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 131 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 142 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 165 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 166 hwc_rect_t displayFrame = layer->displayFrame; in configure() 176 int transform = layer->transform; in configure() 189 sourceCrop = layer->displayFrame; in configure() [all …]
|
/hardware/qcom/display/msm8909/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 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() [all …]
|
D | hwc_dump_layers.cpp | 226 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 227 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 228 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 229 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 230 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 231 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 260 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 261 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 262 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 264 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_fbupdate.cpp | 72 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 73 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 88 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 99 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 131 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 141 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 162 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 163 hwc_rect_t displayFrame = layer->displayFrame; in configure() 173 int transform = layer->transform; in configure() 186 sourceCrop = layer->displayFrame; in configure() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/base/ |
D | HwcLayer.cpp | 55 HwcLayer::HwcLayer(int index, hwc_layer_1_t *layer) in HwcLayer() argument 59 mLayer(layer), in HwcLayer() 236 bool HwcLayer::update(hwc_layer_1_t *layer) in update() argument 239 mLayer = layer; in update() 244 mPlane->setPosition(layer->displayFrame.left, in update() 245 layer->displayFrame.top, in update() 246 layer->displayFrame.right - layer->displayFrame.left, in update() 247 layer->displayFrame.bottom - layer->displayFrame.top); in update() 248 mPlane->setSourceCrop(layer->sourceCropf.left, in update() 249 layer->sourceCropf.top, in update() [all …]
|
D | HwcLayerList.cpp | 51 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkSupported() local 60 if (layer.flags & HWC_SKIP_LAYER) { in checkSupported() 65 if (layer.handle == 0) { in checkSupported() 117 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkRgbOverlaySupported() local 126 if (layer.flags & HWC_SKIP_LAYER) { in checkRgbOverlaySupported() 131 if (layer.handle == 0) { in checkRgbOverlaySupported() 177 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkCursorSupported() local 186 if (layer.flags & HWC_SKIP_LAYER) { in checkCursorSupported() 191 if (!(layer.flags & HWC_IS_CURSOR_LAYER)) { in checkCursorSupported() 201 if (layer.handle == 0) { in checkCursorSupported() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/hwc/ |
D | blit_engine_c2d.cpp | 214 Layer &layer = layer_stack->layers[i]; in PostCommit() local 215 LayerBuffer *layer_buffer = layer.input_buffer; in PostCommit() 216 if (layer.composition == kCompositionBlit) { in PostCommit() 265 Layer &layer = layer_stack->layers[i]; in Prepare() local 271 if (Is10BitFormat(layer.input_buffer->format)) { in Prepare() 275 if (layer.composition == kCompositionGPUTarget) { in Prepare() 301 Layer &layer = layer_stack->layers[k]; in Prepare() local 302 LayerBuffer *layer_buffer = layer.input_buffer; in Prepare() 308 layer.plane_alpha = 0xFF; in Prepare() 309 layer.blending = kBlendingOpaque; in Prepare() [all …]
|
D | hwc_display.cpp | 66 static void ApplyDeInterlaceAdjustment(Layer *layer) { in ApplyDeInterlaceAdjustment() argument 68 if (layer->input_buffer->flags.interlace) { in ApplyDeInterlaceAdjustment() 69 float height = (layer->src_rect.bottom - layer->src_rect.top) / 2.0f; in ApplyDeInterlaceAdjustment() 70 layer->src_rect.top = ROUND_UP_ALIGN_DOWN(layer->src_rect.top / 2.0f, 2); in ApplyDeInterlaceAdjustment() 71 layer->src_rect.bottom = layer->src_rect.top + floorf(height); in ApplyDeInterlaceAdjustment() 381 Layer &layer = layer_stack_.layers[i]; in AllocateLayerStack() local 382 layer = Layer(); in AllocateLayerStack() 385 layer.input_buffer = reinterpret_cast<LayerBuffer *>(current_address); in AllocateLayerStack() 386 *layer.input_buffer = LayerBuffer(); in AllocateLayerStack() 390 AssignLayerRegionsAddress(&layer.visible_regions, num_visible_rects, ¤t_address); in AllocateLayerStack() [all …]
|
D | hwc_color_manager.cpp | 200 hwc_layer_1_t *layer = &layer_list->hwLayers[i]; in SolidFillLayersPrepare() local 201 layer->compositionType = HWC_OVERLAY; in SolidFillLayersPrepare() 276 hwc_layer_1_t &layer = solid_fill_layers_->hwLayers[0]; in CreateSolidFillLayers() local 277 layer.handle = handle; in CreateSolidFillLayers() 286 hwc_layer_1_t &layer = solid_fill_layers_->hwLayers[0]; in CreateSolidFillLayers() local 294 layer.compositionType = HWC_FRAMEBUFFER; in CreateSolidFillLayers() 295 layer.blending = HWC_BLENDING_PREMULT; in CreateSolidFillLayers() 296 layer.sourceCropf.left = solid_fill_params_.rect.x; in CreateSolidFillLayers() 297 layer.sourceCropf.top = solid_fill_params_.rect.y; in CreateSolidFillLayers() 298 layer.sourceCropf.right = UINT32(solid_fill_params_.rect.x) + solid_fill_params_.rect.width; in CreateSolidFillLayers() [all …]
|
/hardware/intel/img/hwcomposer/merrifield/ips/tangier/ |
D | TngPlaneManager.cpp | 89 const ZOrderLayer *layer = config[i]; in isValidZOrder() local 90 switch (layer->planeType) { in isValidZOrder() 126 const ZOrderLayer *layer = config.itemAt(i); in assignPlanes() local 127 if (!getFreePlanes(dsp, layer->planeType)) { in assignPlanes() 128 DTRACE("no plane available for dsp %d, type %d", dsp, layer->planeType); in assignPlanes() 139 ZOrderLayer *layer = config.itemAt(i); in assignPlanes() local 140 layer->plane = getPlaneHelper(dsp, layer->planeType); in assignPlanes() 141 if (layer->plane == NULL) { in assignPlanes() 143 ETRACE("failed to assign plane for type %d", layer->planeType); in assignPlanes() 148 layer->plane->enable(); in assignPlanes() [all …]
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 205 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 208 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 209 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 214 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 292 hwc_layer_1_t const* layer = &list->hwLayers[i]; in isSameFrame() local 293 if(curFrame.isFBComposed[i] && layerUpdating(layer)){ in isSameFrame() 300 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument 301 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp() 302 if((not isYuvBuffer(hnd) and has90Transform(layer)) or in isSupportedForMDPComp() 303 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp() [all …]
|
D | hwc_dump_layers.cpp | 221 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 222 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 223 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 224 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 225 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 226 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 255 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 256 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 257 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 259 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_copybit.cpp | 177 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 178 if (layer->planeAlpha != 0xFF) in prepare() 180 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare() 182 if (layer->transform & HAL_TRANSFORM_ROT_90) { in prepare() 189 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare() 190 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare() 311 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local 316 if(layer->flags & HWC_SKIP_HWC_COMPOSITION){ in draw() 352 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument 362 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit() [all …]
|
D | hwc_fbupdate.cpp | 67 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 68 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 83 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 94 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 127 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 132 layer = &list->hwLayers[extOnlyLayerIndex]; in configure() 133 layer->compositionType = HWC_OVERLAY; in configure() 143 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 165 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 166 hwc_rect_t displayFrame = layer->displayFrame; in configure() [all …]
|
/hardware/intel/img/hwcomposer/merrifield/common/base/ |
D | HwcLayer.cpp | 56 HwcLayer::HwcLayer(int index, hwc_layer_1_t *layer) in HwcLayer() argument 60 mLayer(layer), in HwcLayer() 256 bool HwcLayer::update(hwc_layer_1_t *layer) in update() argument 259 mLayer = layer; in update() 286 mPlane->setPosition(layer->displayFrame.left, in update() 287 layer->displayFrame.top, in update() 288 layer->displayFrame.right - layer->displayFrame.left, in update() 289 layer->displayFrame.bottom - layer->displayFrame.top); in update() 290 mPlane->setSourceCrop(layer->sourceCropf.left, in update() 291 layer->sourceCropf.top, in update() [all …]
|
D | DisplayAnalyzer.cpp | 250 bool DisplayAnalyzer::isVideoLayer(hwc_layer_1_t &layer) in isVideoLayer() argument 254 if (!layer.handle) { in isVideoLayer() 257 DataBuffer *buffer = bm->lockDataBuffer(layer.handle); in isVideoLayer() 267 bool DisplayAnalyzer::isVideoFullScreen(int device, hwc_layer_1_t &layer) in isVideoFullScreen() argument 279 layer.displayFrame.left, layer.displayFrame.right, in isVideoFullScreen() 280 layer.displayFrame.top, layer.displayFrame.bottom, in isVideoFullScreen() 288 int dstW = layer.displayFrame.right - layer.displayFrame.left; in isVideoFullScreen() 289 int dstH = layer.displayFrame.bottom - layer.displayFrame.top; in isVideoFullScreen() 587 hwc_layer_1 *layer = NULL; in blankSecondaryDevice() local 598 layer = &content->hwLayers[j]; in blankSecondaryDevice() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 18 int layer; in vp9_init_layer_context() local 30 for (layer = 0; layer < layer_end; ++layer) { in vp9_init_layer_context() 31 LAYER_CONTEXT *const lc = &cpi->svc.layer_context[layer]; in vp9_init_layer_context() 48 lc->target_bandwidth = oxcf->ts_target_bitrate[layer] * 1000; in vp9_init_layer_context() 51 lc->target_bandwidth = oxcf->ss_target_bitrate[layer] * 1000; in vp9_init_layer_context() 68 int layer; in vp9_update_layer_context_change_config() local 78 for (layer = 0; layer < layer_end; ++layer) { in vp9_update_layer_context_change_config() 79 LAYER_CONTEXT *const lc = &cpi->svc.layer_context[layer]; in vp9_update_layer_context_change_config() 83 lc->target_bandwidth = oxcf->ts_target_bitrate[layer] * 1000; in vp9_update_layer_context_change_config() 85 lc->target_bandwidth = oxcf->ss_target_bitrate[layer] * 1000; in vp9_update_layer_context_change_config() [all …]
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 151 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 154 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 155 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 159 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 266 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument 267 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension() 277 hwc_rect_t crop = layer->sourceCrop; in isValidDimension() 278 hwc_rect_t dst = layer->displayFrame; in isValidDimension() 282 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension() 404 hwc_layer_1_t* layer = &list->hwLayers[i]; in isFullFrameDoable() local [all …]
|