/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | rs_uni_render_pixelmap_demo.cpp | 59 …<Media::PixelMap> DecodePixelMap(const string& pathName, const Media::AllocatorType& allocatorType) in DecodePixelMap() argument 73 decodeOpt.allocatorType = allocatorType; in DecodePixelMap() 126 auto allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC; in main() local 127 …red_ptr<Media::PixelMap> bgpixelmap = DecodePixelMap("/data/local/tmp/test_bg.jpg", allocatorType); in main() 128 …ared_ptr<Media::PixelMap> maskPixelmap = DecodePixelMap("/data/local/tmp/mask.jpg", allocatorType); in main()
|
H A D | render_service_client__alpha_offscreen_demo.cpp | 38 …<Media::PixelMap> DecodePixelMap(const string& pathName, const Media::AllocatorType& allocatorType) in DecodePixelMap() argument 52 decodeOpt.allocatorType = allocatorType; in DecodePixelMap() 118 auto allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC; in main() local 119 …red_ptr<Media::PixelMap> bgpixelmap = DecodePixelMap("/data/local/tmp/test_bg.jpg", allocatorType); in main()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imageplugin_fuzzer/src/ |
H A D | image_plugin_fuzz.cpp | 70 AllocatorType allocatorType = AllocatorType::DEFAULT; in ExtDecoderFuncTest001() local 71 extDecoder->ReleaseOutputBuffer(context, allocatorType); in ExtDecoderFuncTest001() 106 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in SvgDecoderFuncTest001() 108 context.allocatorType = AllocatorType::DMA_ALLOC; in SvgDecoderFuncTest001() 110 context.allocatorType = AllocatorType::HEAP_ALLOC; in SvgDecoderFuncTest001()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc.cpp | 88 decodeOpts_.allocatorType = opts.allocatorType; in DecodePostProc() 96 decodeOpts_.allocatorType = opts.allocatorType; in DecodePostProc() 324 if (decodeOpts_.allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in CheckScanlineFilter() 353 if (decodeOpts_.allocatorType == AllocatorType::HEAP_ALLOC) { in CheckScanlineFilter() 422 if (decodeOpts_.allocatorType == AllocatorType::HEAP_ALLOC) { in PixelConvertProc() 449 if (decodeOpts_.allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in AllocBuffer() 542 void PostProc::ReleaseBuffer(AllocatorType allocatorType, int fd, in ReleaseBuffer() argument 546 if (allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in ReleaseBuffer() 553 if (allocatorType == AllocatorType::DMA_ALLOC) { in ReleaseBuffer() 564 if (allocatorType == AllocatorType::HEAP_ALLOC) { in ReleaseBuffer() [all …]
|
H A D | basic_transformer.cpp | 141 void BasicTransformer::ReleaseBuffer(AllocatorType allocatorType, int fd, int dataSize, uint8_t *bu… in ReleaseBuffer() argument 144 if (allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in ReleaseBuffer() 153 if (allocatorType == AllocatorType::HEAP_ALLOC) { in ReleaseBuffer()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | common_utils.cpp | 306 BufferType CommonUtils::SwitchToEffectBuffType(AllocatorType allocatorType) in SwitchToEffectBuffType() argument 310 auto itr = allocatorTypeToEffectBuffType_.find(allocatorType); in SwitchToEffectBuffType() 539 AllocatorType &allocatorType, bool isUpdateExif) in ModifyPixelMapPropertyInner() argument 590 AllocatorType allocatorType = pixelMap->GetAllocatorType(); in ModifyPixelMapProperty() local 591 BufferType bufferType = SwitchToEffectBuffType(allocatorType); in ModifyPixelMapProperty() 603 "memory create fail! allocatorType=%{public}d", allocatorType); in ModifyPixelMapProperty() 619 return ModifyPixelMapPropertyInner(memoryData, pixelMap, allocatorType, isUpdateExif); in ModifyPixelMapProperty() 627 AllocatorType allocatorType = pixelMap->GetAllocatorType(); in ModifyPixelMapPropertyForTexture() local 628 BufferType bufferType = SwitchToEffectBuffType(allocatorType); in ModifyPixelMapPropertyForTexture() 632 "memory create fail! allocatorType=%{public}d", allocatorType); in ModifyPixelMapPropertyForTexture() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | basic_transformer_test.cpp | 64 AllocatorType allocatorType = AllocatorType::SHARE_MEM_ALLOC; variable 68 basicTransformer.ReleaseBuffer(allocatorType, fd, dataSize, buffer); 69 allocatorType = AllocatorType::HEAP_ALLOC; 70 basicTransformer.ReleaseBuffer(allocatorType, fd, dataSize, buffer);
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/ |
H A D | webp_decoder.cpp | 129 context.allocatorType = Media::AllocatorType::HEAP_ALLOC; in Decode() 428 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in SharedMemoryCreate() 465 context.allocatorType = AllocatorType::HEAP_ALLOC; in HeapMemoryCreate() 502 context.allocatorType = AllocatorType::DMA_ALLOC; in DmaMemoryCreate() 511 …if (context.pixelsBuffer.buffer != nullptr && context.allocatorType == AllocatorType::HEAP_ALLOC) { in AllocOutputBuffer() 518 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in AllocOutputBuffer() 520 } else if (context.allocatorType == Media::AllocatorType::HEAP_ALLOC) { in AllocOutputBuffer() 522 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in AllocOutputBuffer()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libbmpplugin/src/ |
H A D | bmp_decoder.cpp | 143 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in SetShareMemBuffer() 180 context.allocatorType = AllocatorType::DMA_ALLOC; in DmaMemAlloc() 217 context.allocatorType = AllocatorType::HEAP_ALLOC; in SetBuffer() 254 context.allocatorType = AllocatorType::HEAP_ALLOC; in SetBufferForPlatform() 262 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in SetContextPixelsBuffer() 267 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in SetContextPixelsBuffer()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/ |
H A D | image_source.cpp | 675 addrInfos.type = context.allocatorType; in ContextToAddrInfos() 728 if (opts.allocatorType != AllocatorType::DEFAULT) { in InitDecodeContext() 729 context.allocatorType = opts.allocatorType; in InitDecodeContext() 1196 opts_.allocatorType); in CreatePixelMap() 1199 context.allocatorType = opts_.allocatorType; in CreatePixelMap() 1205 context.allocatorType = AllocatorType::HEAP_ALLOC; in CreatePixelMap() 1246 context.allocatorType, context.freeFunc); in CreatePixelMap() 2439 procOpts.allocatorType = opts.allocatorType; in CopyOptionsToProcOpts() 3924 …if (baseCtx.allocatorType != AllocatorType::DMA_ALLOC || gainMapCtx.allocatorType != AllocatorType… in ComposeHdrImage() 4233 dstCtx.allocatorType = srcCtx.allocatorType; in CopyOutInfoOfContext() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libheifplugin/src/ |
H A D | heif_decoder.cpp | 136 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in AllocHeapBuffer() 154 context.allocatorType = AllocatorType::HEAP_ALLOC; in AllocHeapBuffer() 191 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in AllocShareMem()
|
/ohos5.0/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | pixel_map.h | 97 AllocatorType allocatorType = AllocatorType::SHARE_MEM_ALLOC; member 336 NATIVEEXPORT void SetAllocatorType(AllocatorType allocatorType) in SetAllocatorType() argument 338 allocatorType_ = allocatorType; in SetAllocatorType() 392 NATIVEEXPORT void setAllocatorType(AllocatorType allocatorType) in setAllocatorType() argument 394 allocatorType_ = allocatorType; in setAllocatorType() 440 … static void ReleaseBuffer(AllocatorType allocatorType, int fd, uint64_t dataSize, void **buffer); 443 bool ReadPropertiesFromParcel(Parcel &parcel, ImageInfo &imgInfo, AllocatorType &allocatorType,
|
H A D | image_type.h | 319 AllocatorType allocatorType = AllocatorType::HEAP_ALLOC; member 321 AllocatorType allocatorType = AllocatorType::DEFAULT; member 385 AllocatorType allocatorType = AllocatorType::DMA_ALLOC; member
|
H A D | image_format_convert.h | 66 … AllocatorType allocatorType, int32_t width, int32_t height,
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libsvgplugin/src/ |
H A D | svg_decoder.cpp | 98 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in AllocShareBufferInner() 162 context.allocatorType = AllocatorType::DMA_ALLOC; in AllocDmaBuffer() 201 context.allocatorType = AllocatorType::HEAP_ALLOC; in AllocHeapBuffer() 420 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in AllocBuffer() 422 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in AllocBuffer()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/ |
H A D | gif_decoder.cpp | 145 context.allocatorType = Media::AllocatorType::HEAP_ALLOC; in Decode() 677 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in AllocMemory() 679 } else if (context.allocatorType == Media::AllocatorType::HEAP_ALLOC) { in AllocMemory() 681 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in AllocMemory() 695 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in FreeMemory() 697 } else if (context.allocatorType == Media::AllocatorType::HEAP_ALLOC) { in FreeMemory() 699 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in FreeMemory()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 199 context.allocatorType = type; in SetDecodeContextBuffer() 657 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in HeapMemAlloc() 659 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in HeapMemAlloc() 745 destInfo.allocType = context.allocatorType; in HeapMemAlloc() 751 FreeContextBuffer(context.freeFunc, context.allocatorType, context.pixelsBuffer); in HeapMemAlloc() 921 if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in HeapMemAlloc() 1168 context.allocatorType = allocatorType; in HeapMemAlloc() 1198 AllocatorType allocatorType = context.allocatorType; in HeapMemAlloc() local 1199 auto m = MemoryManager::CreateMemory(allocatorType, memoryData); in HeapMemAlloc() 1211 FreeContextBuffer(context.freeFunc, context.allocatorType, context.pixelsBuffer); in HeapMemAlloc() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_decoder.cpp | 369 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in DoSwDecode() 398 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in DoSwDecode() 400 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in DoSwDecode() 427 context.allocatorType = AllocatorType::DMA_ALLOC; in DoSwDecode() 439 context.allocatorType = AllocatorType::HEAP_ALLOC; in DoSwDecode() 451 context.allocatorType = AllocatorType::HEAP_ALLOC; in DoSwDecode() 472 if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in DoSwDecode()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libpngplugin/src/ |
H A D | png_decoder.cpp | 251 context.allocatorType = AllocatorType::SHARE_MEM_ALLOC; in AllocBufferForShareType() 284 context.allocatorType = AllocatorType::DMA_ALLOC; in AllocBufferForDmaType() 319 context.allocatorType = AllocatorType::HEAP_ALLOC; in AllocOutBuffer() 355 context.allocatorType = AllocatorType::HEAP_ALLOC; in AllocBufferForPlatform() 365 if (context.allocatorType == Media::AllocatorType::SHARE_MEM_ALLOC) { in AllocOutputBuffer() 370 } else if (context.allocatorType == Media::AllocatorType::DMA_ALLOC) { in AllocOutputBuffer()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | bmp_decoder_test.cpp | 542 context.allocatorType = Media::AllocatorType::DMA_ALLOC; 545 context.allocatorType = Media::AllocatorType::CUSTOM_ALLOC; 563 context.allocatorType = Media::AllocatorType::DMA_ALLOC; 581 context.allocatorType = Media::AllocatorType::CUSTOM_ALLOC;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/image_native/ |
H A D | image_type.h | 170 AllocatorType allocatorType = AllocatorType::HEAP_ALLOC; member
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_map.cpp | 469 if (allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in ReleaseBuffer() 478 if (allocatorType == AllocatorType::HEAP_ALLOC) { in ReleaseBuffer() 495 AllocatorType allocatorType = GetAllocatorType(); in SetMemoryName() local 502 if (allocatorType == AllocatorType::DMA_ALLOC) { in SetMemoryName() 516 if (allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in SetMemoryName() 2533 allocatorType = static_cast<AllocatorType>(parcel.ReadInt32()); in ReadPropertiesFromParcel() 2534 if (allocatorType == AllocatorType::DEFAULT || allocatorType == AllocatorType::CUSTOM_ALLOC) { in ReadPropertiesFromParcel() 2535 allocatorType = AllocatorType::HEAP_ALLOC; in ReadPropertiesFromParcel() 2593 if (pixelMemInfo.allocatorType == AllocatorType::SHARE_MEM_ALLOC) { in ReadMemInfoFromParcel() 2618 } else if (pixelMemInfo.allocatorType == AllocatorType::DMA_ALLOC) { in ReadMemInfoFromParcel() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/src/ |
H A D | image_creator.cpp | 193 static void ReleaseBuffer(AllocatorType allocatorType, uint8_t **buffer) in ReleaseBuffer() argument 195 if (allocatorType == AllocatorType::HEAP_ALLOC) { in ReleaseBuffer()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/png_test/ |
H A D | png_decoder_test.cpp | 605 context.decodeContext.allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC; 625 context.decodeContext.allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC; 1349 context.allocatorType = Media::AllocatorType::DMA_ALLOC; 1491 context.allocatorType = Media::AllocatorType::DEFAULT; 1507 context.allocatorType = Media::AllocatorType::DMA_ALLOC; 1526 context.decodeContext.allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC; 1713 context.decodeContext.allocatorType = Media::AllocatorType::SHARE_MEM_ALLOC;
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | post_proc.h | 57 void ReleaseBuffer(AllocatorType allocatorType, int fd, uint64_t dataSize,
|