Searched refs:imageSourceNapi (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_packer_napi.cpp | 650 std::unique_ptr<ImageSourceNapi> imageSourceNapi = std::make_unique<ImageSourceNapi>(); in GetImageSourceFromNapi() local 651 napi_status status = napi_unwrap(env, value, reinterpret_cast<void**>(&imageSourceNapi)); in GetImageSourceFromNapi() 656 if (imageSourceNapi == nullptr) { in GetImageSourceFromNapi() 660 return imageSourceNapi.release()->nativeImgSrc; in GetImageSourceFromNapi()
|
H A D | image_source_napi.cpp | 1493 std::unique_ptr<ImageSourceNapi> imageSourceNapi = nullptr; in GetImageInfoSync() local 1494 status = napi_unwrap(env, thisVar, reinterpret_cast<void**>(&imageSourceNapi)); in GetImageInfoSync() 1496 IMG_NAPI_CHECK_RET_D(IMG_IS_READY(status, imageSourceNapi), in GetImageInfoSync() 1498 IMG_NAPI_CHECK_RET_D(IMG_IS_READY(status, imageSourceNapi->nativeImgSrc), in GetImageInfoSync() 1505 if (imageSourceNapi->nativeImgSrc != nullptr) { in GetImageInfoSync() 1507 ret = imageSourceNapi->nativeImgSrc->GetImageInfo(index, imageinfo); in GetImageInfoSync() 1509 result = GetImageInfoNapiValue(env, &imageinfo, imageSourceNapi->nativeImgSrc.get()); in GetImageInfoSync() 1514 imageSourceNapi.release(); in GetImageInfoSync()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | media_asset_manager_napi.cpp | 1101 ImageSourceNapi* imageSourceNapi = nullptr; in GetImageSourceNapiObject() local 1102 napi_unwrap(env, tempImageSourceNapi, reinterpret_cast<void**>(&imageSourceNapi)); in GetImageSourceNapiObject() 1103 if (imageSourceNapi == nullptr) { in GetImageSourceNapiObject() 1127 imageSourceNapi->SetNativeImageSource(std::move(nativeImageSourcePtr)); in GetImageSourceNapiObject()
|