From adc2db9bb29e7f316c46b6de679db1522ffc9cc8 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期五, 23 八月 2024 11:39:37 +0800
Subject: [PATCH] fix

---
 Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h b/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h
index d0b5115..fe51c4f 100644
--- a/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h
+++ b/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h
@@ -108,6 +108,12 @@
 + (BOOL)CGImageContainsAlpha:(_Nonnull CGImageRef)cgImage;
 
 /**
+ Detect whether the CGImage is lazy and not-yet decoded. (lazy means, only when the caller access the underlying bitmap buffer via provider like `CGDataProviderCopyData` or `CGDataProviderRetainBytePtr`, the decoder will allocate memory, it's a lazy allocation)
+ The implementation use the Core Graphics internal to check whether the CGImage is `CGImageProvider` based, or `CGDataProvider` based. The `CGDataProvider` based is treated as non-lazy.
+ */
++ (BOOL)CGImageIsLazy:(_Nonnull CGImageRef)cgImage;
+
+/**
  Create a decoded CGImage by the provided CGImage. This follows The Create Rule and you are response to call release after usage.
  It will detect whether image contains alpha channel, then create a new bitmap context with the same size of image, and draw it. This can ensure that the image do not need extra decoding after been set to the imageView.
  @note This actually call `CGImageCreateDecoded:orientation:` with the Up orientation.

--
Gitblit v1.7.1