decord/source/__polyfill/05xxx/module_5244.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

61 lines
1.9 KiB
JavaScript

// Module ID: 5244
// Function ID: 5245
// Dependencies: [5232]
// Module 5244
import _modDef5232 from "module_5232" /* 5232 */;
importDefault = arg2;
const dependencyMap = arg6;
const typeSizes = { 1: 1, 2: 1, 3: 2, 4: 4, 5: 8, 7: 1, 9: 4, 10: 8, 13: 4 };
const obj2 = { BYTE: 1, ASCII: 2, SHORT: 3, LONG: 4, RATIONAL: 5, UNDEFINED: 7, SLONG: 9, SRATIONAL: 10, IFD: 13 };
export default {
getAsciiValue(items) {
return items.map((item) => String.fromCharCode(item));
},
getByteAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getAsciiAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getShortAt(dataView, sum, byteOrder) {
return dataView.getUint16(sum, byteOrder === _modDef5232.LITTLE_ENDIAN);
},
getLongAt(dataView, sum, byteOrder) {
return dataView.getUint32(sum, byteOrder === _modDef5232.LITTLE_ENDIAN);
},
getRationalAt(getUint32, sum, arg2) {
const items = [getUint32.getUint32(sum, arg2 === _modDef5232.LITTLE_ENDIAN), ];
sum = sum + 4;
items[1] = getUint32.getUint32(sum, arg2 === _modDef5232.LITTLE_ENDIAN);
return items;
},
getUndefinedAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getSlongAt(getInt32, sum, arg2) {
return getInt32.getInt32(sum, arg2 === _modDef5232.LITTLE_ENDIAN);
},
getSrationalAt(getInt32, sum, arg2) {
const items = [getInt32.getInt32(sum, arg2 === _modDef5232.LITTLE_ENDIAN), ];
sum = sum + 4;
items[1] = getInt32.getInt32(sum, arg2 === _modDef5232.LITTLE_ENDIAN);
return items;
},
getIfdPointerAt(getUint32, sum, arg2) {
return getUint32.getUint32(sum, arg2 === _modDef5232.LITTLE_ENDIAN);
},
typeSizes,
tagTypes: obj2,
getTypeSize(LONG) {
if (undefined === obj2[LONG]) {
const _Error = Error;
const error = new Error("No such type found.");
throw error;
} else {
return obj[tmp[LONG]];
}
}
};