all files / src/imageLoader/ isJPEGBaseline8BitColor.js

66.67% Statements 2/3
75% Branches 6/8
100% Functions 1/1
66.67% Lines 2/3
1 2 3 4 5 6 7 8 9 10 11 12  11×   11×                
function isJPEGBaseline8BitColor (imageFrame, transferSyntax) {
  transferSyntax = transferSyntax || imageFrame.transferSyntax;
 
  Iif (imageFrame.bitsAllocated === 8 &&
     transferSyntax === '1.2.840.10008.1.2.4.50' &&
     (imageFrame.samplesPerPixel === 3 || imageFrame.samplesPerPixel === 4)) {
    return true;
  }
}
 
export default isJPEGBaseline8BitColor;