Home
last modified time | relevance | path

Searched refs:cameraShotType (Results 1 - 23 of 23) sorted by relevance

/foundation/multimedia/media_library/frameworks/js/src/
H A Dmedia_library_comm_napi.cpp34 napi_env env, const string &uri, int32_t cameraShotType, const string &burstKey) in CreatePhotoAssetNapi()
48 if (cameraShotType == static_cast<int32_t>(CameraShotType::IMAGE)) { in CreatePhotoAssetNapi()
51 } else if (cameraShotType == static_cast<int32_t>(CameraShotType::MOVING_PHOTO)) { in CreatePhotoAssetNapi()
54 } else if (cameraShotType == static_cast<int32_t>(CameraShotType::BURST)) { in CreatePhotoAssetNapi()
58 } else if (cameraShotType == static_cast<int32_t>(CameraShotType::VIDEO)) { in CreatePhotoAssetNapi()
62 NAPI_ERR_LOG("invalid cameraShotKey: %{public}d", cameraShotType); in CreatePhotoAssetNapi()
33 CreatePhotoAssetNapi( napi_env env, const string &uri, int32_t cameraShotType, const string &burstKey) CreatePhotoAssetNapi() argument
/foundation/multimedia/media_library/frameworks/native/c_api/
H A Dmedia_asset_helper_impl.cpp41 OH_MediaAsset* MediaAssetHelperImpl::GetMediaAsset(std::string uri, int32_t cameraShotType, std::string burstKey) in GetMediaAsset() argument
52 if (cameraShotType == static_cast<int32_t>(Media::CameraShotType::IMAGE)) { in GetMediaAsset()
55 } else if (cameraShotType == static_cast<int32_t>(CameraShotType::MOVING_PHOTO)) { in GetMediaAsset()
58 } else if (cameraShotType == static_cast<int32_t>(CameraShotType::BURST)) { in GetMediaAsset()
63 MEDIA_INFO_LOG("invalid cameraShotKey: %{public}d", cameraShotType); in GetMediaAsset()
/foundation/multimedia/camera_framework/services/camera_service/binder/server/src/
H A Dhcapture_session_stub.cpp274 int32_t cameraShotType = 0; in HandleCreateMediaLibrary() local
276 int32_t ret = CreateMediaLibrary(photoProxy, uri, cameraShotType, burstKey, timestamp); in HandleCreateMediaLibrary()
277 CHECK_AND_RETURN_RET_LOG(reply.WriteString(uri) && reply.WriteInt32(cameraShotType) && reply.WriteString(burstKey), in HandleCreateMediaLibrary()
278 IPC_STUB_WRITE_PARCEL_ERR, "HCaptureSessionStub HandleCreateMediaLibrary Write uri and cameraShotType failed"); in HandleCreateMediaLibrary()
294 int32_t cameraShotType = 0; in HandleCreateMediaLibraryForPicture() local
296 int32_t ret = CreateMediaLibrary(std::move(picture), photoProxy, uri, cameraShotType, burstKey, timestamp); in HandleCreateMediaLibraryForPicture()
297 CHECK_AND_RETURN_RET_LOG(reply.WriteString(uri) && reply.WriteInt32(cameraShotType) && reply.WriteString(burstKey), in HandleCreateMediaLibraryForPicture()
298 IPC_STUB_WRITE_PARCEL_ERR, "HCaptureSessionStub HandleCreateMediaLibrary Write uri and cameraShotType failed"); in HandleCreateMediaLibraryForPicture()
/foundation/multimedia/camera_framework/services/camera_service/binder/client/include/
H A Dhcapture_session_proxy.h69 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) override;
72 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) override;
/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dmedia_library_comm_napi.h32 napi_env env, const std::string &uri, int32_t cameraShotType, const std::string &burstKey = "");
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_asset_helper.h28 virtual OH_MediaAsset* GetMediaAsset(std::string uri, int32_t cameraShotType, std::string burstKey) = 0;
H A Dmedia_asset_helper_impl.h31 OH_MediaAsset* GetMediaAsset(std::string uri, int32_t cameraShotType, std::string burstKey) override;
H A Dmedia_photo_asset_proxy.h49 PhotoAssetProxy(std::shared_ptr<DataShare::DataShareHelper> dataShareHelper, CameraShotType cameraShotType,
H A Dmedia_library_manager.h235 * @param cameraShotType a parameter for input, indicates camera shot type
240 EXPORT std::shared_ptr<PhotoAssetProxy> CreatePhotoAssetProxy(CameraShotType cameraShotType, uint32_t callingUid,
/foundation/multimedia/camera_framework/services/camera_service/binder/base/include/
H A Dicapture_session.h81 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) = 0;
84 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) = 0;
/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
H A Dphoto_listener_impl.cpp202 int32_t cameraShotType = 0; in ExecutePhotoAsset() local
205 uri, cameraShotType, burstKey, timestamp); in ExecutePhotoAsset()
211 auto mediaAsset = mediaAssetHelper->GetMediaAsset(uri, cameraShotType, burstKey); in ExecutePhotoAsset()
243 int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) in CreateMediaLibrary()
271 photoOutput->GetSession()->CreateMediaLibrary(photoProxy, uri, cameraShotType, burstKey, timestamp); in CreateMediaLibrary()
241 CreateMediaLibrary(sptr<SurfaceBuffer> surfaceBuffer, BufferHandle *bufferHandle, CameraBufferExtraData extraData, bool isHighQuality, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument
H A Dphoto_listener_impl.h63 int32_t &cameraShotType, std::string &burstKey, int64_t timestamp);
/foundation/multimedia/camera_framework/services/camera_service/binder/client/src/
H A Dhcapture_session_proxy.cpp364 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) in CreateMediaLibrary()
380 cameraShotType = reply.ReadInt32(); in CreateMediaLibrary()
386 sptr<CameraPhotoProxy> &photoProxy, std::string &uri, int32_t &cameraShotType, in CreateMediaLibrary()
407 cameraShotType = reply.ReadInt32(); in CreateMediaLibrary()
363 CreateMediaLibrary(sptr<CameraPhotoProxy> &photoProxy, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument
385 CreateMediaLibrary(std::unique_ptr<Media::Picture> picture, sptr<CameraPhotoProxy> &photoProxy, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument
/foundation/multimedia/camera_framework/test/fuzztest/cloudenhancesession_fuzzer/
H A Dcloud_enhance_session_fuzzer.cpp147 int32_t cameraShotType; in TestCreateMediaLibrary() local
150 session->CreateMediaLibrary(Media::Picture::Create(surfaceBuffer), photoProxy, uri, cameraShotType, in TestCreateMediaLibrary() local
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_photo_asset_proxy.cpp54 PhotoAssetProxy::PhotoAssetProxy(shared_ptr<DataShare::DataShareHelper> dataShareHelper, CameraShotType cameraShotType, in PhotoAssetProxy() argument
58 cameraShotType_ = cameraShotType; in PhotoAssetProxy()
61 auto itr = CAMERASHOT_TO_SUBTYPE_MAP.find(cameraShotType); in PhotoAssetProxy()
68 static_cast<int32_t>(cameraShotType), callingUid, userId); in PhotoAssetProxy()
/foundation/multimedia/camera_framework/services/camera_service/include/
H A Dhcapture_session.h248 std::string& uri, int32_t& cameraShotType, std::string& burstKey, int64_t timestamp) override;
250 std::string &uri, int32_t &cameraShotType, std::string& burstKey, int64_t timestamp) override;
251 void SetCameraPhotoProxyInfo(sptr<CameraServerPhotoProxy> cameraPhotoProxy, int32_t &cameraShotType,
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/output/
H A Dphoto_output_napi.h149 void UpdatePictureJSCallback(const string uri, int32_t cameraShotType, const std::string burstKey) const;
156 std::string& uri, int32_t& cameraShotType, std::string &burstKey, int64_t timestamp) const;
270 int32_t cameraShotType = 0; member
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/
H A Dphoto_output_napi.cpp564 void PhotoListener::UpdatePictureJSCallback(const string uri, int32_t cameraShotType, const std::string burstKey) const in UpdatePictureJSCallback() argument
580 callbackInfo->cameraShotType = cameraShotType; in UpdatePictureJSCallback()
594 callbackInfo->uri, callbackInfo->cameraShotType, callbackInfo->burstKey); in UpdatePictureJSCallback()
596 callbackInfo->uri.c_str(), callbackInfo->cameraShotType, callbackInfo->burstKey.c_str()); in UpdatePictureJSCallback()
713 int32_t cameraShotType; in AssembleAuxiliaryPhoto() local
716 uri, cameraShotType, burstKey, timestamp); in AssembleAuxiliaryPhoto() local
717 MEDIA_INFO_LOG("CreateMediaLibrary result %{public}s, type %{public}d", uri.c_str(), cameraShotType); in AssembleAuxiliaryPhoto()
718 UpdatePictureJSCallback(uri, cameraShotType, burstKey); in AssembleAuxiliaryPhoto()
848 int32_t cameraShotType in ExecutePhotoAsset() local
861 CreateMediaLibrary(sptr<SurfaceBuffer> surfaceBuffer, BufferHandle *bufferHandle, bool isHighQuality, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) const CreateMediaLibrary() argument
[all...]
/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dhcapture_session.cpp1685 int32_t &cameraShotType, bool &isBursting, std::string &burstKey) in SetCameraPhotoProxyInfo()
1688 cameraShotType = static_cast<int32_t>(type); in SetCameraPhotoProxyInfo()
1713 cameraShotType = static_cast<int32_t>(CameraShotType::BURST); in SetCameraPhotoProxyInfo()
1722 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) in CreateMediaLibrary()
1748 SetCameraPhotoProxyInfo(cameraServerPhotoProxy, cameraShotType, isBursting, burstKey); in CreateMediaLibrary()
1755 CameraShotType type = static_cast<CameraShotType>(cameraShotType); in CreateMediaLibrary()
1837 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) in CreateMediaLibrary()
1863 SetCameraPhotoProxyInfo(cameraServerPhotoProxy, cameraShotType, isBursting, burstKey); in CreateMediaLibrary()
1864 CameraShotType type = static_cast<CameraShotType>(cameraShotType); in CreateMediaLibrary()
1684 SetCameraPhotoProxyInfo(sptr<CameraServerPhotoProxy> cameraServerPhotoProxy, int32_t &cameraShotType, bool &isBursting, std::string &burstKey) SetCameraPhotoProxyInfo() argument
1721 CreateMediaLibrary(sptr<CameraPhotoProxy> &photoProxy, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument
1836 CreateMediaLibrary(std::unique_ptr<Media::Picture> picture, sptr<CameraPhotoProxy> &photoProxy, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument
/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/
H A Dcapture_session_fuzzer.cpp303 int32_t cameraShotType; in TestCreateMediaLibrary() local
306 session->CreateMediaLibrary(photoProxy, uri, cameraShotType, burstKey, timestamp); in TestCreateMediaLibrary()
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/session/
H A Dcapture_session.h474 * @param cameraShotType get cameraShotType for medialibary.
477 void CreateMediaLibrary(sptr<CameraPhotoProxy> photoProxy, std::string &uri, int32_t &cameraShotType,
481 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/
H A Dmedia_library_manager.cpp1339 shared_ptr<PhotoAssetProxy> MediaLibraryManager::CreatePhotoAssetProxy(CameraShotType cameraShotType, in CreatePhotoAssetProxy() argument
1344 shared_ptr<PhotoAssetProxy> photoAssetProxy = make_shared<PhotoAssetProxy>(dataShareHelper, cameraShotType, in CreatePhotoAssetProxy()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/session/
H A Dcapture_session.cpp1169 void CaptureSession::CreateMediaLibrary(sptr<CameraPhotoProxy> photoProxy, std::string &uri, int32_t &cameraShotType, in CreateMediaLibrary() argument
1177 errorCode = captureSession->CreateMediaLibrary(photoProxy, uri, cameraShotType, burstKey, timestamp); in CreateMediaLibrary()
1186 std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) in CreateMediaLibrary()
1192 errorCode = captureSession->CreateMediaLibrary(std::move(picture), photoProxy, uri, cameraShotType, in CreateMediaLibrary()
1185 CreateMediaLibrary(std::unique_ptr<Media::Picture> picture, sptr<CameraPhotoProxy> photoProxy, std::string &uri, int32_t &cameraShotType, std::string &burstKey, int64_t timestamp) CreateMediaLibrary() argument

Completed in 32 milliseconds