diff --git a/src/atem.ts b/src/atem.ts index 51d931b4..4fa8626f 100644 --- a/src/atem.ts +++ b/src/atem.ts @@ -733,7 +733,7 @@ export class Atem extends BasicAtem { data: Buffer, name: string, description: string, - options?: DT.UploadStillOptions + options?: DT.UploadStillEncodingOptions ): Promise { if (!this.state) return Promise.reject() const resolution = Util.getVideoModeInfo(this.state.settings.videoMode) @@ -751,7 +751,7 @@ export class Atem extends BasicAtem { index: number, frames: Iterable | AsyncIterable, name: string, - options?: DT.UploadStillOptions + options?: DT.UploadStillEncodingOptions ): Promise { if (!this.state) return Promise.reject() const resolution = Util.getVideoModeInfo(this.state.settings.videoMode) diff --git a/src/dataTransfer/index.ts b/src/dataTransfer/index.ts index 71445995..a62716b5 100644 --- a/src/dataTransfer/index.ts +++ b/src/dataTransfer/index.ts @@ -17,7 +17,7 @@ const MAX_TRANSFER_INDEX = (1 << 16) - 1 // Inclusive maximum const debug = debug0('atem-connection:data-transfer:manager') -export interface UploadStillOptions { +export interface UploadStillEncodingOptions { disableRLE?: boolean } @@ -175,7 +175,7 @@ export class DataTransferManager { data: Buffer, name: string, description: string, - options?: UploadStillOptions + options?: UploadStillEncodingOptions ): Promise { const buffer = generateBufferInfo(data, !options?.disableRLE) const transfer = new DataTransferUploadStill(index, buffer, name, description) @@ -186,7 +186,7 @@ export class DataTransferManager { index: number, data: Iterable | AsyncIterable, name: string, - options?: UploadStillOptions + options?: UploadStillEncodingOptions ): Promise { const provideFrame = async function* (): AsyncGenerator { let id = -1 diff --git a/src/index.ts b/src/index.ts index 46adaf0a..8475e985 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,4 +15,4 @@ import * as InputState from './state/input' import * as MacroState from './state/macro' import * as SettingsState from './state/settings' export { VideoState, AudioState, MediaState, InfoState, InputState, MacroState, SettingsState } -export { UploadStillOptions } from './dataTransfer' +export { UploadStillEncodingOptions } from './dataTransfer'