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.cpp49 const size_t entry_capacity = 5; in TEST() local
52 m = allocate_camera_metadata(entry_capacity, data_capacity); in TEST()
56 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
111 const size_t entry_capacity = 5; in TEST() local
114 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST()
123 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
127 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
140 const size_t entry_capacity = 5; in TEST() local
143 size_t buf_size = calculate_camera_metadata_size(entry_capacity, in TEST()
154 m = place_camera_metadata(buf, buf_size, entry_capacity, data_capacity); in TEST()
[all …]
/system/media/camera/src/
Dcamera_metadata.c96 metadata_size_t entry_capacity; member
196 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity, in allocate_camera_metadata() argument
199 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in allocate_camera_metadata()
203 entry_capacity, in allocate_camera_metadata()
209 size_t entry_capacity, in place_camera_metadata() argument
213 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in place_camera_metadata()
221 metadata->entry_capacity = entry_capacity; in place_camera_metadata()
228 metadata->entry_capacity) - (uint8_t*)metadata; in place_camera_metadata()
268 return metadata->entry_capacity; in get_camera_metadata_entry_capacity()
353 if (metadata->entry_count > metadata->entry_capacity) { in validate_camera_metadata_structure()
[all …]
/system/media/camera/include/system/
Dcamera_metadata.h168 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity,
203 size_t entry_capacity,