@jxstjh/jhvideo
Version:
HTML5 jhvideo base on MPEG2-TS Stream Player
41 lines (40 loc) • 1.27 kB
TypeScript
export default SPSParser;
declare class SPSParser {
static _ebsp2rbsp(uint8array: any): Uint8Array;
static parseSPS(uint8array: any): {
codec_mimetype: string;
profile_idc: number;
level_idc: number;
profile_string: string;
level_string: string;
chroma_format_idc: number;
bit_depth: number;
bit_depth_luma: number;
bit_depth_chroma: number;
ref_frames: number;
chroma_format: number;
chroma_format_string: string;
frame_rate: {
fixed: boolean;
fps: number;
fps_den: number;
fps_num: number;
};
sar_ratio: {
width: number;
height: number;
};
codec_size: {
width: number;
height: number;
};
present_size: {
width: number;
height: number;
};
};
static _skipScalingList(gb: any, count: any): void;
static getProfileString(profile_idc: any): "Baseline" | "Main" | "Extended" | "High" | "High10" | "High422" | "High444" | "Unknown";
static getLevelString(level_idc: any): string;
static getChromaFormatString(chroma: any): "Unknown" | "4:2:0" | "4:2:2" | "4:4:4";
}