decord/source/4895_isAVI.js
2026-08-24 06:08:38 +00:00

80 lines
3 KiB
JavaScript

// Module ID: 4895
// Function ID: 4896
// Name: isAVI
// Dependencies: [4887, 4888]
// Module 4895 (isAVI)
import getFileChunk from "getFileChunk" /* 4887 */;
import _mod4888 from "module_4888" /* 4888 */;
require = arg1;
const dependencyMap = arg6;
arg5.isAVI = undefined;
arg5.isFLV = undefined;
arg5.isM4V = undefined;
arg5.isMKV = undefined;
arg5.isMOV = undefined;
arg5.isMP4 = undefined;
arg5.isOGG = undefined;
arg5.isSWF = undefined;
arg5.isWEBM = undefined;
arg5.isAVI = function isAVI(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "avi");
};
arg5.isFLV = function isFLV(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "flv") && getFileChunk.isFlvStringIncluded(fileChunk);
};
arg5.isM4V = function isM4V(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "m4v") && getFileChunk.isftypStringIncluded(fileChunk);
};
arg5.isMKV = function isMKV(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk, 64);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "mkv") && "mkv" === getFileChunk.findMatroskaDocTypeElements(fileChunk);
};
arg5.isMOV = function isMOV(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "mov");
};
arg5.isMP4 = function isMP4(fileChunk, excludeSimilarTypes) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
let checkByFileTypeResult = FileTypes.checkByFileType(fileChunk, "mp4");
if (!checkByFileTypeResult) {
excludeSimilarTypes = undefined;
if (null != excludeSimilarTypes) {
excludeSimilarTypes = excludeSimilarTypes.excludeSimilarTypes;
}
let tmp8 = !excludeSimilarTypes;
if (!excludeSimilarTypes) {
const fileChunk1 = tmp(4887).getFileChunk(fileChunk);
const FileTypes2 = tmp(4888).FileTypes;
tmp8 = FileTypes2.checkByFileType(fileChunk1, "m4v") && tmp(4887).isftypStringIncluded(fileChunk1);
const tmp10 = FileTypes2.checkByFileType(fileChunk1, "m4v") && tmp(4887).isftypStringIncluded(fileChunk1);
}
checkByFileTypeResult = tmp8;
}
return checkByFileTypeResult;
};
arg5.isOGG = function isOGG(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "ogg");
};
arg5.isSWF = function isSWF(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "swf");
};
arg5.isWEBM = function isWEBM(fileChunk) {
fileChunk = getFileChunk.getFileChunk(fileChunk, 64);
const FileTypes = _mod4888.FileTypes;
return FileTypes.checkByFileType(fileChunk, "webm") && "webm" === getFileChunk.findMatroskaDocTypeElements(fileChunk);
};