Home
last modified time | relevance | path

Searched refs:entry_capacity (Results 1 – 3 of 3) sorted by relevance

/system/media/camera/tests/
Dcamera_metadata_tests.cpp51 const size_t entry_capacity = 5; in TEST() local
54 m = allocate_camera_metadata(entry_capacity, data_capacity); in TEST()
58 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
113 const size_t entry_capacity = 5; in TEST() local
116 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST()
125 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
129 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
142 const size_t entry_capacity = 5; in TEST() local
145 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST()
156 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
[all …]
/system/media/camera/src/
Dcamera_metadata.c99 metadata_size_t entry_capacity; member
152 _Static_assert(offsetof(camera_metadata_t, entry_capacity) == 16,
249 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity, in allocate_camera_metadata() argument
252 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in allocate_camera_metadata()
256 buffer, memory_needed, entry_capacity, data_capacity); in allocate_camera_metadata()
268 size_t entry_capacity, in place_camera_metadata() argument
272 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in place_camera_metadata()
280 metadata->entry_capacity = entry_capacity; in place_camera_metadata()
287 metadata->entry_capacity) - (uint8_t*)metadata; in place_camera_metadata()
330 return metadata->entry_capacity; in get_camera_metadata_entry_capacity()
[all …]
/system/media/camera/include/system/
Dcamera_metadata.h167 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity,
202 size_t entry_capacity,