/foundation/multimedia/media_library/frameworks/native/c_api/moving_photo_capi/ |
H A D | moving_photo_capi.cpp | 21 MediaLibrary_ErrorCode OH_MovingPhoto_GetUri(OH_MovingPhoto* movingPhoto, const char** uri) in OH_MovingPhoto_GetUri() argument 23 CHECK_AND_RETURN_RET_LOG(movingPhoto != nullptr, MEDIA_LIBRARY_PARAMETER_ERROR, "movingPhoto is nullptr!"); in OH_MovingPhoto_GetUri() 24 CHECK_AND_RETURN_RET_LOG(movingPhoto->movingPhoto_ != nullptr, in OH_MovingPhoto_GetUri() 28 return movingPhoto->movingPhoto_->GetUri(uri); in OH_MovingPhoto_GetUri() 31 MediaLibrary_ErrorCode OH_MovingPhoto_RequestContentWithUris(OH_MovingPhoto* movingPhoto, char* imageUri, in OH_MovingPhoto_RequestContentWithUris() argument 34 CHECK_AND_RETURN_RET_LOG(movingPhoto != nullptr, MEDIA_LIBRARY_PARAMETER_ERROR, "movingPhoto is nullptr!"); in OH_MovingPhoto_RequestContentWithUris() 35 CHECK_AND_RETURN_RET_LOG(movingPhoto->movingPhoto_ != nullptr, in OH_MovingPhoto_RequestContentWithUris() 40 return movingPhoto in OH_MovingPhoto_RequestContentWithUris() 43 OH_MovingPhoto_RequestContentWithUri(OH_MovingPhoto* movingPhoto, MediaLibrary_ResourceType resourceType, char* uri) OH_MovingPhoto_RequestContentWithUri() argument 54 OH_MovingPhoto_RequestContentWithBuffer(OH_MovingPhoto* movingPhoto, MediaLibrary_ResourceType resourceType, const uint8_t** buffer, uint32_t* size) OH_MovingPhoto_RequestContentWithBuffer() argument 66 OH_MovingPhoto_Release(OH_MovingPhoto* movingPhoto) OH_MovingPhoto_Release() argument [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/moving_photo_test/src/ |
H A D | moving_photo_test.cpp | 65 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); in HWTEST_F() local 67 MediaLibrary_ErrorCode ret = OH_MovingPhoto_GetUri(movingPhoto, &uri); in HWTEST_F() 70 EXPECT_EQ(OH_MovingPhoto_Release(movingPhoto), MEDIA_LIBRARY_OK); in HWTEST_F() 83 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); in HWTEST_F() local 87 ret = OH_MovingPhoto_GetUri(movingPhoto, nullptr); in HWTEST_F() 89 movingPhoto->movingPhoto_ = nullptr; in HWTEST_F() 90 ret = OH_MovingPhoto_GetUri(movingPhoto, &uri); in HWTEST_F() 93 EXPECT_EQ(OH_MovingPhoto_Release(movingPhoto), MEDIA_LIBRARY_OK); in HWTEST_F() 120 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); in HWTEST_F() local 123 MediaLibrary_ErrorCode ret = OH_MovingPhoto_RequestContentWithUris(movingPhoto, imageUr in HWTEST_F() 138 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local 175 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local 204 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local 227 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local 248 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local 287 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); HWTEST_F() local [all...] |
/foundation/multimedia/media_library/interfaces/kits/c/ |
H A D | moving_photo_capi.h | 50 * @param movingPhoto the {@link OH_MovingPhoto} instance. 60 MediaLibrary_ErrorCode OH_MovingPhoto_GetUri(OH_MovingPhoto* movingPhoto, const char** uri); 66 * @param movingPhoto the {@link OH_MovingPhoto} instance. 78 MediaLibrary_ErrorCode OH_MovingPhoto_RequestContentWithUris(OH_MovingPhoto* movingPhoto, char* imageUri, 85 * @param movingPhoto the {@link OH_MovingPhoto} instance. 97 MediaLibrary_ErrorCode OH_MovingPhoto_RequestContentWithUri(OH_MovingPhoto* movingPhoto, 104 * @param movingPhoto the {@link OH_MovingPhoto} instance. 117 MediaLibrary_ErrorCode OH_MovingPhoto_RequestContentWithBuffer(OH_MovingPhoto* movingPhoto, 123 * @param movingPhoto the {@link OH_MovingPhoto} instance. 131 MediaLibrary_ErrorCode OH_MovingPhoto_Release(OH_MovingPhoto* movingPhoto); [all...] |
H A D | media_asset_base_capi.h | 312 * @param movingPhoto it used to obtain {@link OH_MovingPhoto} information when the data is prepared. 317 OH_MovingPhoto* movingPhoto);
|
/foundation/arkui/ace_engine/component_ext/movingphoto/ |
H A D | movingphoto_pattern.cpp | 274 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); in UpdateImageNode() local 275 CHECK_NULL_VOID(movingPhoto); in UpdateImageNode() 276 auto image = AceType::DynamicCast<FrameNode>(movingPhoto->GetImage()); in UpdateImageNode() 315 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); in RegisterImageEvent() local 316 CHECK_NULL_VOID(movingPhoto); in RegisterImageEvent() 317 auto image = AceType::DynamicCast<FrameNode>(movingPhoto->GetImage()); in RegisterImageEvent() 435 auto movingPhoto = movingPhotoPattern.Upgrade(); in RegisterMediaPlayerEvent() 436 CHECK_NULL_VOID(movingPhoto); in RegisterMediaPlayerEvent() 437 ContainerScope scope(movingPhoto->instanceId_); in RegisterMediaPlayerEvent() 438 movingPhoto in RegisterMediaPlayerEvent() 611 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); OnStartedStatusCallback() local 664 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); OnDirtyLayoutWrapperSwap() local 744 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); GetRawImageSize() local 888 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); HideImageNode() local 957 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); StartAnimation() local 1037 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); StopAnimation() local 1384 auto movingPhoto = AceType::DynamicCast<MovingPhotoNode>(host); OnWindowHide() local [all...] |
/foundation/multimedia/media_library/frameworks/native/c_api/common/ |
H A D | oh_moving_photo.h | 23 explicit OH_MovingPhoto(const std::shared_ptr<OHOS::Media::MovingPhoto> &movingPhoto) in OH_MovingPhoto() 24 : movingPhoto_(movingPhoto) {} in OH_MovingPhoto()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | moving_photo_processor.cpp | 295 for (const auto& movingPhoto : dataList.movingPhotos) { in CompatMovingPhoto() 301 if (GetUpdatedMovingPhotoData(movingPhoto, newData) != E_OK) { in CompatMovingPhoto() 302 MEDIA_INFO_LOG("Failed to get updated data of moving photo, id: %{public}d", movingPhoto.fileId); in CompatMovingPhoto()
|
/foundation/multimedia/media_library/frameworks/native/media_library_asset_manager/src/ |
H A D | media_asset_manager_impl.cpp | 351 auto movingPhoto = new OH_MovingPhoto(movingPhotoImpl); in NotifyImageDataPrepared() local 352 auto status = movingPhoto != nullptr ? MEDIA_LIBRARY_OK : MEDIA_LIBRARY_INTERNAL_SYSTEM_ERROR; in NotifyImageDataPrepared() 354 MEDIA_LIBRARY_COMPRESSED, movingPhoto); in NotifyImageDataPrepared()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_manager_test/src/ |
H A D | media_library_asset_manager_test.cpp | 232 MediaLibrary_MediaQuality mediaQuality, MediaLibrary_MediaContentType type, OH_MovingPhoto* movingPhoto) in CallbackFuncitonOnMovingPhotoDataPrepared() 231 CallbackFuncitonOnMovingPhotoDataPrepared(MediaLibrary_ErrorCode result, MediaLibrary_RequestId requestId, MediaLibrary_MediaQuality mediaQuality, MediaLibrary_MediaContentType type, OH_MovingPhoto* movingPhoto) CallbackFuncitonOnMovingPhotoDataPrepared() argument
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | media_asset_manager_napi.cpp | 1725 napi_value movingPhoto = MovingPhotoNapi::NewMovingPhotoNapi(env, context->photoUri, in JSLoadMovingPhotoComplete() local 1727 jsContext->data = movingPhoto; in JSLoadMovingPhotoComplete()
|