Searched refs:allocSize (Results 1 - 11 of 11) sorted by relevance
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | av_virtual_memory.cpp | 74 int32_t allocSize = align_ ? (capacity_ + align_ - 1) : capacity_; in Init() local 75 base_ = static_cast<uint8_t *>(allocator_->Alloc(allocSize)); in Init()
|
H A D | av_shared_memory_ext.cpp | 95 int32_t allocSize = align_ ? (capacity_ + align_ - 1) : capacity_; in Init() local 96 fd_ = reinterpret_cast<intptr_t>(allocator_->Alloc(allocSize)); in Init()
|
/foundation/multimedia/media_foundation/src/common/ |
H A D | share_memory.cpp | 33 size_t allocSize = align ? (capacity + align - 1) : capacity; in ShareMemory() local 36 fd_ = (uintptr_t)shareAllocator_->Alloc(allocSize); in ShareMemory() 37 sharedMem_ = std::make_shared<Ashmem>(fd_, allocSize); in ShareMemory()
|
/foundation/multimedia/media_foundation/engine/plugin/common/ |
H A D | share_memory.cpp | 27 size_t allocSize = align ? (capacity + align - 1) : capacity; in ShareMemory() local 30 fd_ = (uintptr_t)shareAllocator_->Alloc(allocSize); in ShareMemory() 31 sharedMem_ = std::make_shared<Ashmem>(fd_, allocSize); in ShareMemory()
|
H A D | plugin_buffer.cpp | 36 size_t allocSize = align ? (capacity + align - 1) : capacity; in Memory() local 38 addr = std::shared_ptr<uint8_t>(static_cast<uint8_t*>(this->allocator->Alloc(allocSize)), in Memory() 41 addr = std::shared_ptr<uint8_t>(new uint8_t[allocSize], std::default_delete<uint8_t[]>()); in Memory()
|
/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_cache.cpp | 53 uint32_t allocSize = sizeof(Bitmap) + size; in GetSpace() local 55 bitmap = reinterpret_cast<Bitmap*>(allocator_.Allocate(allocSize)); in GetSpace()
|
/foundation/multimedia/media_foundation/src/plugin/ |
H A D | plugin_buffer.cpp | 35 size_t allocSize = align ? (capacity + align - 1) : capacity; in Memory() local 37 addr = std::shared_ptr<uint8_t>(static_cast<uint8_t*>(this->allocator->Alloc(allocSize)), in Memory() 40 addr = std::shared_ptr<uint8_t>(new uint8_t[allocSize], std::default_delete<uint8_t[]>()); in Memory()
|
/foundation/filemanagement/user_file_service/interfaces/kits/js/src/common/ |
H A D | file_info_shared_memory.h | 214 uint64_t allocSize = ((memInfo.leftDataCounts + memInfo.totalDataCounts - 1) / memInfo.totalDataCounts + 1) in CalculateMemSize() local 217 if (allocSize >= MAX_CAPACITY_2MB && memInfo.memSize < MAX_CAPACITY_2MB) { in CalculateMemSize() 223 if (allocSize < MAX_CAPACITY_2MB && memInfo.memSize < MAX_CAPACITY_2MB && memInfo.memSize < allocSize) { in CalculateMemSize() 224 memSize = allocSize; in CalculateMemSize()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_decoder/ |
H A D | audio_ffmpeg_decoder_plugin.cpp | 354 auto allocSize = AlignUp(configSize + AV_INPUT_BUFFER_PADDING_SIZE, 16); // 16 in AssignExtraDataIfExistsLocked() local 355 ctx->extradata = static_cast<uint8_t*>(av_mallocz(allocSize)); in AssignExtraDataIfExistsLocked() 359 if (memcpy_s(ctx->extradata, allocSize, codecConfig->data(), configSize) != EOK) { in AssignExtraDataIfExistsLocked()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc.cpp | 927 uint64_t allocSize = static_cast<uint64_t>(srcWidth + 1) * static_cast<uint64_t>(srcHeight) * in ScalePixelMapEx() local 929 if (srcRowStride[0] <= 0 || byteCount > UINT_MAX || allocSize < byteCount) { in ScalePixelMapEx() 934 inBuf = malloc(allocSize); in ScalePixelMapEx() 936 errno_t errRet = memcpy_s(inBuf, allocSize, pixelMap.GetWritablePixels(), byteCount); in ScalePixelMapEx()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/ |
H A D | video_ffmpeg_decoder_plugin.cpp | 279 auto allocSize = AlignUp(configSize + AV_INPUT_BUFFER_PADDING_SIZE, STRIDE_ALIGN); in SetCodecExtraData() local 280 avCodecContext_->extradata = static_cast<uint8_t*>(av_mallocz(allocSize)); in SetCodecExtraData()
|
Completed in 14 milliseconds