import { CameraFormat } from '@normalized:N&&&harmonyCameraLib/src/main/ets/TypeDefine&1.2.1'; import { PreviewOutputFactory, VideoOutputFactory } from '@normalized:N&&&harmonyCameraLib/src/main/ets/camerax/SysOutputFactory&1.2.1'; export var State; (function (j12) { j12[j12["ACTIVE"] = 0] = "ACTIVE"; j12[j12["INACTIVE"] = 1] = "INACTIVE"; })(State || (State = {})); export class PreviewUseCase { constructor(g12, h12, i12) { this.target = g12; this.size = h12.swap(); this.format = i12; } getSysProfiles() { } getOutputFactory(f12) { return PreviewOutputFactory.createDefaultPreviewOutputFactory(f12); } static default(d12, e12) { return new PreviewUseCase(d12, e12, CameraFormat.RGBA_8888); } } export class VideoUseCase { constructor(a12, b12, c12) { this.target = a12; this.size = b12.swap(); this.format = c12; } getOutputFactory(z11) { if (this.videoOutputFactory == undefined) { this.videoOutputFactory = VideoOutputFactory.createDefaultVideoOutputFactory(z11); } return this.videoOutputFactory; } async startRecord() { if (this.videoOutputFactory !== undefined && this.videoOutputFactory instanceof VideoOutputFactory) { await this.videoOutputFactory?.getCreatedVideoOutput()?.start(); } } static default(x11, y11) { return new VideoUseCase(x11, y11, CameraFormat.RGBA_8888); } } 