fix: Modify for cross-platform support

Signed-off-by: caochuan <caochuan@huawei.com>
Change-Id: Ibbcea350181a93057f634f956865b7ad95f5cf26
This commit is contained in:
caochuan 2024-10-14 17:57:03 +08:00
parent 33aaf0ed97
commit abfdb22ec6
3 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,7 @@ const uint8_t BYTE_FULL = 0xFF;
const int32_t SIZE = 100;
const int32_t TYPE_IMAGE_SOURCE = 1;
const int32_t TYPE_PIXEL_MAP = 2;
#if !defined(IOS_PLATFORM) && !defined(ANDROID_PLATFORM)
const int32_t TYPE_PICTURE = 3;
#endif
const int32_t TYPE_ARRAY = 4;
const int64_t DEFAULT_BUFFER_SIZE = 25 * 1024 * 1024; // 25M is the maximum default packedSize
const int MASK_3 = 0x3;

View File

@ -176,6 +176,7 @@ image_native_android_include_dirs = [
"//foundation/multimedia/image_framework/frameworks/kits/js/common/include",
"//foundation/multimedia/image_framework/interfaces/kits/js/common/include",
"//foundation/multimedia/image_framework/interfaces/kits/native/include",
"//foundation/multimedia/image_framework/interfaces/kits/native/include/image",
"//utils/jni/jnikit/include",
"//foundation/graphic/graphic_surface/interfaces/inner_api/surface",
"//foundation/graphic/graphic_surface/interfaces/inner_api/utils",

View File

@ -229,6 +229,7 @@ image_native_ios_include_dirs = [
"//foundation/multimedia/image_framework/interfaces/kits/js/common/include",
"//foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin",
"//foundation/multimedia/image_framework/interfaces/kits/native/include",
"//foundation/multimedia/image_framework/interfaces/kits/native/include/image",
"//utils/jni/jnikit/include",
"//foundation/graphic/graphic_surface/interfaces/inner_api/surface",
"//foundation/graphic/graphic_surface/interfaces/inner_api/utils",