Home
last modified time | relevance | path

Searched refs:layer_buffer (Results 1 – 25 of 26) sorted by relevance

12

/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_layers.cpp218 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
227 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
228 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
233 layer_buffer->format = format; in SetLayerBuffer()
234 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
235 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
236 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
237 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
243 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
249 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp525 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
526 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
527 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
528 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
529 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
530 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
531 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
534 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
535 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1172 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
[all …]
Dhwc_tonemapper.cpp256 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit() local
257 CloseFd(&layer_buffer.acquire_fence_fd); in PostCommit()
258 session->SetReleaseFence(layer_buffer.release_fence_fd); in PostCommit()
/hardware/qcom/display/sdm845/sdm/libs/hwc2/
Dhwc_layers.cpp114 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
122 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
123 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
124 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
125 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
127 layer_buffer->format = GetSDMFormat(handle->format, handle->flags); in SetLayerBuffer()
138 layer_buffer->flags.video = true; in SetLayerBuffer()
142 layer_buffer->flags.secure = true; in SetLayerBuffer()
144 layer_buffer->flags.secure_camera = true; in SetLayerBuffer()
148 layer_buffer->flags.secure_display = true; in SetLayerBuffer()
[all …]
Dhwc_display.cpp526 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
527 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
528 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
529 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
530 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
531 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
532 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
535 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
536 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1136 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
[all …]
Dhwc_tonemapper.cpp222 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit() local
223 CloseFd(&layer_buffer.acquire_fence_fd); in PostCommit()
224 session->SetReleaseFence(layer_buffer.release_fence_fd); in PostCommit()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_layers.cpp83 LayerBuffer *layer_buffer = layer_->input_buffer; in SetLayerBuffer() local
85 layer_buffer->width = UINT32(handle->width); in SetLayerBuffer()
86 layer_buffer->height = UINT32(handle->height); in SetLayerBuffer()
87 auto format = layer_buffer->format; in SetLayerBuffer()
88 layer_buffer->format = GetSDMFormat(handle->format, handle->flags); in SetLayerBuffer()
89 if (format != layer_buffer->format) { in SetLayerBuffer()
96 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
98 layer_buffer->flags.secure = in SetLayerBuffer()
100 layer_buffer->flags.secure_display = in SetLayerBuffer()
103 layer_buffer->planes[0].fd = ion_fd_; in SetLayerBuffer()
[all …]
Dhwc_display.cpp375 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack() local
378 layer_buffer->width = display_width; in BuildLayerStack()
379 layer_buffer->height = display_height; in BuildLayerStack()
380 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
381 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
910 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack() local
916 close(layer_buffer->release_fence_fd); in BuildLayerStack()
917 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
919 hwc_layer->PushReleaseFence(layer_buffer->release_fence_fd); in BuildLayerStack()
920 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
[all …]
/hardware/qcom/display/sdm845/sdm/libs/hwc/
Dblit_engine_c2d.cpp210 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit() local
213 layer_buffer.release_fence_fd = in PostCommit()
215 fence_fd = layer_buffer.release_fence_fd; in PostCommit()
216 close(layer_buffer.acquire_fence_fd); in PostCommit()
217 layer_buffer.acquire_fence_fd = -1; in PostCommit()
284 LayerBuffer &layer_buffer = layer_stack->layers.at(gpu_target_index)->input_buffer; in Prepare() local
285 int fbwidth = INT(layer_buffer.unaligned_width); in Prepare()
286 int fbheight = INT(layer_buffer.unaligned_height); in Prepare()
296 LayerBuffer &layer_buffer = layer->input_buffer; in Prepare() local
303 layer_buffer.width = aligned_w; in Prepare()
[all …]
Dhwc_display.cpp427 LayerBuffer &layer_buffer = layer->input_buffer; in PrepareLayerParams() local
430 layer_buffer.planes[0].fd = pvt_handle->fd; in PrepareLayerParams()
431 layer_buffer.format = GetSDMFormat(pvt_handle->format, pvt_handle->flags); in PrepareLayerParams()
440 layer_buffer.width = UINT32(aligned_width); in PrepareLayerParams()
441 layer_buffer.height = UINT32(aligned_height); in PrepareLayerParams()
442 layer_buffer.unaligned_width = UINT32(unaligned_width); in PrepareLayerParams()
443 layer_buffer.unaligned_height = UINT32(unaligned_height); in PrepareLayerParams()
451 layer_buffer.flags.video = true; in PrepareLayerParams()
456 layer_buffer.flags.secure = true; in PrepareLayerParams()
458 layer_buffer.flags.secure_camera = true; in PrepareLayerParams()
[all …]
Dhwc_tonemapper.cpp210 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit() local
211 CloseFd(&layer_buffer.acquire_fence_fd); in PostCommit()
212 session->SetReleaseFence(layer_buffer.release_fence_fd); in PostCommit()
Dhwc_display_external_test.cpp747 LayerBuffer &layer_buffer = layer->input_buffer; in PostCommit() local
749 close(layer_buffer.release_fence_fd); in PostCommit()
750 layer_buffer.release_fence_fd = -1; in PostCommit()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dblit_engine_c2d.cpp210 LayerBuffer *layer_buffer = layer->input_buffer; in PostCommit() local
213 layer_buffer->release_fence_fd = in PostCommit()
215 fence_fd = layer_buffer->release_fence_fd; in PostCommit()
216 close(layer_buffer->acquire_fence_fd); in PostCommit()
217 layer_buffer->acquire_fence_fd = -1; in PostCommit()
284 LayerBuffer *layer_buffer = layer_stack->layers.at(gpu_target_index)->input_buffer; in Prepare() local
285 int fbwidth = INT(layer_buffer->width); in Prepare()
286 int fbheight = INT(layer_buffer->height); in Prepare()
296 LayerBuffer *layer_buffer = layer->input_buffer; in Prepare() local
299 layer_buffer->width = fbwidth; in Prepare()
[all …]
Dhwc_display.cpp326 LayerBuffer *layer_buffer = new LayerBuffer(); in AllocateLayerStack() local
327 layer->input_buffer = layer_buffer; in AllocateLayerStack()
345 LayerBuffer *layer_buffer = layer->input_buffer; in PrepareLayerParams() local
348 layer_buffer->format = GetSDMFormat(pvt_handle->format, pvt_handle->flags); in PrepareLayerParams()
349 layer_buffer->width = UINT32(pvt_handle->width); in PrepareLayerParams()
350 layer_buffer->height = UINT32(pvt_handle->height); in PrepareLayerParams()
358 layer_buffer->flags.video = true; in PrepareLayerParams()
363 layer_buffer->flags.secure = true; in PrepareLayerParams()
370 layer_buffer->flags.secure_display = true; in PrepareLayerParams()
399 layer_buffer->width = UINT32(aligned_width); in PrepareLayerParams()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_hdmi.cpp69 static int32_t GetColoriMetry(const LayerBuffer & layer_buffer) { in GetColoriMetry() argument
70 bool is_yuv = layer_buffer.flags.video; in GetColoriMetry()
74 switch (layer_buffer.color_metadata.colorPrimaries) { in GetColoriMetry()
86 DLOGW("Unknown color primary = %d for YUV", layer_buffer.color_metadata.colorPrimaries); in GetColoriMetry()
93 static int32_t GetPixelEncoding(const LayerBuffer &layer_buffer) { in GetPixelEncoding() argument
94 bool is_yuv = layer_buffer.flags.video; in GetPixelEncoding()
99 switch (layer_buffer.format) { in GetPixelEncoding()
119 DLOGW("New YUV format = %d, need to add support", layer_buffer.format); in GetPixelEncoding()
126 static int32_t GetBitsPerComponent(const LayerBuffer &layer_buffer) { in GetBitsPerComponent() argument
127 bool is_yuv = layer_buffer.flags.video; in GetBitsPerComponent()
[all …]
Dhw_device.h135 void SetIGC(const LayerBuffer *layer_buffer, uint32_t index);
/hardware/qcom/display/sdm845/sdm/libs/core/fb/
Dhw_hdmi.cpp69 static int32_t GetColoriMetry(const LayerBuffer & layer_buffer) { in GetColoriMetry() argument
70 bool is_yuv = layer_buffer.flags.video; in GetColoriMetry()
74 switch (layer_buffer.color_metadata.colorPrimaries) { in GetColoriMetry()
86 DLOGW("Unknown color primary = %d for YUV", layer_buffer.color_metadata.colorPrimaries); in GetColoriMetry()
93 static int32_t GetPixelEncoding(const LayerBuffer &layer_buffer) { in GetPixelEncoding() argument
94 bool is_yuv = layer_buffer.flags.video; in GetPixelEncoding()
99 switch (layer_buffer.format) { in GetPixelEncoding()
119 DLOGW("New YUV format = %d, need to add support", layer_buffer.format); in GetPixelEncoding()
126 static int32_t GetBitsPerComponent(const LayerBuffer &layer_buffer) { in GetBitsPerComponent() argument
127 bool is_yuv = layer_buffer.flags.video; in GetBitsPerComponent()
[all …]
Dhw_device.h134 void SetIGC(const LayerBuffer *layer_buffer, uint32_t index);
Dhw_device.cpp1107 void HWDevice::SetIGC(const LayerBuffer *layer_buffer, uint32_t index) { in SetIGC() argument
1112 switch (layer_buffer->igc) { in SetIGC()
/hardware/qcom/display/msm8998/sdm/libs/core/
Ddisplay_hdmi.cpp262 LayerBuffer &layer_buffer = layer->input_buffer; in SetS3DMode() local
264 if (layer_buffer.s3d_format != kS3dFormatNone) { in SetS3DMode()
272 s3d_format_to_mode_.find(layer_buffer.s3d_format); in SetS3DMode()
276 } else if (layer_buffer.flags.secure && layer_count > 2) { in SetS3DMode()
/hardware/qcom/display/msm8996/sdm/libs/core/
Ddisplay_hdmi.cpp270 LayerBuffer *layer_buffer = layer->input_buffer; in SetS3DMode() local
272 if (layer_buffer->s3d_format != kS3dFormatNone) { in SetS3DMode()
280 s3d_format_to_mode_.find(layer_buffer->s3d_format); in SetS3DMode()
284 } else if (layer_buffer->flags.secure && layer_count > 2) { in SetS3DMode()
Ddisplay_base.cpp960 LayerBuffer *layer_buffer = layer->input_buffer; in NeedsMixerReconfiguration() local
962 if (!layer_buffer->flags.video) { in NeedsMixerReconfiguration()
/hardware/qcom/display/sdm845/sdm/libs/core/
Ddisplay_hdmi.cpp268 LayerBuffer &layer_buffer = layer->input_buffer; in SetS3DMode() local
270 if (layer_buffer.s3d_format != kS3dFormatNone) { in SetS3DMode()
278 s3d_format_to_mode_.find(layer_buffer.s3d_format); in SetS3DMode()
282 } else if (layer_buffer.flags.secure && layer_count > 2) { in SetS3DMode()
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
Dhw_device.h126 void SetIGC(const LayerBuffer *layer_buffer, uint32_t index);
Dhw_device.cpp987 void HWDevice::SetIGC(const LayerBuffer *layer_buffer, uint32_t index) { in SetIGC() argument
992 switch (layer_buffer->igc) { in SetIGC()

12