Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import type { Types } from '@cornerstonejs/core'; function isJPEGBaseline8BitColor( imageFrame: Types.IImageFrame, transferSyntax: string ): boolean { /** @todo check as any */ transferSyntax = transferSyntax || imageFrame.transferSyntax; if ( imageFrame.bitsAllocated === 8 && transferSyntax === '1.2.840.10008.1.2.4.50' && (imageFrame.samplesPerPixel === 3 || imageFrame.samplesPerPixel === 4) ) { return true; } } export default isJPEGBaseline8BitColor; |