Define DTS codec, add muxing and demuxing support across ISOBMFF, Matroska, and MPEG-TS, add DTS encode/decode support to @mediabunny/server

This commit is contained in:
Vanilagy
2026-08-15 16:19:12 +02:00
parent ae66f01566
commit 914907b5db
27 changed files with 1182 additions and 56 deletions
+11
View File
@@ -472,6 +472,17 @@ export const ilog = (x: number) => {
return ret;
};
export const popcount = (value: number) => {
let count = 0;
while (value !== 0) {
value &= value - 1;
count++;
}
return count;
};
const ISO_639_2_REGEX = /^[a-z]{3}$/;
export const isIso639Dash2LanguageCode = (x: string) => {
return ISO_639_2_REGEX.test(x);