Skip to content

Commit

Permalink
feat(Format): Add projection_type and stereo_layout (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Apr 19, 2024
1 parent 4022d7a commit 064436c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/classes/misc/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default class Format {
average_bitrate?: number;
width: number;
height: number;
projection_type?: 'RECTANGULAR' | 'EQUIRECTANGULAR' | 'EQUIRECTANGULAR_THREED_TOP_BOTTOM' |'MESH';
stereo_layout?: 'LEFT_RIGHT' | 'TOP_BOTTOM';

init_range?: {
start: number;
Expand Down Expand Up @@ -77,6 +79,8 @@ export default class Format {
this.average_bitrate = data.averageBitrate;
this.width = data.width;
this.height = data.height;
this.projection_type = data.projectionType;
this.stereo_layout = data.stereoLayout?.replace('STEREO_LAYOUT_', '');

this.init_range = data.initRange ? {
start: parseInt(data.initRange.start),
Expand Down

0 comments on commit 064436c

Please sign in to comment.