Add documentation comments everywhere

This commit is contained in:
David Payr
2025-03-15 17:12:42 +01:00
parent 6eb5c02591
commit 3863ffe4d8
30 changed files with 1607 additions and 188 deletions
+2 -2
View File
@@ -223,7 +223,7 @@ export class IsobmffDemuxer extends Demuxer {
let string = base + (this.isQuickTime ? 'quicktime' : 'mp4');
if (this.tracks.length > 0) {
const codecMimeTypes = await Promise.all(this.tracks.map(x => x.inputTrack!.getCodecMimeType()));
const codecMimeTypes = await Promise.all(this.tracks.map(x => x.inputTrack!.getCodecParameterString()));
const uniqueCodecMimeTypes = [...new Set(codecMimeTypes.filter(Boolean))];
string += `; codecs="${uniqueCodecMimeTypes.join(', ')}"`;
@@ -2549,6 +2549,6 @@ const extractRotationFromMatrix = (matrix: TransformationMatrix) => {
const cosTheta = m11 / scaleX;
const sinTheta = m21 / scaleX;
// Invert the rotation beacuse matrices are post-multiplied in ISOBMFF
// Invert the rotation because matrices are post-multiplied in ISOBMFF
return -Math.atan2(sinTheta, cosTheta) * (180 / Math.PI);
};