Home
last modified time | relevance | path

Searched refs:metadataSize (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/libs/gui/
DHdrMetadata.cpp50 size_t metadataSize = hdr10plus.size(); in flatten() local
51 FlattenableUtils::write(buffer, size, metadataSize); in flatten()
52 memcpy(buffer, hdr10plus.data(), metadataSize); in flatten()
53 FlattenableUtils::advance(buffer, size, metadataSize); in flatten()
81 size_t metadataSize; in unflatten() local
82 FlattenableUtils::read(buffer, size, metadataSize); in unflatten()
84 if (size < metadataSize) { in unflatten()
88 hdr10plus.resize(metadataSize); in unflatten()
89 memcpy(hdr10plus.data(), buffer, metadataSize); in unflatten()
90 FlattenableUtils::advance(buffer, size, metadataSize); in unflatten()
/frameworks/native/libs/ui/
DBufferHubMetadata.cpp45 const size_t metadataSize = userMetadataSize + kMetadataHeaderSize; in create() local
46 int fd = ashmem_create_region(/*name=*/"BufferHubMetadata", metadataSize); in create()
72 size_t metadataSize = static_cast<size_t>(ashmem_get_size_region(ashmemFd.get())); in import() local
73 size_t userMetadataSize = metadataSize - kMetadataHeaderSize; in import()
78 auto metadataHeader = static_cast<MetadataHeader*>(mmap(nullptr, metadataSize, kAshmemProt, in import()
97 int ret = munmap(mMetadataHeader, metadataSize()); in ~BufferHubMetadata()
DBufferHubBuffer.cpp204 size_t metadataSize = static_cast<size_t>(mMetadata.metadataSize()); in initWithBufferTraits() local
205 if (metadataSize < BufferHubDefs::kMetadataHeaderSize) { in initWithBufferTraits()
206 ALOGE("%s: metadata too small: %zu", __FUNCTION__, metadataSize); in initWithBufferTraits()
/frameworks/native/libs/ui/include/ui/
DBufferHubMetadata.h69 size_t metadataSize() const { return mUserMetadataSize + BufferHubDefs::kMetadataHeaderSize; } in metadataSize() function
/frameworks/av/camera/
DCameraMetadata.cpp560 const size_t metadataSize = blobSize - alignment; in readFromParcel() local
596 metadata = allocate_copy_camera_metadata_checked(tmp, metadataSize); in readFromParcel()
651 const size_t metadataSize = get_camera_metadata_compact_size(metadata); in writeToParcel() local
653 const size_t blobSize = metadataSize + alignment; in writeToParcel()
694 copy_camera_metadata(reinterpret_cast<void*>(metadataStart), metadataSize, metadata); in writeToParcel()