mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
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:
+11
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user