Home
last modified time | relevance | path

Searched refs:buffer_info (Results 1 – 25 of 78) sorted by relevance

1234

/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_color_manager.cpp205 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
206 hwc_display->GetFrameBufferResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
207 &buffer_info.buffer_config.height); in SetFrameCapture()
209 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
219 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
220 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()
224 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
229 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameCapture()
[all …]
Dhwc_buffer_allocator.cpp61 DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { in AllocateBuffer() argument
62 const BufferConfig &buffer_config = buffer_info->buffer_config; in AllocateBuffer()
63 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer()
97 buffer_info->private_data = reinterpret_cast<void *>(hnd); in AllocateBuffer()
101 DisplayError HWCBufferAllocator::FreeBuffer(BufferInfo *buffer_info) { in FreeBuffer() argument
103 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); in FreeBuffer()
105 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer()
109 buffer_info->private_data = NULL; in FreeBuffer()
133 uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { in GetBufferSize() argument
134 const BufferConfig &buffer_config = buffer_info->buffer_config; in GetBufferSize()
Dhwc_buffer_allocator.h51 DisplayError AllocateBuffer(BufferInfo *buffer_info);
52 DisplayError FreeBuffer(BufferInfo *buffer_info);
53 uint32_t GetBufferSize(BufferInfo *buffer_info);
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_color_manager.cpp204 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
205 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
206 &buffer_info.buffer_config.height); in SetFrameCapture()
208 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
210 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
216 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
217 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
218 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
219 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
221 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_tonemapper.cpp106 BufferInfo &buffer_info = buffer_info_[i]; in AllocateIntermediateBuffers() local
107 buffer_info.buffer_config.width = layer->request.width; in AllocateIntermediateBuffers()
108 buffer_info.buffer_config.height = layer->request.height; in AllocateIntermediateBuffers()
109 buffer_info.buffer_config.format = layer->request.format; in AllocateIntermediateBuffers()
110 buffer_info.buffer_config.secure = layer->request.flags.secure; in AllocateIntermediateBuffers()
111 buffer_info.buffer_config.gfx_client = true; in AllocateIntermediateBuffers()
112 error = buffer_allocator_->AllocateBuffer(&buffer_info); in AllocateIntermediateBuffers()
128 BufferInfo &buffer_info = buffer_info_[i]; in FreeIntermediateBuffers() local
129 if (buffer_info.private_data) { in FreeIntermediateBuffers()
130 buffer_allocator_->FreeBuffer(&buffer_info); in FreeIntermediateBuffers()
[all …]
Dhwc_buffer_allocator.cpp85 DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { in AllocateBuffer() argument
86 const BufferConfig &buffer_config = buffer_info->buffer_config; in AllocateBuffer()
87 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer()
132 buffer_info->private_data = reinterpret_cast<void *>(hnd); in AllocateBuffer()
136 DisplayError HWCBufferAllocator::FreeBuffer(BufferInfo *buffer_info) { in FreeBuffer() argument
138 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); in FreeBuffer()
140 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer()
145 buffer_info->private_data = NULL; in FreeBuffer()
172 uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { in GetBufferSize() argument
173 const BufferConfig &buffer_config = buffer_info->buffer_config; in GetBufferSize()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_color_manager.cpp205 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
206 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
207 &buffer_info.buffer_config.height); in SetFrameCapture()
209 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
211 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
217 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
218 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
219 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
220 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
222 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_tonemapper.cpp106 BufferInfo &buffer_info = buffer_info_[i]; in AllocateIntermediateBuffers() local
107 buffer_info.buffer_config.width = layer->request.width; in AllocateIntermediateBuffers()
108 buffer_info.buffer_config.height = layer->request.height; in AllocateIntermediateBuffers()
109 buffer_info.buffer_config.format = layer->request.format; in AllocateIntermediateBuffers()
110 buffer_info.buffer_config.secure = layer->request.flags.secure; in AllocateIntermediateBuffers()
111 buffer_info.buffer_config.gfx_client = true; in AllocateIntermediateBuffers()
112 error = buffer_allocator_->AllocateBuffer(&buffer_info); in AllocateIntermediateBuffers()
128 BufferInfo &buffer_info = buffer_info_[i]; in FreeIntermediateBuffers() local
129 if (buffer_info.private_data) { in FreeIntermediateBuffers()
130 buffer_allocator_->FreeBuffer(&buffer_info); in FreeIntermediateBuffers()
[all …]
Dhwc_buffer_allocator.cpp67 DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { in AllocateBuffer() argument
68 const BufferConfig &buffer_config = buffer_info->buffer_config; in AllocateBuffer()
69 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer()
108 buffer_info->private_data = reinterpret_cast<void *>(hnd); in AllocateBuffer()
112 DisplayError HWCBufferAllocator::FreeBuffer(BufferInfo *buffer_info) { in FreeBuffer() argument
114 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); in FreeBuffer()
116 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer()
121 buffer_info->private_data = NULL; in FreeBuffer()
148 uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { in GetBufferSize() argument
149 const BufferConfig &buffer_config = buffer_info->buffer_config; in GetBufferSize()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_color_manager.cpp205 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
206 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
207 &buffer_info.buffer_config.height); in SetFrameCapture()
209 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
211 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
217 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
218 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
219 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
220 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
222 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_buffer_allocator.cpp61 DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { in AllocateBuffer() argument
62 const BufferConfig &buffer_config = buffer_info->buffer_config; in AllocateBuffer()
63 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer()
103 buffer_info->private_data = reinterpret_cast<void *>(hnd); in AllocateBuffer()
107 DisplayError HWCBufferAllocator::FreeBuffer(BufferInfo *buffer_info) { in FreeBuffer() argument
109 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); in FreeBuffer()
111 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer()
115 buffer_info->private_data = NULL; in FreeBuffer()
139 uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { in GetBufferSize() argument
140 const BufferConfig &buffer_config = buffer_info->buffer_config; in GetBufferSize()
Dhwc_tonemapper.cpp106 BufferInfo &buffer_info = buffer_info_[i]; in AllocateIntermediateBuffers() local
107 buffer_info.buffer_config.width = layer->request.width; in AllocateIntermediateBuffers()
108 buffer_info.buffer_config.height = layer->request.height; in AllocateIntermediateBuffers()
109 buffer_info.buffer_config.format = layer->request.format; in AllocateIntermediateBuffers()
110 buffer_info.buffer_config.secure = layer->request.flags.secure; in AllocateIntermediateBuffers()
111 buffer_info.buffer_config.gfx_client = true; in AllocateIntermediateBuffers()
112 error = buffer_allocator_->AllocateBuffer(&buffer_info); in AllocateIntermediateBuffers()
128 BufferInfo &buffer_info = buffer_info_[i]; in FreeIntermediateBuffers() local
129 if (buffer_info.private_data) { in FreeIntermediateBuffers()
130 buffer_allocator_->FreeBuffer(&buffer_info); in FreeIntermediateBuffers()
[all …]
Dhwc_buffer_allocator.h51 DisplayError AllocateBuffer(BufferInfo *buffer_info);
52 DisplayError FreeBuffer(BufferInfo *buffer_info);
53 uint32_t GetBufferSize(BufferInfo *buffer_info);
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_color_manager.cpp222 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
223 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
224 &buffer_info.buffer_config.height); in SetFrameCapture()
226 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
228 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
234 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
235 buffer_info.alloc_buffer_info.fd = -1; in SetFrameCapture()
236 buffer_info.alloc_buffer_info.stride = 0; in SetFrameCapture()
237 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture()
239 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_tonemapper.cpp106 BufferInfo &buffer_info = buffer_info_[i]; in AllocateIntermediateBuffers() local
107 buffer_info.buffer_config.width = layer->request.width; in AllocateIntermediateBuffers()
108 buffer_info.buffer_config.height = layer->request.height; in AllocateIntermediateBuffers()
109 buffer_info.buffer_config.format = layer->request.format; in AllocateIntermediateBuffers()
110 buffer_info.buffer_config.secure = layer->request.flags.secure; in AllocateIntermediateBuffers()
111 buffer_info.buffer_config.gfx_client = true; in AllocateIntermediateBuffers()
112 error = buffer_allocator_->AllocateBuffer(&buffer_info); in AllocateIntermediateBuffers()
128 BufferInfo &buffer_info = buffer_info_[i]; in FreeIntermediateBuffers() local
129 if (buffer_info.private_data) { in FreeIntermediateBuffers()
130 buffer_allocator_->FreeBuffer(&buffer_info); in FreeIntermediateBuffers()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp49 DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { in AllocateBuffer() argument
52 const BufferConfig &buffer_config = buffer_info->buffer_config; in AllocateBuffer()
53 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in AllocateBuffer()
112 buffer_info->private_data = meta_buffer_info; in AllocateBuffer()
117 DisplayError HWCBufferAllocator::FreeBuffer(BufferInfo *buffer_info) { in FreeBuffer() argument
120 AllocatedBufferInfo *alloc_buffer_info = &buffer_info->alloc_buffer_info; in FreeBuffer()
124 MetaBufferInfo *meta_buffer_info = static_cast<MetaBufferInfo *> (buffer_info->private_data); in FreeBuffer()
153 uint32_t HWCBufferAllocator::GetBufferSize(BufferInfo *buffer_info) { in GetBufferSize() argument
156 const BufferConfig &buffer_config = buffer_info->buffer_config; in GetBufferSize()
Dhwc_color_manager.cpp345 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
346 hwc_display->GetFrameBufferResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
347 &buffer_info.buffer_config.height); in SetFrameCapture()
349 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
359 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
360 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()
370 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
377 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, in SetFrameCapture()
[all …]
Dhwc_buffer_allocator.h49 DisplayError AllocateBuffer(BufferInfo *buffer_info);
50 DisplayError FreeBuffer(BufferInfo *buffer_info);
51 uint32_t GetBufferSize(BufferInfo *buffer_info);
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_color_manager.cpp345 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
346 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
347 &buffer_info.buffer_config.height); in SetFrameCapture()
349 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
351 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
357 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
358 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()
368 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_buffer_allocator.h49 DisplayError AllocateBuffer(BufferInfo *buffer_info);
50 DisplayError FreeBuffer(BufferInfo *buffer_info);
51 uint32_t GetBufferSize(BufferInfo *buffer_info);
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_color_manager.cpp345 std::memset(&buffer_info, 0x00, sizeof(buffer_info)); in SetFrameCapture()
346 hwc_display->GetPanelResolution(&buffer_info.buffer_config.width, in SetFrameCapture()
347 &buffer_info.buffer_config.height); in SetFrameCapture()
349 buffer_info.buffer_config.format = kFormatRGB888; in SetFrameCapture()
351 buffer_info.buffer_config.format = kFormatRGBA1010102; in SetFrameCapture()
357 buffer_info.buffer_config.buffer_count = 1; in SetFrameCapture()
358 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()
368 ret = buffer_allocator_->AllocateBuffer(&buffer_info); in SetFrameCapture()
[all …]
Dhwc_buffer_allocator.h49 DisplayError AllocateBuffer(BufferInfo *buffer_info);
50 DisplayError FreeBuffer(BufferInfo *buffer_info);
51 uint32_t GetBufferSize(BufferInfo *buffer_info);
/hardware/qcom/display/msm8996/sdm/include/core/
Dbuffer_allocator.h98 virtual DisplayError AllocateBuffer(BufferInfo *buffer_info) = 0;
109 virtual DisplayError FreeBuffer(BufferInfo *buffer_info) = 0;
120 virtual uint32_t GetBufferSize(BufferInfo *buffer_info) = 0;
/hardware/qcom/display/msm8998/sdm/include/core/
Dbuffer_allocator.h106 virtual DisplayError AllocateBuffer(BufferInfo *buffer_info) = 0;
117 virtual DisplayError FreeBuffer(BufferInfo *buffer_info) = 0;
128 virtual uint32_t GetBufferSize(BufferInfo *buffer_info) = 0;
/hardware/qcom/display/msm8909/sdm/include/core/
Dbuffer_allocator.h105 virtual DisplayError AllocateBuffer(BufferInfo *buffer_info) = 0;
116 virtual DisplayError FreeBuffer(BufferInfo *buffer_info) = 0;
127 virtual uint32_t GetBufferSize(BufferInfo *buffer_info) = 0;

1234