Home
last modified time | relevance | path

Searched refs:buffer_descriptor (Results 1 – 18 of 18) sorted by relevance

/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_bufferdescriptor.cpp46 if (buffer_descriptor && buffer_descriptor->signature == sizeof(*buffer_descriptor)) in descriptor_is_valid()
57 buffer_descriptor_t *buffer_descriptor; in mali_gralloc_create_descriptor_internal() local
66 if (NULL == buffer_descriptor) in mali_gralloc_create_descriptor_internal()
79 memset((void *)buffer_descriptor, 0, sizeof(*buffer_descriptor)); in mali_gralloc_create_descriptor_internal()
80 buffer_descriptor->fd_count = 1; in mali_gralloc_create_descriptor_internal()
81 buffer_descriptor->layer_count = 1; in mali_gralloc_create_descriptor_internal()
97 free(buffer_descriptor); in mali_gralloc_destroy_descriptor_internal()
110 buffer_descriptor->width = width; in mali_gralloc_set_dimensions_internal()
111 buffer_descriptor->height = height; in mali_gralloc_set_dimensions_internal()
143 buffer_descriptor->producer_usage = usage; in mali_gralloc_set_producerusage_internal()
[all …]
H A Dgralloc_vendor_interface.cpp92 buffer_descriptor_t buffer_descriptor; in createNativeHandle() local
95 buffer_descriptor.width = descriptor.width; in createNativeHandle()
96 buffer_descriptor.height = descriptor.height; in createNativeHandle()
97 buffer_descriptor.layer_count = 1; in createNativeHandle()
98 buffer_descriptor.hal_format = descriptor.format; in createNativeHandle()
104 buffer_descriptor.alloc_format = buffer_descriptor.internal_format in createNativeHandle()
105 = buffer_descriptor.hal_format; in createNativeHandle()
107 buffer_descriptor.fd_count = buffer_descriptor.plane_count in createNativeHandle()
125 buffer_descriptor.plane_info[i] = { in createNativeHandle()
127 .alloc_width = buffer_descriptor.width, in createNativeHandle()
[all …]
H A Dmali_gralloc_bufferdescriptor.h35 typedef struct buffer_descriptor struct
62 buffer_descriptor() : in buffer_descriptor() argument
/aosp12/hardware/google/camera/common/hal/tests/
H A Dgralloc_buffer_allocator_tests.cc41 HalBufferDescriptor buffer_descriptor = {}; in TEST() local
42 buffer_descriptor.width = kBufferWidth; in TEST()
43 buffer_descriptor.height = kBufferHeight; in TEST()
44 buffer_descriptor.format = HAL_PIXEL_FORMAT_RAW10; in TEST()
47 buffer_descriptor.immediate_num_buffers = kMaxBufferDepth; in TEST()
48 buffer_descriptor.max_num_buffers = kMaxBufferDepth; in TEST()
66 HalBufferDescriptor buffer_descriptor = {}; in TEST() local
67 buffer_descriptor.width = kBufferWidth; in TEST()
68 buffer_descriptor.height = kBufferHeight; in TEST()
69 buffer_descriptor.format = HAL_PIXEL_FORMAT_RAW10; in TEST()
[all …]
H A Dhwl_buffer_allocator_tests.cc48 HalBufferDescriptor buffer_descriptor = {}; in TEST() local
49 buffer_descriptor.width = kBufferWidth; in TEST()
50 buffer_descriptor.height = kBufferHeight; in TEST()
51 buffer_descriptor.format = HAL_PIXEL_FORMAT_RAW10; in TEST()
52 buffer_descriptor.producer_flags = GRALLOC1_PRODUCER_USAGE_CAMERA; in TEST()
53 buffer_descriptor.consumer_flags = GRALLOC1_CONSUMER_USAGE_CAMERA; in TEST()
54 buffer_descriptor.immediate_num_buffers = kMaxBufferDepth; in TEST()
55 buffer_descriptor.max_num_buffers = kMaxBufferDepth; in TEST()
58 status_t res = allocator->AllocateBuffers(buffer_descriptor, &buffers_); in TEST()
H A Dmock_buffer_allocator_hwl.h43 status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor, in AllocateBuffers() argument
45 buffers->resize(buffer_descriptor.max_num_buffers); in AllocateBuffers()
H A Dcamera_device_session_tests.cc419 HalBufferDescriptor buffer_descriptor = { in TEST_F() local
433 ASSERT_EQ(allocator->AllocateBuffers(buffer_descriptor, &preview_buffers), OK); in TEST_F()
/aosp12/hardware/google/gchips/gralloc4/src/libGralloc4Wrapper/
H A Dwrapper.cpp84 buffer_descriptor_t buffer_descriptor; in createNativeHandle() local
86 buffer_descriptor.pixel_stride = descriptor.stride_pixel; in createNativeHandle()
87 buffer_descriptor.width = descriptor.width; in createNativeHandle()
88 buffer_descriptor.height = descriptor.height; in createNativeHandle()
89 buffer_descriptor.layer_count = 1; in createNativeHandle()
90 buffer_descriptor.hal_format = buffer_descriptor.alloc_format in createNativeHandle()
97 buffer_descriptor.fd_count = buffer_descriptor.plane_count in createNativeHandle()
116 buffer_descriptor.plane_info[i] = { in createNativeHandle()
118 .alloc_width = buffer_descriptor.width, in createNativeHandle()
119 .alloc_height = buffer_descriptor.height, in createNativeHandle()
[all …]
/aosp12/hardware/google/camera/common/hal/utils/
H A Dinternal_stream_manager.cc119 if (buffer_descriptor == nullptr) { in GetBufferDescriptor()
130 buffer_descriptor->stream_id = stream.id; in GetBufferDescriptor()
131 buffer_descriptor->width = stream.width; in GetBufferDescriptor()
132 buffer_descriptor->height = stream.height; in GetBufferDescriptor()
133 buffer_descriptor->format = hal_stream.override_format; in GetBufferDescriptor()
134 buffer_descriptor->producer_flags = hal_stream.producer_usage; in GetBufferDescriptor()
135 buffer_descriptor->consumer_flags = hal_stream.consumer_usage; in GetBufferDescriptor()
137 buffer_descriptor->max_num_buffers = in GetBufferDescriptor()
168 HalBufferDescriptor buffer_descriptor; in AllocateBuffersLocked() local
186 res = buffer_manager->AllocateBuffers(buffer_descriptor); in AllocateBuffersLocked()
[all …]
H A Dhwl_buffer_allocator.cc65 const HalBufferDescriptor& buffer_descriptor, in AllocateBuffers() argument
68 HalBufferDescriptor local_descriptor = buffer_descriptor; in AllocateBuffers()
H A Dzsl_buffer_manager.cc48 const HalBufferDescriptor& buffer_descriptor) { in AllocateBuffers() argument
69 uint32_t num_buffers = buffer_descriptor.immediate_num_buffers; in AllocateBuffers()
70 buffer_descriptor_ = buffer_descriptor; in AllocateBuffers()
88 HalBufferDescriptor buffer_descriptor = buffer_descriptor_; in AllocateBuffersLocked() local
89 buffer_descriptor.immediate_num_buffers = buffer_number; in AllocateBuffersLocked()
91 status_t res = buffer_allocator_->AllocateBuffers(buffer_descriptor, &buffers); in AllocateBuffersLocked()
H A Dgralloc_buffer_allocator.cc70 const HalBufferDescriptor& buffer_descriptor, in AllocateBuffers() argument
75 ConvertHalBufferDescriptor(buffer_descriptor, &gralloc_buffer_descriptor); in AllocateBuffers()
H A Dhal_buffer_allocator.h36 virtual status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor,
H A Dgralloc_buffer_allocator.h48 status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor,
H A Dhwl_buffer_allocator.h44 status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor,
H A Dzsl_buffer_manager.h60 status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor);
H A Dinternal_stream_manager.h119 HalBufferDescriptor* buffer_descriptor);
/aosp12/hardware/google/camera/common/hal/hwl_interface/
H A Dcamera_buffer_allocator_hwl.h41 virtual status_t AllocateBuffers(const HalBufferDescriptor& buffer_descriptor,