Home
last modified time | relevance | path

Searched refs:ImageObject (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_object.h29 class ImageObject : public virtual AceType {
30 DECLARE_ACE_TYPE(ImageObject, AceType);
34 static RefPtr<ImageObject> BuildImageObject(
41 ImageObject() = default;
47 virtual ~ImageObject() = default;
111 virtual RefPtr<ImageObject> Clone() in Clone()
143 RefPtr<ImageObject> Clone() override in Clone()
152 class SvgImageObject : public ImageObject {
170 RefPtr<ImageObject> Clone() override in Clone()
211 RefPtr<ImageObject> Clone() override in Clone()
[all …]
H A Dimage_cache.h35 class ImageObject; variable
38 class ImageObject; variable
56 RefPtr<NG::ImageObject> GetCacheImgObjNG(const std::string& key);
57 void CacheImgObjNG(const std::string& key, const RefPtr<NG::ImageObject>& imgObj);
59 void CacheImgObj(const std::string& key, const RefPtr<ImageObject>& imgObj);
60 RefPtr<ImageObject> GetCacheImgObj(const std::string& key);
109 std::list<CacheNode<RefPtr<NG::ImageObject>>> cacheImgObjListNG_;
110 …std::unordered_map<std::string, std::list<CacheNode<RefPtr<NG::ImageObject>>>::iterator> imgObjCac…
111 std::list<CacheNode<RefPtr<ImageObject>>> cacheImgObjList_;
112 … std::unordered_map<std::string, std::list<CacheNode<RefPtr<ImageObject>>>::iterator> imgObjCache_;
H A Dimage_object_animated.cpp23 class AnimatedImageObject : public ImageObject {
24 DECLARE_ACE_TYPE(AnimatedImageObject, ImageObject);
32 : ImageObject(source, imageSize, frameCount), skData_(data) in AnimatedImageObject()
40 : ImageObject(source, imageSize, frameCount), drawingData_(data)
79 RefPtr<ImageObject> Clone() override in Clone()
145 RefPtr<ImageObject> CreateAnimatedImageObject(ImageSourceInfo source, const Size& imageSize, int32_… in UploadToGpuForRender()
148 RefPtr<ImageObject> CreateAnimatedImageObject(ImageSourceInfo source, const Size& imageSize, int32_… in UploadToGpuForRender()
H A Dimage_cache.cpp64 void ImageCache::CacheImgObjNG(const std::string& key, const RefPtr<NG::ImageObject>& imgObj) in CacheImgObjNG()
70 CountLimitLRU::CacheWithCountLimitLRU<RefPtr<NG::ImageObject>>( in CacheImgObjNG()
74 RefPtr<NG::ImageObject> ImageCache::GetCacheImgObjNG(const std::string& key) in GetCacheImgObjNG()
77 return CountLimitLRU::GetCacheObjWithCountLimitLRU<RefPtr<NG::ImageObject>>( in GetCacheImgObjNG()
81 void ImageCache::CacheImgObj(const std::string& key, const RefPtr<ImageObject>& imgObj) in CacheImgObj()
87 CountLimitLRU::CacheWithCountLimitLRU<RefPtr<ImageObject>>( in CacheImgObj()
91 RefPtr<ImageObject> ImageCache::GetCacheImgObj(const std::string& key) in GetCacheImgObj()
94 …return CountLimitLRU::GetCacheObjWithCountLimitLRU<RefPtr<ImageObject>>(key, cacheImgObjList_, img… in GetCacheImgObj()
H A Dimage_object.cpp35 std::string ImageObject::GenerateCacheKey(const ImageSourceInfo& srcInfo, Size targetImageSize) in GenerateCacheKey()
42 RefPtr<ImageObject> ImageObject::BuildImageObject( in BuildImageObject()
45 RefPtr<ImageObject> ImageObject::BuildImageObject( in BuildImageObject()
146 Size ImageObject::MeasureForImage(RefPtr<RenderImage> image) in MeasureForImage()
H A Dimage_provider.h40 class ImageObject; variable
43 using ImageObjSuccessCallback = std::function<void(ImageSourceInfo, const RefPtr<ImageObject>)>;
134 static RefPtr<ImageObject> GeneratorAceImageObject(
150 static RefPtr<ImageObject> QueryImageObjectFromCache(
169 …bool canStartUploadImageObj, const RefPtr<ImageObject>& imageObj, const RefPtr<PipelineBase>& cont…
H A Dimage_provider.cpp77 …bool canStartUploadImageObj, const RefPtr<ImageObject>& imageObj, const RefPtr<PipelineBase>& cont… in ProccessLoadingResult()
137 auto key = ImageObject::GenerateCacheKey(imageInfo, imageSize); in ProccessUploadResult()
180 RefPtr<ImageObject> imageObj = QueryImageObjectFromCache(imageInfo, pipelineContext); in FetchImageObject()
212 RefPtr<ImageObject> ImageProvider::QueryImageObjectFromCache( in QueryImageObjectFromCache()
222 RefPtr<ImageObject> ImageProvider::GeneratorAceImageObject( in GeneratorAceImageObject()
231 return ImageObject::BuildImageObject(imageInfo, context, imageData, useSkiaSvg); in GeneratorAceImageObject()
550 … rawImage, dstWidth, dstHeight, ImageObject::GenerateCacheKey(ImageSourceInfo(src), imageSize));
582 … rawImage, dstWidth, dstHeight, ImageObject::GenerateCacheKey(ImageSourceInfo(src), imageSize));
H A Dimage_object_svg.cpp19 RefPtr<ImageObject> GetImageSvgDomObj(ImageSourceInfo source, const std::unique_ptr<SkMemoryStream … in GetImageSvgDomObj()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_object.cpp21 const SizeF& ImageObject::GetImageSize() const in GetImageSize()
26 void ImageObject::SetImageSize(const SizeF& imageSize) in SetImageSize()
31 const ImageSourceInfo& ImageObject::GetSourceInfo() const in GetSourceInfo()
36 const RefPtr<ImageData>& ImageObject::GetData() const in GetData()
41 void ImageObject::SetData(const RefPtr<ImageData>& data) in SetData()
46 void ImageObject::ClearData() in ClearData()
51 int32_t ImageObject::GetFrameCount() const in GetFrameCount()
56 void ImageObject::SetFrameCount(int32_t frameCount) in SetFrameCount()
61 void ImageObject::SetOrientation(ImageRotateOrientation orientation) in SetOrientation()
66 ImageRotateOrientation ImageObject::GetOrientation() const in GetOrientation()
[all …]
H A Dimage_object.h33 class ImageObject : public virtual AceType {
34 DECLARE_ACE_TYPE(ImageObject, AceType);
37 ImageObject() = delete;
38ImageObject(const ImageSourceInfo& sourceInfo, const SizeF& imageSize, const RefPtr<ImageData>& da… in ImageObject() function
41 ~ImageObject() override = default;
62 virtual RefPtr<ImageObject> Clone() = 0;
90 ACE_DISALLOW_COPY_AND_MOVE(ImageObject);
H A Dimage_provider.h58 class ImageObject; variable
83 …static void MakeCanvasImage(const RefPtr<ImageObject>& obj, const WeakPtr<ImageLoadingContext>& ct…
91 static bool PrepareImageData(const RefPtr<ImageObject>& imageObj);
94 static RefPtr<ImageObject> QueryImageObjectFromCache(const ImageSourceInfo& src);
99 …static RefPtr<ImageObject> BuildImageObject(const ImageSourceInfo& src, const RefPtr<ImageData>& d…
101 static void CacheImageObject(const RefPtr<ImageObject>& obj);
117 static RefPtr<ImageObject> QueryThumbnailCache(const ImageSourceInfo& src);
122 …static void MakeCanvasImageHelper(const RefPtr<ImageObject>& obj, const SizeF& targetSize, const s…
H A Dstatic_image_object.h24 class StaticImageObject : public ImageObject {
25 DECLARE_ACE_TYPE(StaticImageObject, ImageObject);
29 : ImageObject(src, size, data) in StaticImageObject()
36 RefPtr<ImageObject> Clone() override;
H A Danimated_image_object.h22 class AnimatedImageObject : public ImageObject {
23 DECLARE_ACE_TYPE(AnimatedImageObject, ImageObject);
27 : ImageObject(src, imageSize, data) in AnimatedImageObject()
34 RefPtr<ImageObject> Clone() override;
H A Dpixel_map_image_object.h25 class PixelMapImageObject : public ImageObject {
26 DECLARE_ACE_TYPE(PixelMapImageObject, ImageObject);
30 : ImageObject(src, imageSize, nullptr), pixmap_(pixmap) in PixelMapImageObject()
39 RefPtr<ImageObject> Clone() override in Clone()
H A Dsvg_image_object.h24 class SvgImageObject : public ImageObject {
25 DECLARE_ACE_TYPE(SvgImageObject, ImageObject);
28 …SvgImageObject(const ImageSourceInfo& src, const SizeF& imageSize) : ImageObject(src, imageSize, n… in SvgImageObject()
34 RefPtr<ImageObject> Clone() override in Clone()
H A Dimage_provider.cpp42 void ImageProvider::CacheImageObject(const RefPtr<ImageObject>& obj) in CacheImageObject()
57 bool ImageProvider::PrepareImageData(const RefPtr<ImageObject>& imageObj) in PrepareImageData()
91 RefPtr<ImageObject> ImageProvider::QueryThumbnailCache(const ImageSourceInfo& src) in QueryThumbnailCache()
105 RefPtr<ImageObject> ImageProvider::QueryImageObjectFromCache(const ImageSourceInfo& src) in QueryImageObjectFromCache()
117 RefPtr<ImageObject> imageObj = imageCache->GetCacheImgObjNG(src.GetKey()); in QueryImageObjectFromCache()
179 RefPtr<ImageObject> imageObj = ImageProvider::BuildImageObject(src, data); in CreateImageObjHelper()
275 RefPtr<ImageObject> ImageProvider::BuildImageObject(const ImageSourceInfo& src, const RefPtr<ImageD… in BuildImageObject()
302 RefPtr<ImageObject> imageObject; in BuildImageObject()
313 void ImageProvider::MakeCanvasImage(const RefPtr<ImageObject>& obj, const WeakPtr<ImageLoadingConte… in MakeCanvasImage()
336 void ImageProvider::MakeCanvasImageHelper(const RefPtr<ImageObject>& obj, const SizeF& size, const … in MakeCanvasImageHelper()
H A Dimage_loading_context.h61 RefPtr<ImageObject> MoveImageObject();
62 RefPtr<ImageObject> GetImageObject() in GetImageObject()
89 void DataReadyCallback(const RefPtr<ImageObject>& imageObj);
200 RefPtr<ImageObject> imageObj_;
H A Danimated_image_object.cpp46 RefPtr<ImageObject> AnimatedImageObject::Clone() in Clone()
H A Dimage_loading_context.cpp198 RefPtr<ImageObject> imageObj = ImageProvider::BuildImageObject(src, data); in NotifyReadyIfCacheHit()
290 RefPtr<ImageObject> imageObj = ImageProvider::BuildImageObject(GetSourceInfo(), data); in DownloadImageSuccess()
368 void ImageLoadingContext::DataReadyCallback(const RefPtr<ImageObject>& imageObj) in DataReadyCallback()
428 RefPtr<ImageObject> ImageLoadingContext::MoveImageObject() in MoveImageObject()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/apng/
H A Dapng_image_object.h23 class ApngImageObject : public ImageObject {
24 DECLARE_ACE_TYPE(ApngImageObject, ImageObject);
35 : ImageObject(source, imageSize, frameCount), skData_(data) in ApngImageObject()
47 : ImageObject(source, imageSize, frameCount), drawingData_(data) in ApngImageObject()
85 RefPtr<ImageObject> Clone() override in Clone()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Drosen_render_image.h66 static void UploadImageObjToGpuForRender(const RefPtr<ImageObject>& imageObj,
71 void ImageObjReady(const RefPtr<ImageObject>& imageObj);
159 RefPtr<ImageObject> QueryCacheSvgImageObject();
165 RefPtr<ImageObject> imageObj_;
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/image_provider/
H A Dmock_image_cache.cpp22 RefPtr<NG::ImageObject> ImageCache::GetCacheImgObjNG(const std::string& key) in GetCacheImgObjNG()
27 void ImageCache::CacheImgObjNG(const std::string& key, const RefPtr<NG::ImageObject>& imgObj) {} in CacheImgObjNG()
H A Dmock_image_decoder.cpp20 ImageDecoder::ImageDecoder(const RefPtr<ImageObject>& objW, const SizeF& targetSize, bool forceResi… in ImageDecoder()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/
H A Dimage_decoder.h25 ImageDecoder(const RefPtr<ImageObject>& obj, const SizeF& size, bool forceResize);
42 const RefPtr<ImageObject> obj_;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
H A Dcmd_list_helper_test.cpp219 HWTEST_F(CmdListHelperTest, ImageObject, TestSize.Level1)
221 class ImageObject : public Drawing::ExtendImageObject { class
223 ImageObject() = default;
224 ~ImageObject() override {}; in ~ImageObject()
229 std::shared_ptr<ExtendImageObject> object = std::make_shared<ImageObject>();

12