Home
last modified time | relevance | path

Searched refs:livePhotoFd (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp236 if (AddStringToFile(livePhotoFd, versonAndFrameNum) == E_ERR) { in WriteExtraData()
302 if (WriteContentTofile(livePhotoFd, imageFd) == E_ERR) { in MergeFile()
306 if (WriteContentTofile(livePhotoFd, videoFd) == E_ERR) { in MergeFile()
379 if (livePhotoFd.Get() == E_ERR) { in ConvertToLivePhoto()
430 CHECK_AND_RETURN_RET_LOG(livePhotoFd.Get() >= 0, E_HAS_FS_ERROR, in ConvertToSourceLivePhoto()
448 UniqueFd livePhotoFd(open(absPath.c_str(), O_RDONLY)); in IsLivePhoto() local
449 if (GetFileSize(livePhotoFd.Get()) < LIVE_TAG_LEN) { in IsLivePhoto()
453 off_t offset = lseek(livePhotoFd.Get(), -LIVE_TAG_LEN, SEEK_END); in IsLivePhoto()
476 …CHECK_AND_RETURN_RET_LOG(livePhotoFd.Get() >= 0, livePhotoFd.Get(), "Failed to check src fd of liv… in SendLivePhoto()
585 UniqueFd livePhotoFd(open(absLivePhotoPath.c_str(), O_RDONLY)); in ConvertToMovingPhoto() local
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dmoving_photo_napi.cpp254 int32_t livePhotoFd = MovingPhotoNapi::OpenReadOnlyLivePhoto(movingPhotoUri); in RequestContentToSandbox() local
255 CHECK_COND_RET(HandleFd(livePhotoFd), livePhotoFd, "Open source video file failed"); in RequestContentToSandbox()
256 int32_t ret = WriteToSandboxUri(livePhotoFd, context->destLivePhotoUri); in RequestContentToSandbox()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/
H A Dmedialibrary_photo_operations_test.cpp3187 int32_t livePhotoFd = MediaLibraryDataManager::GetInstance()->OpenFile(livePhotoCmd, "rw"); variable
3188 ASSERT_GE(livePhotoFd, 0);
3189 int64_t destLen = lseek(livePhotoFd, 0, SEEK_END);
3190 lseek(livePhotoFd, 0, SEEK_SET);
3193 read(livePhotoFd, buf, destLen);
3197 close(livePhotoFd);