-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Jan 10, 2024
1 parent
7c6dffc
commit cef8494
Showing
6 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export type ScalabilityMode = { | ||
spatialLayers: number; | ||
temporalLayers: number; | ||
ksvc: boolean; | ||
}; | ||
export declare function parse(scalabilityMode?: string): ScalabilityMode; | ||
//# sourceMappingURL=scalabilityModes.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parse = void 0; | ||
const ScalabilityModeRegex = new RegExp('^[LS]([1-9]\\d{0,1})T([1-9]\\d{0,1})(_KEY)?'); | ||
function parse(scalabilityMode) { | ||
const match = ScalabilityModeRegex.exec(scalabilityMode || ''); | ||
if (match) { | ||
return { | ||
spatialLayers: Number(match[1]), | ||
temporalLayers: Number(match[2]), | ||
ksvc: Boolean(match[3]), | ||
}; | ||
} | ||
else { | ||
return { | ||
spatialLayers: 1, | ||
temporalLayers: 1, | ||
ksvc: false, | ||
}; | ||
} | ||
} | ||
exports.parse = parse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
{ | ||
"compileOnSave": true, | ||
"compilerOptions": | ||
{ | ||
"lib": [ "es2018" ], | ||
"target": "es2018", | ||
"compilerOptions": { | ||
"lib": ["es2021"], | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"strict": true, | ||
"outDir": "lib", | ||
"declaration": true, | ||
"declarationMap": true | ||
}, | ||
"include": [ "." ] | ||
"include": ["src"], | ||
"watchOptions": { | ||
"watchFile": "useFsEvents", | ||
"watchDirectory": "useFsEvents", | ||
"fallbackPolling": "dynamicPriority", | ||
"synchronousWatchDirectory": true | ||
} | ||
} |