Home
last modified time | relevance | path

Searched refs:filePath (Results 1 - 5 of 5) sorted by relevance

/applications/sample/camera/media/
H A Dplayer_sample.cpp69 char filePath[PATH_MAX + 1]; member
250 if (realpath(sample->filePath, resolvedPath) == nullptr) { in streamProcess()
297 FILE* pFile = fopen(sample->filePath, "rb"); in streamProcess()
302 printf("[%s,%d] file:%s\n", __func__, __LINE__, sample->filePath); in streamProcess()
339 FILE *fileTmp = fopen(sample.filePath, "rb"); in GetFileSize()
422 std::string uri(sample.filePath); in SetSourceProcess()
428 if (lstat(sample.filePath, &stFileState) != 0) { in SetSourceProcess()
429 printf("lstat %s failed, please check the file exist, errno:%d\n", sample.filePath, errno); in SetSourceProcess()
852 if ((sourceType == 0 || sourceType == 0x2) && (realpath(argv[1], sample.filePath) == nullptr)) { in ParseInputParam()
856 if (memcpy_s(sample.filePath, PATH_MA in ParseInputParam()
[all...]
/applications/sample/camera/gallery/src/
H A Dgallery_ability_slice.cpp334 char* filePath = new char[pathLen + 1](); in DeleteAllFilesInDir() local
335 if (sprintf_s(filePath, pathLen + 1, "%s/%s", path, info->d_name) < 0) { in DeleteAllFilesInDir()
337 delete[] filePath; in DeleteAllFilesInDir()
340 if (unlink(filePath) != 0) { in DeleteAllFilesInDir()
341 printf("unlink file error | %s\n", filePath); in DeleteAllFilesInDir()
343 delete[] filePath; in DeleteAllFilesInDir()
H A Dplayer_ability_slice.cpp173 int8_t ret = sprintf_s(videoPlayer_->filePath, videoPathLen + 1, "%s/%s", VIDEO_SOURCE_DIRECTORY, in SetUpVideoPlayer()
176 printf("PlayerAbilitySlice::OnStart | videoPlayer_->filePath | %s\n", reinterpret_cast<char*>(want.data)); in SetUpVideoPlayer()
179 ret = sprintf_s(&videoPlayer_->filePath[videoPathLen - strlen(AVAILABEL_SOURCE_TYPE)], in SetUpVideoPlayer()
182 printf("PlayerAbilitySlice::OnStart | videoPlayer_->filePath \n"); in SetUpVideoPlayer()
185 printf("------########### mp4 file path | %s\n", videoPlayer_->filePath); in SetUpVideoPlayer()
188 std::string uri(videoPlayer_->filePath); in SetUpVideoPlayer()
407 std::string uri(videoPlayer_->filePath); in Callback()
/applications/standard/app_samples/code/BasicFeature/Media/Image/photomodify/src/main/cpp/
H A DImage.cpp356 char filePath[PATH_MAX]; in CreatePictureByImageSource() local
362 napi_get_value_string_utf8(env, argValue[NUM_0], filePath, PATH_MAX, &filePathSize); in CreatePictureByImageSource()
365 g_thisPicture->errorCode = OH_ImageSourceNative_CreateFromUri(filePath, filePathSize, &g_thisPicture->source); in CreatePictureByImageSource()
/applications/sample/camera/gallery/include/
H A Dplayer_ability_slice.h40 char filePath[MAX_PATH_LENGTH]; member

Completed in 5 milliseconds