Lines Matching refs:buffer_info
202 std::memset(&buffer_info, 0x00, sizeof(buffer_info));
203 hwc_display->GetFrameBufferResolution(&buffer_info.buffer_config.width,
204 &buffer_info.buffer_config.height);
206 buffer_info.buffer_config.format = kFormatRGB888;
216 buffer_info.buffer_config.buffer_count = 1;
217 buffer_info.alloc_buffer_info.fd = -1;
218 buffer_info.alloc_buffer_info.stride = 0;
219 buffer_info.alloc_buffer_info.size = 0;
227 ret = buffer_allocator_->AllocateBuffer(&buffer_info);
234 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE,
235 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0);
240 ret = buffer_allocator_->FreeBuffer(&buffer_info);
246 frame_capture_data->buffer_stride = buffer_info.alloc_buffer_info.stride;
247 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size;
253 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) {
259 ret = buffer_allocator_->FreeBuffer(&buffer_info);