初始化

This commit is contained in:
2025-07-30 13:39:32 +08:00
commit d1f2452b28
253 changed files with 32087 additions and 0 deletions

16
vendor/h264-live-player/utils/Size.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* Represents a 2-dimensional size value.
*/
export default class Size {
constructor(public w: number, public h: number) {}
toString() {
return '(' + this.w + ', ' + this.h + ')';
}
getHalfSize() {
return new Size(this.w >>> 1, this.h >>> 1);
}
length() {
return this.w * this.h;
}
}