Home
last modified time | relevance | path

Searched refs:alloc_buffer_info (Results 1 – 23 of 23) sorted by relevance

/hardware/qcom/display/msm8998/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp53 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer() local
109 alloc_buffer_info->fd = data.fd; in AllocateBuffer()
111 alloc_buffer_info->stride = UINT32(aligned_width); in AllocateBuffer()
112 alloc_buffer_info->aligned_width = UINT32(aligned_width); in AllocateBuffer()
113 alloc_buffer_info->aligned_height = UINT32(aligned_height); in AllocateBuffer()
114 alloc_buffer_info->size = buffer_size; in AllocateBuffer()
127 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer() local
130 if (alloc_buffer_info->fd > 0) { in FreeBuffer()
138 ret = memalloc->free_buffer(meta_buffer_info->base_addr, alloc_buffer_info->size, 0, in FreeBuffer()
139 alloc_buffer_info->fd); in FreeBuffer()
[all …]
Dhwc_display_external_test.cpp225 uint32_t width = buffer_info_.alloc_buffer_info.aligned_width; in DumpInputBuffer()
226 uint32_t height = buffer_info_.alloc_buffer_info.aligned_height; in DumpInputBuffer()
229 char *buffer = reinterpret_cast<char *>(mmap(NULL, buffer_info_.alloc_buffer_info.size, in DumpInputBuffer()
231 buffer_info_.alloc_buffer_info.fd, 0)); in DumpInputBuffer()
258 fs.write(buffer, (std::streamsize)buffer_info_.alloc_buffer_info.size); in DumpInputBuffer()
269 if (munmap(buffer, buffer_info_.alloc_buffer_info.size) != 0) { in DumpInputBuffer()
332 uint8_t *buffer = reinterpret_cast<uint8_t *>(mmap(NULL, buffer_info_.alloc_buffer_info.size, in FillBuffer()
334 buffer_info_.alloc_buffer_info.fd, 0)); in FillBuffer()
355 if (munmap(buffer, buffer_info_.alloc_buffer_info.size) != 0) { in FillBuffer()
419 uint32_t aligned_width = buffer_info_.alloc_buffer_info.aligned_width; in GenerateColorRamp()
[all …]
Dhwc_display_primary.cpp406 const AllocatedBufferInfo &alloc_buffer_info = output_buffer_info.alloc_buffer_info; in SetLayerBuffer() local
408 output_buffer->width = alloc_buffer_info.aligned_width; in SetLayerBuffer()
409 output_buffer->height = alloc_buffer_info.aligned_height; in SetLayerBuffer()
413 output_buffer->planes[0].fd = alloc_buffer_info.fd; in SetLayerBuffer()
414 output_buffer->planes[0].stride = alloc_buffer_info.stride; in SetLayerBuffer()
452 if (munmap(output_buffer_base_, output_buffer_info_.alloc_buffer_info.size) != 0) { in HandleFrameDump()
488 void *buffer = mmap(NULL, output_buffer_info_.alloc_buffer_info.size, in SetFrameDumpConfig()
490 MAP_SHARED, output_buffer_info_.alloc_buffer_info.fd, 0); in SetFrameDumpConfig()
507 if (output_buffer_info.alloc_buffer_info.fd < 0) { in FrameCaptureAsync()
508 DLOGE("Invalid fd %d", output_buffer_info.alloc_buffer_info.fd); in FrameCaptureAsync()
Dhwc_color_manager.cpp358 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
359 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
360 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
375 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, in SetFrameCapture()
377 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0); in SetFrameCapture()
388 frame_capture_data->buffer_stride = buffer_info.alloc_buffer_info.aligned_width; in SetFrameCapture()
389 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size; in SetFrameCapture()
400 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) { in SetFrameCapture()
Dhwc_display_virtual.cpp188 buffer_info.alloc_buffer_info.size = static_cast<uint32_t>(output_handle->size); in Commit()
Dhwc_display.cpp1121 dir_path, buffer_info.alloc_buffer_info.aligned_width, in DumpOutputBuffer()
1122 buffer_info.alloc_buffer_info.aligned_height, in DumpOutputBuffer()
1127 result = fwrite(base, buffer_info.alloc_buffer_info.size, 1, fp); in DumpOutputBuffer()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp53 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer() local
105 alloc_buffer_info->fd = data.fd; in AllocateBuffer()
106 alloc_buffer_info->stride = UINT32(aligned_width); in AllocateBuffer()
107 alloc_buffer_info->size = buffer_size; in AllocateBuffer()
120 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer() local
123 if (alloc_buffer_info->fd > 0) { in FreeBuffer()
131 ret = memalloc->free_buffer(meta_buffer_info->base_addr, alloc_buffer_info->size, 0, in FreeBuffer()
132 alloc_buffer_info->fd); in FreeBuffer()
135 alloc_buffer_info->size, alloc_buffer_info->fd); in FreeBuffer()
139 alloc_buffer_info->fd = -1; in FreeBuffer()
[all …]
Dhwc_display_primary.cpp355 output_buffer->planes[0].fd = output_buffer_info.alloc_buffer_info.fd; in SetLayerBuffer()
356 output_buffer->planes[0].stride = output_buffer_info.alloc_buffer_info.stride; in SetLayerBuffer()
394 if (munmap(output_buffer_base_, output_buffer_info_.alloc_buffer_info.size) != 0) { in HandleFrameDump()
430 void *buffer = mmap(NULL, output_buffer_info_.alloc_buffer_info.size, in SetFrameDumpConfig()
432 MAP_SHARED, output_buffer_info_.alloc_buffer_info.fd, 0); in SetFrameDumpConfig()
449 if (output_buffer_info.alloc_buffer_info.fd < 0) { in FrameCaptureAsync()
450 DLOGE("Invalid fd %d", output_buffer_info.alloc_buffer_info.fd); in FrameCaptureAsync()
Dhwc_color_manager.cpp360 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
361 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
362 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
377 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, in SetFrameCapture()
379 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0); in SetFrameCapture()
390 frame_capture_data->buffer_stride = buffer_info.alloc_buffer_info.stride; in SetFrameCapture()
391 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size; in SetFrameCapture()
397 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) { in SetFrameCapture()
Dhwc_display_virtual.cpp188 buffer_info.alloc_buffer_info.size = static_cast<uint32_t>(output_handle->size); in Commit()
Dhwc_display.cpp940 result = fwrite(base, buffer_info.alloc_buffer_info.size, 1, fp); in DumpOutputBuffer()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp63 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer() local
89 alloc_buffer_info->fd = hnd->fd; in AllocateBuffer()
90 alloc_buffer_info->stride = UINT32(hnd->width); in AllocateBuffer()
91 alloc_buffer_info->size = hnd->size; in AllocateBuffer()
105 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer() local
106 alloc_buffer_info->fd = -1; in FreeBuffer()
107 alloc_buffer_info->stride = 0; in FreeBuffer()
108 alloc_buffer_info->size = 0; in FreeBuffer()
Dhwc_color_manager.cpp220 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
221 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
222 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
229 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameCapture()
230 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0); in SetFrameCapture()
239 frame_capture_data->buffer_stride = buffer_info.alloc_buffer_info.stride; in SetFrameCapture()
240 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size; in SetFrameCapture()
246 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) { in SetFrameCapture()
Dhwc_display_primary.cpp411 output_buffer->planes[0].fd = output_buffer_info.alloc_buffer_info.fd; in SetLayerBuffer()
412 output_buffer->planes[0].stride = output_buffer_info.alloc_buffer_info.stride; in SetLayerBuffer()
450 if (munmap(output_buffer_base_, output_buffer_info_.alloc_buffer_info.size) != 0) { in HandleFrameDump()
486 void *buffer = mmap(NULL, output_buffer_info_.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameDumpConfig()
487 MAP_SHARED, output_buffer_info_.alloc_buffer_info.fd, 0); in SetFrameDumpConfig()
504 if (output_buffer_info.alloc_buffer_info.fd < 0) { in FrameCaptureAsync()
505 DLOGE("Invalid fd %d", output_buffer_info.alloc_buffer_info.fd); in FrameCaptureAsync()
Dhwc_display_virtual.cpp149 buffer_info.alloc_buffer_info.size = static_cast<uint32_t>(output_handle->size); in Present()
Dhwc_display.cpp1189 result = fwrite(base, buffer_info.alloc_buffer_info.size, 1, fp); in BuildLayerStack()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp63 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer() local
89 alloc_buffer_info->fd = hnd->fd; in AllocateBuffer()
90 alloc_buffer_info->stride = UINT32(hnd->width); in AllocateBuffer()
91 alloc_buffer_info->size = hnd->size; in AllocateBuffer()
105 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer() local
106 alloc_buffer_info->fd = -1; in FreeBuffer()
107 alloc_buffer_info->stride = 0; in FreeBuffer()
108 alloc_buffer_info->size = 0; in FreeBuffer()
Dhwc_display_primary.cpp407 const AllocatedBufferInfo &alloc_buffer_info = output_buffer_info.alloc_buffer_info; in SetLayerBuffer() local
409 output_buffer->width = alloc_buffer_info.aligned_width; in SetLayerBuffer()
410 output_buffer->height = alloc_buffer_info.aligned_height; in SetLayerBuffer()
414 output_buffer->planes[0].fd = alloc_buffer_info.fd; in SetLayerBuffer()
415 output_buffer->planes[0].stride = alloc_buffer_info.stride; in SetLayerBuffer()
453 if (munmap(output_buffer_base_, output_buffer_info_.alloc_buffer_info.size) != 0) { in HandleFrameDump()
489 void *buffer = mmap(NULL, output_buffer_info_.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameDumpConfig()
490 MAP_SHARED, output_buffer_info_.alloc_buffer_info.fd, 0); in SetFrameDumpConfig()
507 if (output_buffer_info.alloc_buffer_info.fd < 0) { in FrameCaptureAsync()
508 DLOGE("Invalid fd %d", output_buffer_info.alloc_buffer_info.fd); in FrameCaptureAsync()
Dhwc_color_manager.cpp215 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
216 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
217 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
232 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameCapture()
233 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0); in SetFrameCapture()
245 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size; in SetFrameCapture()
256 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) { in SetFrameCapture()
Dhwc_display_virtual.cpp146 buffer_info.alloc_buffer_info.size = static_cast<uint32_t>(output_handle->size); in Present()
Dhwc_display.cpp1212 result = fwrite(base, buffer_info.alloc_buffer_info.size, 1, fp); in BuildLayerStack()
/hardware/qcom/display/msm8996/sdm/include/core/
Dbuffer_allocator.h75 AllocatedBufferInfo alloc_buffer_info; //!< Specifies buffer information of allocated buffer. member
/hardware/qcom/display/msm8998/sdm/include/core/
Dbuffer_allocator.h80 AllocatedBufferInfo alloc_buffer_info; //!< Specifies buffer information of allocated buffer. member