Home
last modified time | relevance | path

Searched refs:srcFd (Results 1 - 25 of 53) sorted by relevance

123

/foundation/multimedia/media_library/frameworks/js/src/
H A Dmedia_call_transcode.cpp30 int srcFd, int destFd, const std::string& errorMsg) in TransCodeError()
33 close(srcFd); in TransCodeError()
38 void MediaCallTranscode::CallTranscodeHandle(napi_env env, int srcFd, int destFd, in CallTranscodeHandle() argument
44 TransCodeError(env, result, srcFd, destFd, "Failed to create TransCoder"); in CallTranscodeHandle()
50 TransCodeError(env, result, srcFd, destFd, "Failed to create MediaAssetManagerCallback"); in CallTranscodeHandle()
56 TransCodeError(env, result, srcFd, destFd, "Failed to set TransCoder callback"); in CallTranscodeHandle()
59 ret = transCoder->SetInputFile(srcFd, 0, size); in CallTranscodeHandle()
61 TransCodeError(env, result, srcFd, destFd, "Failed to set input file for TransCoder"); in CallTranscodeHandle()
66 TransCodeError(env, result, srcFd, destFd, "Failed to set output file for TransCoder"); in CallTranscodeHandle()
71 TransCodeError(env, result, srcFd, destF in CallTranscodeHandle()
29 TransCodeError(napi_env env, napi_value &result, int srcFd, int destFd, const std::string& errorMsg) TransCodeError() argument
[all...]
/foundation/multimedia/player_framework/frameworks/native/transcoder/test/unittest/src/
H A Dtranscoder_unit_test.cpp64 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); in HWTEST_F() local
65 ASSERT_TRUE(srcFd >= 0); in HWTEST_F()
68 EXPECT_EQ(MSERR_OK, transcoder_->SetInputFile(srcFd, offset, size)); in HWTEST_F()
86 close(srcFd); in HWTEST_F()
97 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); in HWTEST_F() local
98 ASSERT_TRUE(srcFd >= 0); in HWTEST_F()
101 EXPECT_EQ(MSERR_OK, transcoder_->SetInputFile(srcFd, offset, size)); in HWTEST_F()
120 close(srcFd); in HWTEST_F()
131 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); in HWTEST_F() local
132 ASSERT_TRUE(srcFd > in HWTEST_F()
166 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); HWTEST_F() local
203 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR); HWTEST_F() local
234 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR); HWTEST_F() local
267 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
311 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
357 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
404 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
453 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR); HWTEST_F() local
482 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR); HWTEST_F() local
511 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR); HWTEST_F() local
540 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); HWTEST_F() local
570 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); HWTEST_F() local
600 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR); HWTEST_F() local
630 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
672 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
714 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "ChineseColor_H264_AAC_480p_15fps.mp4").c_str(), O_RDWR); HWTEST_F() local
[all...]
/foundation/filemanagement/app_file_service/test/fuzztest/remotefileshare_fuzzer/
H A Dremotefileshare_fuzzer.cpp41 int srcFd; member
72 sc.srcFd = size; in ShareFilePathIoctlFdAndCidFuzzTest()
92 int32_t srcFd; in ShareFilePathIoctlCidFuzzTest() local
115 srcFd = open(srcPath, O_RDONLY); in ShareFilePathIoctlCidFuzzTest()
116 if (srcFd < 0) { in ShareFilePathIoctlCidFuzzTest()
120 sc.srcFd = size; in ShareFilePathIoctlCidFuzzTest()
124 close(srcFd); in ShareFilePathIoctlCidFuzzTest()
131 close(srcFd); in ShareFilePathIoctlCidFuzzTest()
135 close(srcFd); in ShareFilePathIoctlCidFuzzTest()
171 sc.srcFd in ShareFilePathIoctlFdFuzzTest()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_manager_test/src/
H A Dmedia_library_asset_manager_test.cpp250 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
251 ASSERT_NE(srcFd <= 0, true); in HWTEST_F()
252 int32_t resWrite = write(srcFd, FILE_CONTENT_JPG, sizeof(FILE_CONTENT_JPG)); in HWTEST_F()
256 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
298 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
299 ASSERT_NE(srcFd <= 0, true); in HWTEST_F()
300 int32_t resWrite = write(srcFd, FILE_CONTENT_JPG, sizeof(FILE_CONTENT_JPG)); in HWTEST_F()
304 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
346 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
347 ASSERT_NE(srcFd < in HWTEST_F()
418 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); HWTEST_F() local
466 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); HWTEST_F() local
501 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); HWTEST_F() local
536 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); HWTEST_F() local
595 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/deferred_processing/
H A Ddeferred_video_proc_adapter.cpp85 void DeferredVideoProcessingAdapter::AddVideo(const std::string &videoId, int srcFd, int dstFd) in AddVideo() argument
93 if (srcFd < 0) { in AddVideo()
94 MEDIA_ERR_LOG("AddVideo srcFd is %{public}d", srcFd); in AddVideo()
102 auto src = sptr<IPCFileDescriptor>::MakeSptr(srcFd); in AddVideo()
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/session/video_session/
H A Ddeferred_video_processing_session.h28 VideoInfo(const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in VideoInfo() argument
29 : srcFd_(srcFd), dstFd_(dstFd) in VideoInfo()
47 int32_t AddVideo(const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd,
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Ddup.cpp38 auto [succ, srcFd] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Sync()
39 if (!succ || srcFd < 0) { in Sync()
44 int dstFd = dup(srcFd); in Sync()
/foundation/multimedia/media_library/frameworks/native/c_api/
H A Dmedia_asset_change_request_impl.cpp460 OHOS::UniqueFd srcFd(open(absFilePath.c_str(), O_RDONLY)); in CopyFileToMediaLibrary()
461 CHECK_AND_RETURN_RET_LOG(srcFd.Get() >= 0, srcFd.Get(), in CopyFileToMediaLibrary()
464 int32_t err = SendFile(srcFd, destFd); in CopyFileToMediaLibrary()
465 CHECK_AND_PRINT_LOG(err == E_OK, "Failed to send file from %{public}d to %{public}d", srcFd.Get(), destFd.Get()); in CopyFileToMediaLibrary()
493 OHOS::UniqueFd srcFd(open(absFilePath.c_str(), O_RDONLY)); in SendToCacheFile()
494 CHECK_AND_RETURN_RET_LOG(srcFd.Get() >= 0, false, "Failed to open file, errno=%{public}d", errno); in SendToCacheFile()
496 int32_t err = SendFile(srcFd, destFd); in SendToCacheFile()
498 "Failed to send file from %{public}d to %{public}d", srcFd.Get(), destFd.Get()); in SendToCacheFile()
528 int32_t MediaAssetChangeRequestImpl::SendFile(const OHOS::UniqueFd& srcFd, cons argument
[all...]
H A Dmoving_photo_impl.cpp142 int32_t MovingPhotoImpl::WriteToSandboxUri(int32_t srcFd, std::string& sandboxUri) in WriteToSandboxUri() argument
144 UniqueFd srcUniqueFd(srcFd); in WriteToSandboxUri()
167 int32_t MovingPhotoImpl::CopyFileFromMediaLibrary(int32_t srcFd, int32_t destFd) in CopyFileFromMediaLibrary() argument
173 while ((bytesRead = read(srcFd, buffer, bufferSize)) > 0) { in CopyFileFromMediaLibrary()
176 MEDIA_ERR_LOG("Failed to copy file from srcFd=%{public}d to destFd=%{public}d, errno=%{public}d", in CopyFileFromMediaLibrary()
177 srcFd, destFd, errno); in CopyFileFromMediaLibrary()
183 MEDIA_ERR_LOG("Failed to read from srcFd=%{public}d, errno=%{public}d", srcFd, errno); in CopyFileFromMediaLibrary()
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_video_capture_manager.cpp64 int srcFd = open(absSrcFilePath.c_str(), O_RDONLY); in AddVideoInternal() local
65 if (srcFd < 0) { in AddVideoInternal()
66 MEDIA_ERR_LOG("open file fail, srcFd = %{public}d", srcFd); in AddVideoInternal()
74 close(srcFd); in AddVideoInternal()
84 close(srcFd); in AddVideoInternal()
88 deferredProcSession_->AddVideo(videoId, srcFd, dstFd); in AddVideoInternal()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/moving_photo_test/src/
H A Dmoving_photo_test.cpp106 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
107 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
164 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
165 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
193 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
194 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
276 int32_t srcFd = mediaLibraryManager->OpenAsset(srcuri, MEDIA_FILEMODE_READWRITE); in HWTEST_F() local
277 mediaLibraryManager->CloseAsset(srcuri, srcFd); in HWTEST_F()
/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/server/src/
H A Ddeferred_video_processing_session_stub.cpp49 sptr<IPCFileDescriptor> srcFd(data.ReadParcelable<IPCFileDescriptor>()); in OnRemoteRequest()
51 if (!srcFd) { in OnRemoteRequest()
59 ErrCode errCode = AddVideo(videoId, srcFd, dstFd); in OnRemoteRequest()
/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dmedia_call_transcode.h28 static void CallTranscodeHandle(napi_env env, int srcFd, int destFd,
34 static void TransCodeError(napi_env env, napi_value &result, int srcFd, int destFd, const std::string& errorMsg);
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/
H A Ddeferred_video_job.cpp38 DeferredVideoJob::DeferredVideoJob(const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd, in DeferredVideoJob() argument
41 srcFd_(srcFd), in DeferredVideoJob()
45 DP_DEBUG_LOG("videoId: %{public}s, srcFd: %{public}d, dstFd: %{public}d", in DeferredVideoJob()
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmoving_photo_impl.h43 int32_t WriteToSandboxUri(int32_t srcFd, std::string& sandboxUri);
44 int32_t CopyFileFromMediaLibrary(int32_t srcFd, int32_t destFd);
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_deferred_video_unittest.cpp137 sptr<IPCFileDescriptor> srcFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_ID1); in HWTEST_F() local
139 session_->AddVideo(videoId, srcFd, dstFd); in HWTEST_F()
156 sptr<IPCFileDescriptor> srcFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_ID1); in HWTEST_F() local
158 session_->AddVideo(videoId, srcFd, dstFd); in HWTEST_F()
175 sptr<IPCFileDescriptor> srcFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_ID1); in HWTEST_F() local
177 session_->AddVideo(videoId, srcFd, dstFd); in HWTEST_F()
203 sptr<IPCFileDescriptor> srcFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_ID1); in HWTEST_F() local
205 session_->AddVideo(videoId, srcFd, dstFd); in HWTEST_F()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/command/
H A Dvideo_command.cpp50 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideoCommand()
51 : VideoCommand(userId, videoId), srcFd_(srcFd), dstFd_(dstFd) in AddVideoCommand()
53 DP_DEBUG_LOG("AddVideoCommand, videoId: %{public}s, srcFd: %{public}d, dstFd: %{public}d", in AddVideoCommand()
49 AddVideoCommand(const int32_t userId, const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) AddVideoCommand() argument
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dcopy.cpp46 static int OpenSrcFile(const std::string &srcPth, std::shared_ptr<FileInfos> infos, int32_t &srcFd) in OpenSrcFile() argument
60 srcFd = dataShareHelper->OpenFile(uri, CommonFunc::GetModeFromFlags(O_RDONLY)); in OpenSrcFile()
61 if (srcFd < 0) { in OpenSrcFile()
62 LOGE("Open media uri by data share fail. ret = %{public}d", srcFd); in OpenSrcFile()
66 srcFd = open(srcPth.c_str(), O_RDONLY); in OpenSrcFile()
67 if (srcFd < 0) { in OpenSrcFile()
425 int32_t srcFd = -1; in CopyFile() local
426 int32_t ret = OpenSrcFile(src, infos, srcFd); in CopyFile()
427 if (srcFd < 0) { in CopyFile()
433 close(srcFd); in CopyFile()
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/client/src/
H A Ddeferred_video_processing_session_proxy.cpp77 const sptr<IPCFileDescriptor>& srcFd, in AddVideo()
91 if (!data.WriteParcelable(srcFd)) { in AddVideo()
75 AddVideo( const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) AddVideo() argument
/foundation/multimedia/camera_framework/test/fuzztest/deferredprocessingstub_fuzzer/
H A Ddeferred_processing_stub_fuzzer.cpp92 sptr<IPCFileDescriptor> srcFd = sptr<IPCFileDescriptor>::MakeSptr(data.ReadFileDescriptor()); in DeferredProcessingVideoFuzzTest() local
95 session->AddVideo(videoId, srcFd, dstFd); in DeferredProcessingVideoFuzzTest()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/video_session/
H A Ddeferred_video_processing_session.cpp60 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideo()
62 auto infd = sptr<IPCFileDescriptor>::MakeSptr(dup(srcFd->GetFd())); in AddVideo()
59 AddVideo(const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) AddVideo() argument
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/
H A Ddeferred_video_processor.cpp49 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideo()
52 repository_->AddVideoJob(videoId, srcFd, dstFd); in AddVideo()
48 AddVideo(const std::string& videoId, const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) AddVideo() argument
/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/base/include/
H A Dideferred_video_processing_session.h39 const sptr<IPCFileDescriptor>& srcFd,
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/include/deferred_processing/
H A Ddeferred_video_proc_adapter.h40 void AddVideo(const std::string &videoId, int srcFd, int dstFd);
/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/client/include/
H A Ddeferred_video_processing_session_proxy.h43 const sptr<IPCFileDescriptor>& srcFd,

Completed in 40 milliseconds

123