Lines Matching refs:buffer_info
345 std::memset(&buffer_info, 0x00, sizeof(buffer_info));
346 hwc_display->GetFrameBufferResolution(&buffer_info.buffer_config.width,
347 &buffer_info.buffer_config.height);
349 buffer_info.buffer_config.format = kFormatRGB888;
359 buffer_info.buffer_config.buffer_count = 1;
360 buffer_info.alloc_buffer_info.fd = -1;
361 buffer_info.alloc_buffer_info.stride = 0;
362 buffer_info.alloc_buffer_info.size = 0;
370 ret = buffer_allocator_->AllocateBuffer(&buffer_info);
377 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size,
379 MAP_SHARED, buffer_info.alloc_buffer_info.fd, 0);
384 ret = buffer_allocator_->FreeBuffer(&buffer_info);
390 frame_capture_data->buffer_stride = buffer_info.alloc_buffer_info.stride;
391 frame_capture_data->buffer_size = buffer_info.alloc_buffer_info.size;
397 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) {
403 ret = buffer_allocator_->FreeBuffer(&buffer_info);