mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-01 16:50:33 +00:00
Disable image loader code.
This commit is contained in:
@@ -8,9 +8,12 @@
|
||||
//#define LOTTIE_LOGGING_SUPPORT
|
||||
|
||||
//enable module building of image loader
|
||||
#define LOTTIE_IMAGE_MODULE_SUPPORT
|
||||
//#define LOTTIE_IMAGE_MODULE_SUPPORT
|
||||
|
||||
//enable lottie model caching
|
||||
//#define LOTTIE_CACHE_SUPPORT
|
||||
|
||||
// disable image loader
|
||||
#define LOTTIE_IMAGE_MODULE_DISABLED
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
||||
@@ -19,6 +19,24 @@ using lottie_image_free_f = void (*)(unsigned char *);
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef LOTTIE_IMAGE_MODULE_DISABLED
|
||||
|
||||
unsigned char *lottie_image_load(char const *filename, int *x, int *y,
|
||||
int *comp, int req_comp)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
unsigned char *lottie_image_load_from_data(const char *imageData, int len,
|
||||
int *x, int *y, int *comp,
|
||||
int req_comp)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void lottie_image_free(unsigned char *data) {}
|
||||
|
||||
#else
|
||||
|
||||
extern unsigned char *lottie_image_load(char const *filename, int *x, int *y,
|
||||
int *comp, int req_comp);
|
||||
extern unsigned char *lottie_image_load_from_data(const char *imageData,
|
||||
@@ -26,6 +44,8 @@ extern unsigned char *lottie_image_load_from_data(const char *imageData,
|
||||
int *comp, int req_comp);
|
||||
extern void lottie_image_free(unsigned char *data);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user