Searched refs:tempOutputPath (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/ |
H A D | file_utils.cpp | 167 string tempOutputPath = path.substr(0, lastSlash) + tempInternal + path.substr(lastSlash + 1); in DealPicture() local 168 int32_t ret = MediaFileUtils::CreateAsset(tempOutputPath); in DealPicture() 170 "Failed to create temp filters file %{private}s", tempOutputPath.c_str()); in DealPicture() 171 imagePacker.StartPacking(tempOutputPath, packOption); in DealPicture() 175 MediaFileUtils::GetFileSize(tempOutputPath, size); in DealPicture() 178 CHECK_AND_PRINT_LOG(MediaFileUtils::DeleteFile(tempOutputPath), in DealPicture() 182 ret = rename(tempOutputPath.c_str(), path.c_str()); in DealPicture() 183 if (MediaFileUtils::IsFileExists(tempOutputPath)) { in DealPicture() 184 MEDIA_INFO_LOG("file: %{public}s exists and needs to be deleted", tempOutputPath.c_str()); in DealPicture() 185 if (!MediaFileUtils::DeleteFile(tempOutputPath)) { in DealPicture() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_utils.cpp | 409 bool CheckAfterPacking(const std::string &tempOutputPath, const std::string &outputPath) in CheckAfterPacking() argument 412 MediaFileUtils::GetFileSize(tempOutputPath, size); in CheckAfterPacking() 413 if (size == 0 && !MediaFileUtils::DeleteFile(tempOutputPath)) { in CheckAfterPacking() 415 DfxUtils::GetSafePath(tempOutputPath).c_str()); in CheckAfterPacking() 418 int ret = rename(tempOutputPath.c_str(), outputPath.c_str()); in CheckAfterPacking() 421 DfxUtils::GetSafePath(tempOutputPath).c_str()); in CheckAfterPacking() 424 if (MediaFileUtils::IsFileExists(tempOutputPath)) { in CheckAfterPacking() 426 if (!MediaFileUtils::DeleteFile(tempOutputPath)) { in CheckAfterPacking() 464 ret = MediaFileUtils::CreateAsset(tempOutputPath); in CompressPicture() 470 imagePacker.StartPacking(tempOutputPath, option); in CompressPicture() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_photo_operations.cpp | 1887 string tempOutputPath = editDataPath; in UpdateEditDataPath() local 1888 size_t pos = tempOutputPath.find_last_of('.'); in UpdateEditDataPath() 1890 tempOutputPath.replace(pos, extension.length(), extension); in UpdateEditDataPath() 1891 rename(editDataPath.c_str(), tempOutputPath.c_str()); in UpdateEditDataPath() 1893 editDataPath.c_str(), tempOutputPath.c_str()); in UpdateEditDataPath() 3092 string tempOutputPath = outputPath.substr(0, lastSlash) + in AddFiltersToPhoto() local 3094 int32_t ret = MediaFileUtils::CreateAsset(tempOutputPath); in AddFiltersToPhoto() 3100 CHECK_AND_PRINT_LOG(MediaFileUtils::DeleteFile(tempOutputPath), in AddFiltersToPhoto() 3108 CHECK_AND_PRINT_LOG(MediaFileUtils::DeleteFile(tempOutputPath), in AddFiltersToPhoto() 3113 ret = rename(tempOutputPath.c_str(), outputPath.c_str()); in AddFiltersToPhoto() [all …]
|