Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 - 11 of 11) sorted by relevance

/foundation/multimedia/media_foundation/src/buffer/avbuffer/
H A Dav_virtual_memory.cpp74 int32_t allocSize = align_ ? (capacity_ + align_ - 1) : capacity_; in Init() local
75 base_ = static_cast<uint8_t *>(allocator_->Alloc(allocSize)); in Init()
H A Dav_shared_memory_ext.cpp95 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 Dshare_memory.cpp33 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 Dshare_memory.cpp27 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 Dplugin_buffer.cpp36 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 Dui_font_cache.cpp53 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 Dplugin_buffer.cpp35 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 Dfile_info_shared_memory.h214 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 Daudio_ffmpeg_decoder_plugin.cpp354 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 Dpost_proc.cpp927 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 Dvideo_ffmpeg_decoder_plugin.cpp279 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 8 milliseconds