decord/source/module_4920.js

23 lines
471 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4920
// Function ID: 4921
2026-08-13 07:00:46 +00:00
// Dependencies: []
2026-08-24 06:08:38 +00:00
// Module 4920
2026-08-13 07:00:46 +00:00
let c0 = 18761;
let c1 = 19789;
arg5.default = {
BIG_ENDIAN: 19789,
LITTLE_ENDIAN: 18761,
getByteOrder(getUint16, sum) {
if (getUint16.getUint16(sum) === c0) {
return c0;
} else if (getUint16.getUint16(sum) === c1) {
return c1;
} else {
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error("Illegal byte order value. Faulty image.");
2026-08-13 07:00:46 +00:00
throw error;
}
}
};