Skip to content

Commit

Permalink
separate type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramart committed Dec 2, 2024
1 parent f8ec05c commit 40e0bf1
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1047,29 +1047,31 @@ export type BroadcastableProxies = {
}>;
};

type DcpInfos = {
video: {
duration: number | null;
width: number;
height: number;
rFrameRateNumerator: number;
rFrameRateDenominator: number;
displayAspectRatioNumerator: number;
displayAspectRatioDenominator: number;
nbFrames: number | null;
};
audio: {
duration: number | null;
sampleRate: number;
channels: number;
channelLayout: Formats.Layout | null;
version: Formats.Version | null;
};
subtitle: {
version: Formats.Version | null;
frameRateNumerator: number | null;
frameRateDenominator: number | null;
} | undefined;
};

export type DcpInspect = {
cpl: Record<string, {
video: {
duration: number | null;
width: number;
height: number;
rFrameRateNumerator: number;
rFrameRateDenominator: number;
displayAspectRatioNumerator: number;
displayAspectRatioDenominator: number;
nbFrames: number | null;
};
audio: {
duration: number | null;
sampleRate: number;
channels: number;
channelLayout: Formats.Layout | null;
version: Formats.Version | null;
};
subtitle: {
version: Formats.Version | null;
frameRateNumerator: number | null;
frameRateDenominator: number | null;
} | undefined;
}>;
cpl: Record<string, DcpInfos>;
};

0 comments on commit 40e0bf1

Please sign in to comment.