Home
last modified time | relevance | path

Searched refs:output_buffer_ (Results 1 – 25 of 38) sorted by relevance

12

/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_display_virtual.cpp101 output_buffer_ = new LayerBuffer(); in Init()
107 if (output_buffer_) { in Deinit()
108 delete output_buffer_; in Deinit()
109 output_buffer_ = nullptr; in Deinit()
125 layer_stack_.output_buffer = output_buffer_; in Validate()
144 reinterpret_cast<const private_handle_t *>(output_buffer_->buffer_id); in Present()
158 if (output_buffer_->acquire_fence_fd >= 0) { in Present()
159 close(output_buffer_->acquire_fence_fd); in Present()
160 output_buffer_->acquire_fence_fd = -1; in Present()
181 output_buffer_->acquire_fence_fd = dup(release_fence); in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp182 layer_stack_.output_buffer = &output_buffer_; in Validate()
442 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
443 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
444 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
445 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
450 output_buffer_ = {}; in HandleFrameCapture()
454 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
455 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
456 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
457 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
Dhwc_display_virtual.h58 LayerBuffer *output_buffer_ = NULL; variable
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_display_virtual.cpp101 output_buffer_ = new LayerBuffer(); in Init()
107 if (output_buffer_) { in Deinit()
108 delete output_buffer_; in Deinit()
109 output_buffer_ = nullptr; in Deinit()
125 layer_stack_.output_buffer = output_buffer_; in Validate()
145 reinterpret_cast<const private_handle_t *>(output_buffer_->buffer_id); in Present()
160 close(output_buffer_->acquire_fence_fd); in Present()
180 output_buffer_->acquire_fence_fd = dup(release_fence); in SetOutputBuffer()
184 output_buffer_->buffer_id = reinterpret_cast<uint64_t>(output_handle); in SetOutputBuffer()
191 output_buffer_->format = GetSDMFormat(output_handle_format, output_handle->flags); in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp189 layer_stack_.output_buffer = &output_buffer_; in Validate()
439 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
440 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
441 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
442 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
447 output_buffer_ = {}; in HandleFrameCapture()
451 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
452 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
453 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
454 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_display_virtual.cpp101 output_buffer_ = new LayerBuffer(); in Init()
107 if (output_buffer_) { in Deinit()
108 if (output_buffer_->acquire_fence_fd >= 0) { in Deinit()
109 close(output_buffer_->acquire_fence_fd); in Deinit()
110 output_buffer_->acquire_fence_fd = -1; in Deinit()
112 delete output_buffer_; in Deinit()
113 output_buffer_ = nullptr; in Deinit()
129 layer_stack_.output_buffer = output_buffer_; in Validate()
153 reinterpret_cast<const private_handle_t *>(output_buffer_->buffer_id); in Present()
183 if (output_buffer_->acquire_fence_fd >= 0) { in Present()
[all …]
Dhwc_display_primary.cpp192 layer_stack_.output_buffer = &output_buffer_; in Validate()
462 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
463 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
464 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
465 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
470 output_buffer_ = {}; in HandleFrameCapture()
474 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
475 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
476 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
477 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_display_virtual.cpp103 output_buffer_ = new LayerBuffer(); in Init()
110 if (output_buffer_) { in Deinit()
111 if (output_buffer_->acquire_fence_fd >= 0) { in Deinit()
112 close(output_buffer_->acquire_fence_fd); in Deinit()
114 delete output_buffer_; in Deinit()
115 output_buffer_ = nullptr; in Deinit()
131 layer_stack_.output_buffer = output_buffer_; in Validate()
133 if (output_buffer_ && !output_buffer_->flags.secure && layer_stack_.flags.secure_present) { in Validate()
154 if (!output_buffer_->buffer_id) { in Present()
162 layer_stack_.output_buffer = output_buffer_; in Present()
[all …]
Dhwc_display_builtin.cpp236 CloseFd(&output_buffer_.release_fence_fd); in Validate()
242 layer_stack_.output_buffer = &output_buffer_; in Validate()
374 CloseFd(&output_buffer_.acquire_fence_fd); in Present()
487 output_buffer_.width = UINT32(handle->width); in SetReadbackBuffer()
488 output_buffer_.height = UINT32(handle->height); in SetReadbackBuffer()
489 output_buffer_.unaligned_width = UINT32(handle->unaligned_width); in SetReadbackBuffer()
490 output_buffer_.unaligned_height = UINT32(handle->unaligned_height); in SetReadbackBuffer()
491 output_buffer_.format = HWCLayer::GetSDMFormat(handle->format, handle->flags); in SetReadbackBuffer()
492 output_buffer_.planes[0].fd = handle->fd; in SetReadbackBuffer()
493 output_buffer_.planes[0].stride = UINT32(handle->width); in SetReadbackBuffer()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display_virtual.cpp101 output_buffer_ = new LayerBuffer(); in Init()
107 if (output_buffer_) { in Deinit()
108 delete output_buffer_; in Deinit()
109 output_buffer_ = nullptr; in Deinit()
125 layer_stack_.output_buffer = output_buffer_; in Validate()
144 reinterpret_cast<const private_handle_t *>(output_buffer_->buffer_id); in Present()
159 close(output_buffer_->acquire_fence_fd); in Present()
179 output_buffer_->acquire_fence_fd = dup(release_fence); in SetOutputBuffer()
182 output_buffer_->buffer_id = reinterpret_cast<uint64_t>(output_handle); in SetOutputBuffer()
189 output_buffer_->format = GetSDMFormat(output_handle_format, output_handle->flags); in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp182 layer_stack_.output_buffer = &output_buffer_; in Validate()
425 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
426 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
427 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
428 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
433 output_buffer_ = {}; in HandleFrameCapture()
437 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
438 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
439 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
440 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
Dhwc_display_virtual.h58 LayerBuffer *output_buffer_ = NULL; variable
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_display_virtual.cpp104 output_buffer_ = new LayerBuffer(); in Init()
105 if (!output_buffer_) { in Init()
120 if (output_buffer_) { in Deinit()
121 delete output_buffer_; in Deinit()
122 output_buffer_ = NULL; in Deinit()
225 if ((active_width != INT(output_buffer_->width)) || in SetOutputSliceFromMetadata()
226 (active_height!= INT(output_buffer_->height)) || in SetOutputSliceFromMetadata()
227 (format != output_buffer_->format)) { in SetOutputSliceFromMetadata()
274 output_buffer_->format = GetSDMFormat(output_handle_format, output_handle->flags); in SetOutputBuffer()
276 if (output_buffer_->format == kFormatInvalid) { in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp183 layer_stack_.output_buffer = &output_buffer_; in Prepare()
422 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
423 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
424 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
425 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
430 output_buffer_ = {}; in HandleFrameCapture()
434 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
435 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
436 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
437 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
Dhwc_display_virtual.h54 LayerBuffer *output_buffer_ = NULL; variable
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_display_virtual.cpp104 output_buffer_ = new LayerBuffer(); in Init()
105 if (!output_buffer_) { in Init()
120 if (output_buffer_) { in Deinit()
121 delete output_buffer_; in Deinit()
122 output_buffer_ = NULL; in Deinit()
225 if ((active_width != INT(output_buffer_->width)) || in SetOutputSliceFromMetadata()
226 (active_height!= INT(output_buffer_->height)) || in SetOutputSliceFromMetadata()
227 (format != output_buffer_->format)) { in SetOutputSliceFromMetadata()
274 output_buffer_->format = GetSDMFormat(output_handle_format, output_handle->flags); in SetOutputBuffer()
276 if (output_buffer_->format == kFormatInvalid) { in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp183 layer_stack_.output_buffer = &output_buffer_; in Prepare()
422 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
423 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
424 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
425 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
430 output_buffer_ = {}; in HandleFrameCapture()
434 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
435 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
436 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
437 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
Dhwc_display_virtual.h54 LayerBuffer *output_buffer_ = NULL; variable
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_display_virtual.cpp104 output_buffer_ = new LayerBuffer(); in Init()
105 if (!output_buffer_) { in Init()
120 if (output_buffer_) { in Deinit()
121 delete output_buffer_; in Deinit()
122 output_buffer_ = NULL; in Deinit()
225 if ((active_width != INT(output_buffer_->width)) || in SetOutputSliceFromMetadata()
226 (active_height!= INT(output_buffer_->height)) || in SetOutputSliceFromMetadata()
227 (format != output_buffer_->format)) { in SetOutputSliceFromMetadata()
274 output_buffer_->format = GetSDMFormat(output_handle_format, output_handle->flags); in SetOutputBuffer()
276 if (output_buffer_->format == kFormatInvalid) { in SetOutputBuffer()
[all …]
Dhwc_display_primary.cpp166 layer_stack_.output_buffer = &output_buffer_; in Prepare()
368 if (output_buffer_.release_fence_fd >= 0) { in HandleFrameCapture()
369 frame_capture_status_ = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameCapture()
370 ::close(output_buffer_.release_fence_fd); in HandleFrameCapture()
371 output_buffer_.release_fence_fd = -1; in HandleFrameCapture()
376 output_buffer_ = {}; in HandleFrameCapture()
380 if (dump_frame_count_ && output_buffer_.release_fence_fd >= 0) { in HandleFrameDump()
381 int ret = sync_wait(output_buffer_.release_fence_fd, 1000); in HandleFrameDump()
382 ::close(output_buffer_.release_fence_fd); in HandleFrameDump()
383 output_buffer_.release_fence_fd = -1; in HandleFrameDump()
[all …]
Dhwc_display_virtual.h54 LayerBuffer *output_buffer_ = NULL; variable
/hardware/qcom/sm7250/display/composer/
Dhwc_display_virtual.cpp76 reinterpret_cast<const private_handle_t *>(output_buffer_.buffer_id); in DumpVDSBuffer()
130 output_buffer_.flags.secure = 0; in SetOutputBuffer()
131 output_buffer_.flags.video = 0; in SetOutputBuffer()
132 output_buffer_.buffer_id = reinterpret_cast<uint64_t>(output_handle); in SetOutputBuffer()
133 output_buffer_.format = new_sdm_format; in SetOutputBuffer()
134 output_buffer_.color_metadata = color_metadata; in SetOutputBuffer()
139 output_buffer_.flags.secure = 1; in SetOutputBuffer()
143 output_buffer_.planes[0].fd = output_handle->fd; in SetOutputBuffer()
144 output_buffer_.planes[0].offset = output_handle->offset; in SetOutputBuffer()
145 output_buffer_.planes[0].stride = UINT32(output_handle->width); in SetOutputBuffer()
[all …]
Dhwc_display_virtual_gpu.cpp158 output_buffer_.width = hnd->width; in SetOutputBuffer()
159 output_buffer_.height = hnd->height; in SetOutputBuffer()
160 output_buffer_.unaligned_width = width_; in SetOutputBuffer()
161 output_buffer_.unaligned_height = height_; in SetOutputBuffer()
166 output_buffer_.unaligned_width = buffer_dim.sliceWidth; in SetOutputBuffer()
167 output_buffer_.unaligned_height = buffer_dim.sliceHeight; in SetOutputBuffer()
183 if (!output_buffer_.buffer_id) { in Present()
197 layer_stack_.output_buffer = &output_buffer_; in Present()
219 ctx.dst_rect = {0, 0, FLOAT(output_buffer_.unaligned_width), in Present()
220 FLOAT(output_buffer_.unaligned_height)}; in Present()
[all …]
Dhwc_display_virtual_dpu.cpp123 output_buffer_.width = UINT32(new_aligned_w); in SetOutputBuffer()
124 output_buffer_.height = UINT32(new_aligned_h); in SetOutputBuffer()
125 output_buffer_.unaligned_width = UINT32(new_width); in SetOutputBuffer()
126 output_buffer_.unaligned_height = UINT32(new_height); in SetOutputBuffer()
139 layer_stack_.output_buffer = &output_buffer_; in Validate()
141 if (!output_buffer_.flags.secure && layer_stack_.flags.secure_present) { in Validate()
157 if (!output_buffer_.buffer_id) { in Present()
165 layer_stack_.output_buffer = &output_buffer_; in Present()
Dhwc_display_builtin.cpp369 layer_stack_.output_buffer = &output_buffer_; in Validate()
807 output_buffer_.width = UINT32(handle->width); in SetReadbackBuffer()
808 output_buffer_.height = UINT32(handle->height); in SetReadbackBuffer()
809 output_buffer_.unaligned_width = UINT32(handle->unaligned_width); in SetReadbackBuffer()
810 output_buffer_.unaligned_height = UINT32(handle->unaligned_height); in SetReadbackBuffer()
811 output_buffer_.format = HWCLayer::GetSDMFormat(handle->format, handle->flags); in SetReadbackBuffer()
812 output_buffer_.planes[0].fd = handle->fd; in SetReadbackBuffer()
813 output_buffer_.planes[0].stride = UINT32(handle->width); in SetReadbackBuffer()
814 output_buffer_.acquire_fence = acquire_fence; in SetReadbackBuffer()
815 output_buffer_.handle_id = handle->id; in SetReadbackBuffer()
[all …]

12