Home
last modified time | relevance | path

Searched refs:GetAllocatorType (Results 1 - 25 of 33) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_image_cache.cpp77 auto type = pixelMap->GetAllocatorType(); in CachePixelMap()
148 bool shouldCount = pixelMap && pixelMap->GetAllocatorType() != Media::AllocatorType::DMA_ALLOC; in ReleasePixelMapCache()
151 auto realSize = pixelMap->GetAllocatorType() == Media::AllocatorType::SHARE_MEM_ALLOC in ReleasePixelMapCache()
179 bool shouldCount = pixelMap && pixelMap->GetAllocatorType() != Media::AllocatorType::DMA_ALLOC; in ReleasePixelMapCacheUnique()
182 auto realSize = pixelMap->GetAllocatorType() == Media::AllocatorType::SHARE_MEM_ALLOC in ReleasePixelMapCacheUnique()
H A Drs_image_base.cpp115 if (pixelMap_ && pixelMap_->GetAllocatorType() == Media::AllocatorType::DMA_ALLOC) { in DrawImage()
170 (pixelMap_->GetAllocatorType() == Media::AllocatorType::SHARE_MEM_ALLOC) && in SetPixelMap()
234 if (!pixelMap_ || pixelMap_->GetAllocatorType() != Media::AllocatorType::SHARE_MEM_ALLOC) { in Purge()
H A Drs_pixel_map_util.cpp219 if (pixelMap->GetAllocatorType() == Media::AllocatorType::DMA_ALLOC) { in IsYUVFormat()
305 if (!(pixelMap->GetAllocatorType() == Media::AllocatorType::DMA_ALLOC)) { in IsSupportZeroCopy()
H A Drs_image.cpp750 if (pixelMap != nullptr && pixelMap->GetAllocatorType() != Media::AllocatorType::DMA_ALLOC) { in ProcessImageAfterCreation()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map_parcel.cpp189 if (!data.WriteInt32(static_cast<int32_t>(pixelMap->GetAllocatorType()))) { in WriteImageInfo()
191 pixelMap->GetAllocatorType()); in WriteImageInfo()
207 if (pixelMap->GetAllocatorType() == AllocatorType::SHARE_MEM_ALLOC) { in WriteToParcel()
H A Dpixel_map.cpp236 if (bufferSize == 0 || (pixelMap->GetAllocatorType() == AllocatorType::HEAP_ALLOC && in CheckPixelmap()
491 AllocatorType allocatorType = GetAllocatorType(); in SetMemoryName()
675 if (dstPixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in Create()
803 if (bufferSize == 0 || (source.GetAllocatorType() == AllocatorType::HEAP_ALLOC && in SourceCropAndConvert()
810 if (source.GetAllocatorType() == AllocatorType::SHARE_MEM_ALLOC) { in SourceCropAndConvert()
816 IMAGE_LOGE("source crop allocate memory fail allocatetype: %{public}d ", source.GetAllocatorType()); in SourceCropAndConvert()
885 if (source.GetAllocatorType() == AllocatorType::DMA_ALLOC) { in CopyPixMapToDst()
917 AllocatorType sourceType = source.GetAllocatorType(); in SetDstPixelMapInfo()
920 if (source.GetAllocatorType() == AllocatorType::DMA_ALLOC && source.IsHdr()) { in SetDstPixelMapInfo()
944 if (bufferSize == 0 || (source.GetAllocatorType() in CopyPixelMap()
1911 AllocatorType PixelMap::GetAllocatorType() GetAllocatorType() function in OHOS::Media::PixelMap
[all...]
/foundation/graphic/graphic_2d/rosen/modules/platform/image_native/
H A Dpixel_map.cpp60 AllocatorType PixelMap::GetAllocatorType() in GetAllocatorType() function in OHOS::Media::PixelMap
H A Dpixel_map.h121 NATIVEEXPORT AllocatorType GetAllocatorType();
/foundation/multimedia/image_effect/test/unittest/mock/include/
H A Dmock_pixel_map.h40 MOCK_METHOD0(GetAllocatorType, AllocatorType());
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp232 int32_t srcRowStride = pixelMap.GetAllocatorType() == AllocatorType::DMA_ALLOC ? pixelMap.GetRowStride() : 0; in CenterDisplay()
244 if (pixelMap.GetAllocatorType() == AllocatorType::HEAP_ALLOC) { in CenterDisplay()
248 } else if (pixelMap.GetAllocatorType() == AllocatorType::DMA_ALLOC) { in CenterDisplay()
254 IMAGE_LOGE("[PostProc]CenterDisplay AllocMemory[%{public}d] failed", pixelMap.GetAllocatorType()); in CenterDisplay()
259 ReleaseBuffer(pixelMap.GetAllocatorType(), fd, bufferSize, &dstPixels, nativeBuffer); in CenterDisplay()
263 if (pixelMap.GetAllocatorType() == AllocatorType::HEAP_ALLOC) { in CenterDisplay()
265 } else if (pixelMap.GetAllocatorType() == AllocatorType::DMA_ALLOC) { in CenterDisplay()
844 auto m = MemoryManager::CreateMemory(pixelMap.GetAllocatorType(), memoryData); in ScalePixelMapWithSLR()
880 pixelMap.GetAllocatorType(), desiredSize.width, desiredSize.height); in ScalePixelMapEx()
905 auto mem = MemoryManager::CreateMemory(pixelMap.GetAllocatorType() in ScalePixelMapEx()
[all...]
H A Dimage_format_convert.cpp517 auto allocType = srcPiexlMap->GetAllocatorType(); in RGBConvertImageFormatOption()
568 auto allocType = srcPiexlMap->GetAllocatorType(); in RGBConvertImageFormatOptionUnique()
604 static AllocatorType GetAllocatorType(std::shared_ptr<PixelMap> &srcPiexlMap, PixelFormat destFormat) in GetAllocatorType() function
606 auto allocType = srcPiexlMap->GetAllocatorType(); in GetAllocatorType()
635 auto allocType = GetAllocatorType(srcPiexlMap, destFormat); in YUVConvertImageFormatOption()
/foundation/multimedia/image_effect/test/unittest/mock/src/
H A Dmock_pixel_map.cpp52 ON_CALL(*this, GetAllocatorType()).WillByDefault(Return(AllocatorType::HEAP_ALLOC)); in MockPixelMap()
/foundation/multimedia/media_foundation/video_processing_engine/framework/capi/image_processing/
H A Dimage_processing_native.cpp261 if (pixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in GetSurfaceBufferFromPixelMap()
275 if (pixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in GetSurfaceBufferFromPixelMapNoCopy()
285 if (pixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in SetSurfaceBufferToPixelMap()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client__alpha_offscreen_demo.cpp60 cout << "AllocatorType: " << (int)pixelmap->GetAllocatorType() << endl; in DecodePixelMap()
H A Drs_uni_render_pixelmap_demo.cpp83 cout << "AllocatorType: " << (int)pixelmap->GetAllocatorType() << endl; in DecodePixelMap()
/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dcommon_utils.cpp115 extraInfo->bufferType = SwitchToEffectBuffType(pixelMap->GetAllocatorType()); in LockPixelMap()
595 AllocatorType allocatorType = pixelMap->GetAllocatorType(); in ModifyPixelMapProperty()
632 AllocatorType allocatorType = pixelMap->GetAllocatorType(); in ModifyPixelMapPropertyForTexture()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_encoder.cpp547 if (pixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in EncodeImageByPixelMap()
574 bool needConvertToSurfaceBuffer = pixelmap->GetAllocatorType() != AllocatorType::DMA_ALLOC; in EncodeHeifByPixelmap()
1024 pixelmap_->GetAllocatorType() != AllocatorType::DMA_ALLOC || in EncodeDualVivid()
1070 if (pixelmap_->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in EncodeSdrImage()
1393 AllocatorType mainAllocType = mainPixelmap->GetAllocatorType(); in EncodeJpegPictureDualVivid()
1394 AllocatorType gainmapAllocType = gainmapPixelmap->GetAllocatorType(); in EncodeJpegPictureDualVivid()
1417 if (mainPixelmap->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in EncodeJpegPictureSdr()
1521 if (pixelMap->GetAllocatorType() != AllocatorType::DMA_ALLOC || pixelMap->GetFd() == nullptr) { in WriteJpegCodedData()
/foundation/multimedia/av_session/frameworks/native/session/src/
H A Davsession_pixel_map_adapter.cpp81 if (source.GetAllocatorType() == AllocatorType::DMA_ALLOC) { in CopyPixMapToDst()
/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/
H A Dpixelmap_native.cpp864 if (pixelmap->GetInnerPixelmap()->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in OH_PixelmapNative_SetMetadata()
1001 if (pixelmap->GetInnerPixelmap()->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in OH_PixelmapNative_GetMetadata()
1020 if (pixelmap->GetInnerPixelmap()->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in OH_PixelmapNative_GetNativeBuffer()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_background.cpp430 if (pixelMap->GetAllocatorType() == Media::AllocatorType::DMA_ALLOC && in SetCompressedDataForASTC()
499 bgImage->GetPixelMap()->GetAllocatorType() == Media::AllocatorType::DMA_ALLOC) { in CreateDrawFunc()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_utils.cpp468 if (pixelMap->GetAllocatorType() == AllocatorType::DMA_ALLOC) { in DumpPixelMap()
795 if (!pixelMap || pixelMap->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in FlushSurfaceBuffer()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imageplugin_fuzzer/src/
H A Dimage_plugin_fuzz.cpp207 pixelMap->GetAllocatorType(); in PixelMapTest002()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_pixelmap.cpp542 if (map.GetAllocatorType() == AllocatorType::DMA_ALLOC) { in OnClientMarshalling()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/
H A Dpicture.cpp346 mainPixelMap_->GetAllocatorType() != AllocatorType::DMA_ALLOC) { in GetHdrComposedPixelMap()
/foundation/window/window_manager/snapshot/src/
H A Dsnapshot_utils.cpp388 if (pixelMap.GetAllocatorType() == Media::AllocatorType::DMA_ALLOC) { in WriteToJpegWithPixelMap()

Completed in 28 milliseconds

12