/ohos5.0/docs/zh-cn/application-dev/media/camera/ |
H A D | camera-worker.md | 26 surfaceId: string; 34 console.info(`worker initCamera surfaceId:${messageInfo.surfaceId}`) 36 await CameraService.initCamera(messageInfo.context, messageInfo.surfaceId); 69 async initCamera(context: Context, surfaceId: string): Promise<void> { 70 console.info(`initCamera surfaceId: ${surfaceId}`); 166 private surfaceId: string = ''; 173 if ('' !== this.surfaceId) { 178 surfaceId: this.surfaceId, 200 // 初始化XComponent获取预览流surfaceId 207 console.info(`onLoad surfaceId: ${this.surfaceId}`); [all …]
|
H A D | camera-animation.md | 108 …mage-kit/js-apis-image.md#imagecreatepixelmapfromsurface11)接口实现,surfaceId为当前预览流的surfaceId,size为当前预… 118 * @param surfaceId 121 public static async doSurfaceShot(surfaceId: string) { 122 console.info(`doSurfaceShot surfaceId:${surfaceId}.`); 123 if (surfaceId === '') { 131 this.surfaceShot = await image.createPixelMapFromSurface(surfaceId, { 165 @State surfaceId: string = ''; // 当前预览流XComponent的surfaceId
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/ |
H A D | rs_texture_export_test.cpp | 51 SurfaceId surfaceId = 0; variable 52 RSTextureExport text(rootNode, surfaceId); 66 SurfaceId surfaceId = 0; variable 67 RSTextureExport text(rootNode, surfaceId); 82 SurfaceId surfaceId = 0; variable 83 RSTextureExport text(RSNode, surfaceId); 97 SurfaceId surfaceId = 0; variable 98 RSTextureExport text(rootNode, surfaceId);
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/ |
H A D | camera_manager.cpp | 222 const char* surfaceId, Camera_PreviewOutput** previewOutput) in OH_CameraManager_CreatePreviewOutput() argument 228 CHECK_AND_RETURN_RET_LOG(surfaceId != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_CreatePreviewOutput() 237 const char* surfaceId, Camera_PreviewOutput** previewOutput) in OH_CameraManager_CreatePreviewOutputUsedInPreconfig() argument 242 CHECK_AND_RETURN_RET_LOG(surfaceId != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_CreatePreviewOutputUsedInPreconfig() 251 const char* surfaceId, Camera_PhotoOutput** photoOutput) in OH_CameraManager_CreatePhotoOutput() argument 258 CHECK_AND_RETURN_RET_LOG(surfaceId != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_CreatePhotoOutput() 281 const char* surfaceId, Camera_PhotoOutput** photoOutput) in OH_CameraManager_CreatePhotoOutputUsedInPreconfig() argument 286 CHECK_AND_RETURN_RET_LOG(surfaceId != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_CreatePhotoOutputUsedInPreconfig() 295 const char* surfaceId, Camera_VideoOutput** videoOutput) in OH_CameraManager_CreateVideoOutput() argument 301 CHECK_AND_RETURN_RET_LOG(surfaceId != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_CreateVideoOutput() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/pages/ |
H A D | Index.ets | 62 @State surfaceId: string = ''; 87 surfaceId: this.surfaceId, 131 if (this.surfaceId) { 132 await CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex); 157 this.surfaceId = this.mXComponentController.getXComponentSurfaceId(); 158 Logger.info(TAG, `onLoad surfaceId: ${this.surfaceId}`); 159 await CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex); 160 GlobalContext.get().setObject('surfaceId', this.surfaceId); 199 surfaceId: this.surfaceId, 242 surfaceId: this.surfaceId,
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | webview-render-app-components.md | 317 private surfaceId: string = ""; // 当前的surfaceId 326 * 设置surfaceId等渲染选项 329 this.surfaceId = params.surfaceId; 341 if (!this.surfaceId) { // 当前没有surfaceId时直接返回null 344 let getNode: Node = this.nodeMap.get(this.surfaceId); 345 if (getNode) { // 根据surfaceId获取BuilderNode 348 …let newNode: Node = new BuilderNode(uiContext, { surfaceId: this.surfaceId, type: this.renderType … 350 this.nodeMap.set(this.surfaceId, newNode); 359 if (!this.surfaceId) { 387 // 获取embed标签的surfaceId等信息,传入searchNodeController [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-xcomponent.md | 302 onSurfaceCreated(surfaceId: string): void 322 onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void 343 onSurfaceDestroyed(surfaceId: string): void 509 onSurfaceCreated(surfaceId: string): void { 510 console.log(`onSurfaceCreated surfaceId: ${surfaceId}`); 511 nativeRender.SetSurfaceId(BigInt(surfaceId)); 515 console.log(`onSurfaceChanged surfaceId: ${surfaceId}, rect: ${JSON.stringify(rect)}}`); 519 onSurfaceDestroyed(surfaceId: string): void { 520 console.log(`onSurfaceDestroyed surfaceId: ${surfaceId}`); 521 nativeRender.DestroySurface(BigInt(surfaceId)); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rstextureexport_fuzzer/ |
H A D | rstextureexport_fuzzer.cpp | 65 SurfaceId surfaceId = GetData<SurfaceId>(); in DoRSTextureExport() local 68 RSTextureExport text(node, surfaceId); in DoRSTextureExport() 84 SurfaceId surfaceId = GetData<SurfaceId>(); in DoDoTextureExport() local 87 RSTextureExport text(node, surfaceId); in DoDoTextureExport() 104 SurfaceId surfaceId = GetData<SurfaceId>(); in DoStopTextureExport() local 107 RSTextureExport text(node, surfaceId); in DoStopTextureExport()
|
/ohos5.0/docs/en/application-dev/media/camera/ |
H A D | camera-worker.md | 26 surfaceId: string; 34 console.info(`worker initCamera surfaceId:${messageInfo.surfaceId}`) 36 await CameraService.initCamera(messageInfo.context, messageInfo.surfaceId); 69 async initCamera(context: Context, surfaceId: string): Promise<void> { 70 console.info(`initCamera surfaceId: ${surfaceId}`); 166 private surfaceId: string = ''; 173 if ('' !== this.surfaceId) { 178 surfaceId: this.surfaceId, 201 this.surfaceId = this.mXComponentController.getXComponentSurfaceId(); 207 console.info(`onLoad surfaceId: ${this.surfaceId}`); [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/pages/ |
H A D | tableIndex.ets | 55 @State surfaceId: string = '' 87 surfaceId: this.surfaceId, 146 if (this.surfaceId && this.onShow) { 148 … cameraDemo.initCamera(this.surfaceId, globalThis.settingDataObj.focusMode, this.cameraDeviceIndex) 170 this.surfaceId = this.mXComponentController.getXComponentSurfaceId() 171 Logger.info(TAG, `onLoad surfaceId: ${this.surfaceId}`) 173 …cameraDemo.initCamera(this.surfaceId, globalThis.settingDataObj.focusMode, this.cameraDeviceIndex); 221 surfaceId: this.surfaceId,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/ |
H A D | xcomponent_event_hub.h | 92 …void FireControllerCreatedEvent(const std::string& surfaceId, const std::string& xcomponentId) con… in FireControllerCreatedEvent() argument 95 controllerCreatedEvent_(surfaceId, xcomponentId); in FireControllerCreatedEvent() 104 void FireControllerChangedEvent(const std::string& surfaceId, const RectF& rect) const in FireControllerChangedEvent() argument 107 controllerChangedEvent_(surfaceId, rect); in FireControllerChangedEvent() 116 …void FireControllerDestroyedEvent(const std::string& surfaceId, const std::string& xcomponentId) c… in FireControllerDestroyedEvent() argument 119 controllerDestroyedEvent_(surfaceId, xcomponentId); in FireControllerDestroyedEvent()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/ |
H A D | camera_manager_impl.h | 63 Camera_ErrorCode CreatePreviewOutput(const Camera_Profile* profile, const char* surfaceId, 66 …Camera_ErrorCode CreatePreviewOutputUsedInPreconfig(const char* surfaceId, Camera_PreviewOutput** … 68 Camera_ErrorCode CreatePhotoOutput(const Camera_Profile* profile, const char* surfaceId, 74 …Camera_ErrorCode CreatePhotoOutputUsedInPreconfig(const char* surfaceId, Camera_PhotoOutput** phot… 76 Camera_ErrorCode CreateVideoOutput(const Camera_VideoProfile* profile, const char* surfaceId, 79 …Camera_ErrorCode CreateVideoOutputUsedInPreconfig(const char* surfaceId, Camera_VideoOutput** vide…
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | form_render_delegate_impl_test.cpp | 156 uint16_t surfaceId= 11111; variable 215 uint64_t surfaceId = 1; variable 222 reUseData.WriteUint64(surfaceId); 303 uint64_t surfaceId = 2; variable 310 reUseData.WriteUint64(surfaceId); 327 uint64_t surfaceId = 1; variable 332 reUseData.WriteUint64(surfaceId); 347 uint64_t surfaceId = 2; variable 369 uint64_t surfaceId = 2; variable 391 uint64_t surfaceId = 1; variable [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-user-authentication-kit/ |
H A D | js-apis-useriam-faceauth-sys.md | 47 setSurfaceId(surfaceId: string): void; 61 | surfaceId | string | 是 | [XComponent](../apis-arkui/arkui-ts/ts-basic-components-xcom… 78 // 该surfaceId应该从XComponent控件获取,此处仅用作示例。 79 let surfaceId = '123456'; 82 manager.setSurfaceId(surfaceId);
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/native/include/camera/ |
H A D | camera_manager.h | 308 const char* surfaceId, Camera_PreviewOutput** previewOutput); 322 const char* surfaceId, Camera_PreviewOutput** previewOutput); 337 const char* surfaceId, Camera_PhotoOutput** photoOutput); 351 const char* surfaceId, Camera_PhotoOutput** photoOutput); 380 const char* surfaceId, Camera_VideoOutput** videoOutput); 394 const char* surfaceId, Camera_VideoOutput** videoOutput);
|
/ohos5.0/base/telephony/call_manager/test/fuzztest/controlcamera_fuzzer/ |
H A D | controlcamera_fuzzer.cpp | 49 std::string surfaceId(reinterpret_cast<const char *>(data), size); in SetPreviewWindow() 52 int len = static_cast<int>(surfaceId.length()); in SetPreviewWindow() 53 std::string subSurfaceId = surfaceId; in SetPreviewWindow() 55 subSurfaceId = surfaceId.substr(0, 1); in SetPreviewWindow() 81 std::string surfaceId(reinterpret_cast<const char *>(data), size); in SetDisplayWindow() 84 int len = static_cast<int>(surfaceId.length()); in SetDisplayWindow() 85 std::string subSurfaceId = surfaceId; in SetDisplayWindow() 87 subSurfaceId = surfaceId.substr(0, 1); in SetDisplayWindow()
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | opengles.md | 418 onSurfaceCreated(surfaceId: string): void { 419 console.log(`onSurfaceCreated surfaceId: ${surfaceId}`); 421 // 之后会使用 surfaceId 关联 native window 425 console.log(`onSurfaceChanged surfaceId: ${surfaceId}`); 428 onSurfaceDestroyed(surfaceId: string): void { 429 console.log(`onSurfaceDestroyed surfaceId: ${surfaceId}`); 433 3. 使用surfaceId获取NativeWindow: 434 surfaceId是在XComponent创建过程中生成的。在onSurfaceCreated 回调中,可以使用OH_NativeWindow_CreateNativeWindowFromSurfa… 438 int64_t surfaceId = ParseId(env, info); 443 windowMap_[surfaceId] = nativeWindow; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/ |
H A D | form_renderer_delegate_proxy.cpp | 70 uint64_t surfaceId, const OHOS::AppExecFwk::FormJsInfo& formJsInfo, const AAFwk::Want& want) in OnSurfaceReuse() argument 77 data.WriteUint64(surfaceId); in OnSurfaceReuse() 86 HILOG_INFO("Proxy reuse surfaceNode:%{public}s", std::to_string(surfaceId).c_str()); in OnSurfaceReuse() 105 int32_t FormRendererDelegateProxy::OnSurfaceDetach(uint64_t surfaceId) in OnSurfaceDetach() argument 112 data.WriteUint64(surfaceId); in OnSurfaceDetach() 113 HILOG_INFO("Proxy detach surfaceNode:%{public}s", std::to_string(surfaceId).c_str()); in OnSurfaceDetach() 132 int32_t FormRendererDelegateProxy::OnSurfaceRelease(uint64_t surfaceId) in OnSurfaceRelease() argument 139 data.WriteUint64(surfaceId); in OnSurfaceRelease() 140 HILOG_INFO("Proxy release surfaceNode:%{public}s", std::to_string(surfaceId).c_str()); in OnSurfaceRelease()
|
/ohos5.0/docs/en/application-dev/reference/apis-user-authentication-kit/ |
H A D | js-apis-useriam-faceauth-sys.md | 47 setSurfaceId(surfaceId: string): void; 61 | surfaceId | string | Yes | ID of the surface held by [XComponent](../apis-arkui/arkui-… 78 // The surfaceId is obtained from the XComponent control. The surfaceId here is only an example. 79 let surfaceId = '123456'; 82 manager.setSurfaceId(surfaceId);
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | napi-xcomponent-guidelines.md | 1194 console.log(`onSurfaceCreated surfaceId: ${surfaceId}`) 1199 console.log(`onSurfaceChanged surfaceId: ${surfaceId}, rect: ${JSON.stringify(rect)}}`) 1204 console.log(`onSurfaceDestroyed surfaceId: ${surfaceId}`) 1336 // 解析从ArkTS侧传入的surfaceId,此处surfaceId是一个64位int值 1359 int64_t surfaceId = ParseId(env, info); 1377 // 根据传入的surfaceId、width、height实现surface大小的变动 1384 int64_t surfaceId = 0; 1427 int64_t surfaceId = ParseId(env, info); 1443 int64_t surfaceId = ParseId(env, info); 1464 int64_t surfaceId = ParseId(env, info); [all …]
|
/ohos5.0/base/useriam/face_auth/frameworks/js/napi/src/ |
H A D | face_auth_napi.cpp | 84 bool GetBufferProducerBySurfaceId(uint64_t surfaceId, sptr<IBufferProducer> &bufferProducer) in GetBufferProducerBySurfaceId() argument 86 if (surfaceId == 0) { in GetBufferProducerBySurfaceId() 98 sptr<Surface> previewSurface = surfaceUtils->GetSurface(surfaceId); in GetBufferProducerBySurfaceId() 137 uint64_t surfaceId; in SetSurfaceId() local 138 surfaceIdStream >> surfaceId; in SetSurfaceId() 141 if (!GetBufferProducerBySurfaceId(surfaceId, bufferProducer)) { in SetSurfaceId()
|
/ohos5.0/docs/zh-cn/application-dev/displaymanager/ |
H A D | virtualScreen-guideline.md | 14 | setVirtualScreenSurface(screenId:number, surfaceId: string): Promise<void> | 设置虚拟屏幕的Surface… 75 surfaceId: string = ''; 83 surfaceId: '' 94 // 获取surfaceId 95 let surfaceId = this.xComponentController.getXComponentSurfaceId(); 96 … screen.setVirtualScreenSurface(screenVirtualScreen.id, surfaceId, (err: BusinessError) => {
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.6.3/ |
H A D | changelogs-camera.md | 54 createPhotoOutput用来创建拍照输出对象,删除入参surfaceId: string,接口改为只通过拍照配置信息创建拍照输出对象。 58 createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput会在API11版本废弃,保留五个版本。 65 createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput 69 入参包含支持的拍照配置信息profile以及从ImageReceiver获取的surfaceId。 106 createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/ |
H A D | xcomponent_node.ts | 26 const surfaceId = options.surfaceId; 29 …this.nativeModule_ = this.xcomponentNode_.create(elmtId, id, type, this.renderType_, surfaceId, se…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-camera-sync.md | 24 …surfaceId: string): PreviewOutput;<br/>createPhotoOutput(profile: Profile, surfaceId: string): Pho… 25 …surfaceId: string, callback: AsyncCallback<PreviewOutput>): void;<br/>createPreviewOutput(profile:… 179 …surfaceId: string, callback: AsyncCallback<PreviewOutput>): void; 以及 createPreviewOutput(profile: … 185 let previewOutput = cameraManager.createPreviewOutput(profile, surfaceId); 188 …surfaceId: string, callback: AsyncCallback<PhotoOutput>): void; 以及 createPhotoOutput(profile: Prof… 194 let photoOutput = cameraManager.createPhotoOutput(profile, surfaceId); 197 …surfaceId: string, callback: AsyncCallback<VideoOutput>): void; 以及 createVideoOutput(profile: Vide… 203 let videoOutput = cameraManager.createVideoOutput(profile, surfaceId);
|