Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) {
// Basic Offset Table is not empty
return DicomParser.readEncapsulatedImageFrame(
this._dataSet,
this._dataSet.elements.x7fe00010,
frameIndex
);
}
if (this.framesAreFragmented()) {
// Basic Offset Table is empty
return DicomParser.readEncapsulatedImageFrame(
this._dataSet,
this._dataSet.elements.x7fe00010,
frameIndex,
DicomParser.createJPEGBasicOffsetTable(this._dataSet, this._dataSet.elements.x7fe00010)
);
}
return DicomParser.readEncapsulatedPixelDataFromFragments(
this._dataSet,
this._dataSet.elements.x7fe00010,
frameIndex
);
}