Home
last modified time | relevance | path

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

123

/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_layers.cpp224 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
233 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
234 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
239 layer_buffer->format = format; in SetLayerBuffer()
240 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
241 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
242 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
243 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
249 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
255 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp539 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
540 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
541 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
542 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
543 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
544 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
545 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
548 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
549 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1186 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_layers.cpp213 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
222 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
223 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
228 layer_buffer->format = format; in SetLayerBuffer()
229 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
230 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
231 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
232 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
238 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
244 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp570 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
571 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
572 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
573 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
574 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
575 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
576 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
579 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
580 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1250 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_layers.cpp114 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
123 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
124 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
129 layer_buffer->format = format; in SetLayerBuffer()
130 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
131 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
132 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
133 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
139 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
145 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp542 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
543 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
544 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
545 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
546 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
547 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
548 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
551 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
552 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1185 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
[all …]
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_layers.cpp256 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
261 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
262 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
267 layer_buffer->format = format; in SetLayerBuffer()
268 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
269 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
270 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
271 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
277 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
283 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp755 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
756 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
757 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
758 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
759 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
760 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
761 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
764 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
765 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1556 LayerBuffer *layer_buffer = &layer->input_buffer; in PostCommitLayerStack() local
[all …]
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_layers.cpp83 LayerBuffer *layer_buffer = layer_->input_buffer; in SetLayerBuffer() local
92 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
93 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
98 layer_buffer->format = format; in SetLayerBuffer()
99 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
100 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
106 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
111 if (secure != layer_buffer->flags.secure || in SetLayerBuffer()
112 secure_display != layer_buffer->flags.secure_display) { in SetLayerBuffer()
117 layer_buffer->flags.secure = secure; in SetLayerBuffer()
[all …]
Dhwc_display.cpp384 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack() local
387 layer_buffer->width = display_width; in BuildLayerStack()
388 layer_buffer->height = display_height; in BuildLayerStack()
389 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
390 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
923 LayerBuffer *layer_buffer = layer->input_buffer; in BuildLayerStack() local
929 close(layer_buffer->release_fence_fd); in BuildLayerStack()
930 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
932 hwc_layer->PushReleaseFence(layer_buffer->release_fence_fd); in BuildLayerStack()
933 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_layers.cpp233 LayerBuffer *layer_buffer = &layer_->input_buffer; in SetLayerBuffer() local
238 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || in SetLayerBuffer()
239 (UINT32(aligned_height) != layer_buffer->height)) { in SetLayerBuffer()
244 layer_buffer->format = format; in SetLayerBuffer()
245 layer_buffer->width = UINT32(aligned_width); in SetLayerBuffer()
246 layer_buffer->height = UINT32(aligned_height); in SetLayerBuffer()
247 layer_buffer->unaligned_width = UINT32(handle->unaligned_width); in SetLayerBuffer()
248 layer_buffer->unaligned_height = UINT32(handle->unaligned_height); in SetLayerBuffer()
254 layer_buffer->flags.video = (handle->buffer_type == BUFFER_TYPE_VIDEO) ? true : false; in SetLayerBuffer()
260 if (secure != layer_buffer->flags.secure || secure_camera != layer_buffer->flags.secure_camera || in SetLayerBuffer()
[all …]
Dhwc_display.cpp800 LayerBuffer *layer_buffer = &layer->input_buffer; in BuildLayerStack() local
801 layer_buffer->width = UINT32(layer->dst_rect.right - layer->dst_rect.left); in BuildLayerStack()
802 layer_buffer->height = UINT32(layer->dst_rect.bottom - layer->dst_rect.top); in BuildLayerStack()
803 layer_buffer->unaligned_width = layer_buffer->width; in BuildLayerStack()
804 layer_buffer->unaligned_height = layer_buffer->height; in BuildLayerStack()
805 layer_buffer->acquire_fence_fd = -1; in BuildLayerStack()
806 layer_buffer->release_fence_fd = -1; in BuildLayerStack()
809 layer->src_rect.right = layer_buffer->width; in BuildLayerStack()
810 layer->src_rect.bottom = layer_buffer->height; in BuildLayerStack()
1582 LayerBuffer *layer_buffer = &layer->input_buffer; in PostCommitLayerStack() local
[all …]
/hardware/qcom/display/msm8909/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 …]
/hardware/qcom/display/msm8909w_3100/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 …]
/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 …]
/hardware/qcom/display/msm8909w_3100/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 …]
/hardware/qcom/sm8150/display/sdm/libs/core/fb/
Dhw_hdmi.cpp72 static int32_t GetColoriMetry(const LayerBuffer & layer_buffer) { in GetColoriMetry() argument
73 bool is_yuv = layer_buffer.flags.video; in GetColoriMetry()
77 switch (layer_buffer.color_metadata.colorPrimaries) { in GetColoriMetry()
89 DLOGW("Unknown color primary = %d for YUV", layer_buffer.color_metadata.colorPrimaries); in GetColoriMetry()
96 static int32_t GetPixelEncoding(const LayerBuffer &layer_buffer) { in GetPixelEncoding() argument
97 bool is_yuv = layer_buffer.flags.video; in GetPixelEncoding()
102 switch (layer_buffer.format) { in GetPixelEncoding()
122 DLOGW("New YUV format = %d, need to add support", layer_buffer.format); in GetPixelEncoding()
130 static int32_t GetBitsPerComponent(const LayerBuffer &layer_buffer) { in GetBitsPerComponent() argument
131 bool is_yuv = layer_buffer.flags.video; in GetBitsPerComponent()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/core/fb/
Dhw_hdmi.cpp71 static int32_t GetColoriMetry(const LayerBuffer & layer_buffer) { in GetColoriMetry() argument
72 bool is_yuv = layer_buffer.flags.video; in GetColoriMetry()
76 switch (layer_buffer.color_metadata.colorPrimaries) { in GetColoriMetry()
88 DLOGW("Unknown color primary = %d for YUV", layer_buffer.color_metadata.colorPrimaries); in GetColoriMetry()
95 static int32_t GetPixelEncoding(const LayerBuffer &layer_buffer) { in GetPixelEncoding() argument
96 bool is_yuv = layer_buffer.flags.video; in GetPixelEncoding()
101 switch (layer_buffer.format) { in GetPixelEncoding()
121 DLOGW("New YUV format = %d, need to add support", layer_buffer.format); in GetPixelEncoding()
128 static int32_t GetBitsPerComponent(const LayerBuffer &layer_buffer) { in GetBitsPerComponent() argument
129 bool is_yuv = layer_buffer.flags.video; in GetBitsPerComponent()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/core/fb/
Dhw_hdmi.cpp72 static int32_t GetColoriMetry(const LayerBuffer & layer_buffer) { in GetColoriMetry() argument
73 bool is_yuv = layer_buffer.flags.video; in GetColoriMetry()
77 switch (layer_buffer.color_metadata.colorPrimaries) { in GetColoriMetry()
89 DLOGW("Unknown color primary = %d for YUV", layer_buffer.color_metadata.colorPrimaries); in GetColoriMetry()
96 static int32_t GetPixelEncoding(const LayerBuffer &layer_buffer) { in GetPixelEncoding() argument
97 bool is_yuv = layer_buffer.flags.video; in GetPixelEncoding()
102 switch (layer_buffer.format) { in GetPixelEncoding()
122 DLOGW("New YUV format = %d, need to add support", layer_buffer.format); in GetPixelEncoding()
129 static int32_t GetBitsPerComponent(const LayerBuffer &layer_buffer) { in GetBitsPerComponent() argument
130 bool is_yuv = layer_buffer.flags.video; in GetBitsPerComponent()
[all …]
/hardware/qcom/display/msm8909w_3100/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/msm8909/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()

123