/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
H A D | queue.h | 28 FILLP_INT allocType; member 89 static __inline void FillpQueueInit(FillpQueue *q, char *name, size_t size, FILLP_INT allocType) in FillpQueueInit() argument 93 q->allocType = allocType; in FillpQueueInit() 97 static __inline FillpQueue *FillpQueueCreate(char *name, size_t size, FILLP_INT allocType) in FillpQueueCreate() argument 100 q = (FillpQueue *)SpungeAlloc(1, FillpQueueCalMemSize(size), allocType); in FillpQueueCreate() 106 FillpQueueInit(q, name, size, allocType); in FillpQueueCreate() 117 if ((q->allocType == SPUNGE_ALLOC_TYPE_MALLOC) || (q->allocType == SPUNGE_ALLOC_TYPE_CALLOC)) { in FillpQueueDestroy() 118 SpungeFree(q, q->allocType); in FillpQueueDestroy() [all...] |
H A D | spunge_mem.h | 29 void *SpungeAlloc(size_t blockNum, size_t blockSize, FILLP_INT allocType); 30 void SpungeFree(void *p, FILLP_INT allocType);
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | spunge_mem.c | 22 void *SpungeAlloc(size_t blockNum, size_t blockSize, FILLP_INT allocType) in SpungeAlloc() argument 28 switch (allocType) { in SpungeAlloc() 48 void SpungeFree(void *p, FILLP_INT allocType) in SpungeFree() argument 54 switch (allocType) { in SpungeFree()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_map_parcel.cpp | 43 void PixelMapParcel::ReleaseMemory(AllocatorType allocType, void *addr, void *context, uint32_t size) in ReleaseMemory() argument 45 if (allocType == AllocatorType::SHARE_MEM_ALLOC) { in ReleaseMemory() 56 } else if (allocType == AllocatorType::HEAP_ALLOC) { in ReleaseMemory() 132 AllocatorType allocType = static_cast<AllocatorType>(data.ReadInt32()); in CreateFromParcel() local 135 if (allocType == AllocatorType::SHARE_MEM_ALLOC) { in CreateFromParcel() 145 ReleaseMemory(allocType, base, reinterpret_cast<void *>(context), bufferSize); in CreateFromParcel() 149 pixelMap->SetPixelsAddr(base, reinterpret_cast<void *>(context), bufferSize, allocType, nullptr); in CreateFromParcel()
|
H A D | pixel_map.cpp | 1921 void PixelMap::ReleaseMemory(AllocatorType allocType, void *addr, void *context, uint32_t size) in ReleaseMemory() argument 1924 if (allocType == AllocatorType::SHARE_MEM_ALLOC) { in ReleaseMemory() 1936 } else if (allocType == AllocatorType::HEAP_ALLOC) { in ReleaseMemory() 1941 } else if (allocType == AllocatorType::DMA_ALLOC) { in ReleaseMemory() 2933 int32_t allocType = static_cast<int32_t>(AllocatorType::DEFAULT); in DecodeTlv() local 2934 ReadTlvAttr(buff, imageInfo, allocType, dataSize, &data); in DecodeTlv() 2935 if (data == nullptr || allocType != static_cast<int32_t>(AllocatorType::HEAP_ALLOC)) { in DecodeTlv() 2937 IMAGE_LOGE("pixel map tlv decode fail: no data or invalid allocType"); in DecodeTlv() 2953 pixelMap->SetPixelsAddr(data, nullptr, dataSize, static_cast<AllocatorType>(allocType), nullptr); in DecodeTlv() 3409 AllocatorType allocType; member [all...] |
H A D | pixel_yuv.cpp | 68 AllocatorType allocType; member
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | spunge_app.c | 84 struct FtSocket *SpungeAllocSock(FILLP_INT allocType) in SpungeAllocSock() argument 93 if (allocType != SOCK_ALLOC_STATE_COMM && allocType != SOCK_ALLOC_STATE_EPOLL) { in SpungeAllocSock() 109 sock->allocState = allocType; in SpungeAllocSock()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | image_format_convert.cpp | 264 auto m = CreateMemory(destInfo.format, destInfo.allocType, destInfo.width, in ConvertImageFormat() 517 auto allocType = srcPiexlMap->GetAllocatorType(); in RGBConvertImageFormatOption() local 518 auto m = CreateMemory(destFormat, allocType, width, height, dstStrides); in RGBConvertImageFormatOption() 525 if (allocType == AllocatorType::DMA_ALLOC) { in RGBConvertImageFormatOption() 534 DestConvertInfo destInfo = {width, height, destFormat, allocType}; in RGBConvertImageFormatOption() 568 auto allocType = srcPiexlMap->GetAllocatorType(); in RGBConvertImageFormatOptionUnique() local 569 auto memory = CreateMemory(destFormat, allocType, width, height, dstStrides); in RGBConvertImageFormatOptionUnique() 576 if (allocType == AllocatorType::DMA_ALLOC) { in RGBConvertImageFormatOptionUnique() 585 DestConvertInfo destInfo = {width, height, destFormat, allocType}; in RGBConvertImageFormatOptionUnique() 606 auto allocType in GetAllocatorType() local 635 auto allocType = GetAllocatorType(srcPiexlMap, destFormat); YUVConvertImageFormatOption() local [all...] |
H A D | image_format_convert_utils.cpp | 101 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvToRGBParam() 122 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in RGBToYuvParam() 275 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvP010ToRGBParam() 347 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in RGBToYuvP010Param() 621 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvToYuvP010Param() 679 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvP010ToYuvParam() 760 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvP010ToYuvP010Param() 1112 if (destInfo.allocType == AllocatorType::DMA_ALLOC) { in YuvToYuvParam()
|
H A D | image_format_convert_ext_utils.cpp | 131 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in RGBToYuvParam() 227 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in YuvToRGBParam() 380 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in RGBToYuvP010Param() 650 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in YuvToP010Param() 775 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in YuvP010ToYuvParam() 883 if (destInfo.allocType == AllocatorType::DMA_ALLOC) {
in YuvP010ToRGBParam()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/include/ |
H A D | spunge_app.h | 35 struct FtSocket *SpungeAllocSock(FILLP_INT allocType);
|
/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | pixel_map_parcel.h | 32 static void ReleaseMemory(AllocatorType allocType, void *addr, void *context, uint32_t size);
|
H A D | image_type.h | 258 AllocatorType allocType = AllocatorType::SHARE_MEM_ALLOC; member 271 AllocatorType allocType = AllocatorType::SHARE_MEM_ALLOC ; member 282 AllocatorType allocType = AllocatorType::SHARE_MEM_ALLOC; member
|
H A D | pixel_map.h | 461 static void ReleaseMemory(AllocatorType allocType, void *addr, void *context, uint32_t size);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
H A D | rs_profiler_pixelmap.cpp | 251 AllocatorType allocType = AllocatorType::DEFAULT; member 358 context.allocType = static_cast<AllocatorType>(context.parcel.ReadInt32()); in InitUnmarshalling() 469 PixelMap::ReleaseMemory(context.allocType, context.base, context.context, context.size); in FinalizeUnmarshalling() 470 if (context.context && (context.allocType == AllocatorType::SHARE_MEM_ALLOC)) { in FinalizeUnmarshalling() 478 context.map->SetPixelsAddr(context.base, context.context, context.size, context.allocType, nullptr); in FinalizeUnmarshalling() 509 if (context.allocType == AllocatorType::SHARE_MEM_ALLOC) { in Unmarshal() 513 } else if (context.allocType == AllocatorType::DMA_ALLOC) { in Unmarshal()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | auxiliary_generator.cpp | 80 static void FreeContextBuffer(const Media::CustomFreePixelMap &func, AllocatorType allocType, PlImageBuffer &buffer) in FreeContextBuffer() argument 88 if (allocType == AllocatorType::SHARE_MEM_ALLOC) { in FreeContextBuffer() 97 } else if (allocType == AllocatorType::DMA_ALLOC) { in FreeContextBuffer() 102 } else if (allocType == AllocatorType::HEAP_ALLOC) { in FreeContextBuffer()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_resource_manager.h | 410 RenderHandle handle, const ResourceDescriptor& descriptor, AllocType allocType, uint32_t optResourceIndex) in OperationDescription() 411 : handle(handle), descriptor(descriptor), allocType(allocType), optionalResourceIndex(optResourceIndex), in OperationDescription() 417 AllocType allocType { AllocType::UNDEFINED }; 493 AllocType allocType { AllocType::ALLOC };
|
H A D | gpu_resource_manager.cpp | 1245 if (ref.allocType == AllocType::ALLOC) { 1246 ref.allocType = AllocType::REMOVED; 1644 if (allocation.allocType == AllocType::REMOVED) { 1654 if (allocation.allocType == AllocType::ALLOC) { 1667 } else if (allocation.allocType == AllocType::DEALLOC) { 1946 if (ref.allocType == AllocType::DEALLOC) { 1958 } else if (ref.allocType == AllocType::REMOVED) { 2208 data.handle.GetHandle(), info.descriptor, info.allocType, info.optResourceIndex); 2216 info.allocType, info.optResourceIndex };
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_format_convert_fail_test.cpp | 74 destInfo.allocType = AllocatorType::DMA_ALLOC; in HWTEST_F() 117 destInfo.allocType = AllocatorType::DMA_ALLOC; in HWTEST_F() 210 destInfo.allocType = AllocatorType::DMA_ALLOC; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/memory/ |
H A D | rs_memory_track.h | 44 OHOS::Media::AllocatorType allocType; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/memory/ |
H A D | rs_memory_track.cpp | 187 std::string alloc_type_str = AllocatorType2String(info.allocType); in PixelMapInfo2String() 287 if (info.allocType != OHOS::Media::AllocatorType::DMA_ALLOC) { in DumpMemoryPicStatistics()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 667 static void FreeContextBuffer(const Media::CustomFreePixelMap &func, AllocatorType allocType, PlImageBuffer &buffer)
in HeapMemAlloc() argument 675 if (allocType == AllocatorType::SHARE_MEM_ALLOC) {
in HeapMemAlloc() 684 } else if (allocType == AllocatorType::DMA_ALLOC) {
in HeapMemAlloc() 689 } else if (allocType == AllocatorType::HEAP_ALLOC) {
in HeapMemAlloc() 715 destInfo.allocType = context.allocatorType;
in HeapMemAlloc()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/image_native/ |
H A D | pixel_map.h | 258 static void ReleaseMemory(AllocatorType allocType, void *addr, void *context, uint32_t size);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/ |
H A D | image_source.cpp | 656 static void FreeContextBuffer(const Media::CustomFreePixelMap &func, AllocatorType allocType, PlImageBuffer &buffer) 664 if (allocType == AllocatorType::SHARE_MEM_ALLOC) { 673 } else if (allocType == AllocatorType::DMA_ALLOC) { 678 } else if (allocType == AllocatorType::HEAP_ALLOC) {
|