Lines Matching refs:ifd

907 								  const dng_ifd &ifd,  in ReorderSubTileBlocks()  argument
923 uint32 blockRows = ifd.fSubTileBlockRows; in ReorderSubTileBlocks()
924 uint32 blockCols = ifd.fSubTileBlockCols; in ReorderSubTileBlocks()
1014 const dng_ifd &ifd,
1040 const dng_ifd &ifd, in dng_image_spooler() argument
1049 , fIFD (ifd) in dng_image_spooler()
1066 uint32 stripLength = Pin_uint32 (ifd.fSubTileBlockRows, in dng_image_spooler()
1070 stripLength = stripLength / ifd.fSubTileBlockRows in dng_image_spooler()
1071 * ifd.fSubTileBlockRows; in dng_image_spooler()
1175 const dng_ifd &ifd, in ReadUncompressed() argument
1188 if (ifd.fPlanarConfiguration == pcRowInterleaved) in ReadUncompressed()
1212 uint32 bitDepth = ifd.fBitsPerSample [plane]; in ReadUncompressed()
1225 else if (bitDepth == 16 && ifd.fSampleFormat [0] == sfFloatingPoint) in ReadUncompressed()
1241 else if (bitDepth == 24 && ifd.fSampleFormat [0] == sfFloatingPoint) in ReadUncompressed()
1435 ifd.fPlanarConfiguration, uncompressedBuffer->Buffer ()); in ReadUncompressed()
1437 if (ifd.fSampleBitShift) in ReadUncompressed()
1440 buffer.ShiftRight (ifd.fSampleBitShift); in ReadUncompressed()
1444 if (ifd.fSubTileBlockRows > 1) in ReadUncompressed()
1448 ifd, in ReadUncompressed()
1747 const dng_ifd &ifd, in ReadBaselineJPEG() argument
1769 ifd.fPatchFirstJPEGByte)); in ReadBaselineJPEG()
1776 ifd.fPhotometricInterpretation, in ReadBaselineJPEG()
1785 if (ifd.fPatchFirstJPEGByte && tileByteCount) in ReadBaselineJPEG()
1795 ifd.fPhotometricInterpretation, in ReadBaselineJPEG()
1808 const dng_ifd &ifd, in ReadLosslessJPEG() argument
1828 uint32 rowsPerStrip = Pin_uint32 (ifd.fSubTileBlockRows, in ReadLosslessJPEG()
1832 rowsPerStrip = rowsPerStrip / ifd.fSubTileBlockRows in ReadLosslessJPEG()
1833 * ifd.fSubTileBlockRows; in ReadLosslessJPEG()
1853 ifd, in ReadLosslessJPEG()
1865 bool bug16 = ifd.fLosslessJPEGBug16; in ReadLosslessJPEG()
1886 bool dng_read_image::CanReadTile (const dng_ifd &ifd) in CanReadTile() argument
1889 if (ifd.fSampleFormat [0] != sfUnsignedInteger && in CanReadTile()
1890 ifd.fSampleFormat [0] != sfFloatingPoint) in CanReadTile()
1895 switch (ifd.fCompression) in CanReadTile()
1901 if (ifd.fSampleFormat [0] == sfFloatingPoint) in CanReadTile()
1904 return (ifd.fBitsPerSample [0] == 16 || in CanReadTile()
1905 ifd.fBitsPerSample [0] == 24 || in CanReadTile()
1906 ifd.fBitsPerSample [0] == 32); in CanReadTile()
1910 return ifd.fBitsPerSample [0] >= 8 && in CanReadTile()
1911 ifd.fBitsPerSample [0] <= 32; in CanReadTile()
1918 if (ifd.fSampleFormat [0] != sfUnsignedInteger) in CanReadTile()
1923 if (ifd.IsBaselineJPEG ()) in CanReadTile()
1937 return ifd.fBitsPerSample [0] >= 8 && in CanReadTile()
1938 ifd.fBitsPerSample [0] <= 16; in CanReadTile()
1952 if (ifd.fSampleFormat [0] == sfFloatingPoint) in CanReadTile()
1955 if (ifd.fCompression == ccPackBits) in CanReadTile()
1960 if (ifd.fPredictor != cpNullPredictor && in CanReadTile()
1961 ifd.fPredictor != cpFloatingPoint && in CanReadTile()
1962 ifd.fPredictor != cpFloatingPointX2 && in CanReadTile()
1963 ifd.fPredictor != cpFloatingPointX4) in CanReadTile()
1968 if (ifd.fBitsPerSample [0] != 16 && in CanReadTile()
1969 ifd.fBitsPerSample [0] != 24 && in CanReadTile()
1970 ifd.fBitsPerSample [0] != 32) in CanReadTile()
1980 if (ifd.fPredictor != cpNullPredictor && in CanReadTile()
1981 ifd.fPredictor != cpHorizontalDifference && in CanReadTile()
1982 ifd.fPredictor != cpHorizontalDifferenceX2 && in CanReadTile()
1983 ifd.fPredictor != cpHorizontalDifferenceX4) in CanReadTile()
1988 if (ifd.fBitsPerSample [0] != 8 && in CanReadTile()
1989 ifd.fBitsPerSample [0] != 16 && in CanReadTile()
1990 ifd.fBitsPerSample [0] != 32) in CanReadTile()
2014 bool dng_read_image::NeedsCompressedBuffer (const dng_ifd &ifd) in NeedsCompressedBuffer() argument
2017 if (ifd.fCompression == ccLZW || in NeedsCompressedBuffer()
2018 ifd.fCompression == ccDeflate || in NeedsCompressedBuffer()
2019 ifd.fCompression == ccOldDeflate || in NeedsCompressedBuffer()
2020 ifd.fCompression == ccPackBits) in NeedsCompressedBuffer()
2070 const dng_ifd &ifd, in DecodePredictor() argument
2074 switch (ifd.fPredictor) in DecodePredictor()
2091 if (ifd.fPredictor == cpHorizontalDifferenceX2) in DecodePredictor()
2096 else if (ifd.fPredictor == cpHorizontalDifferenceX4) in DecodePredictor()
2161 const dng_ifd &ifd, in ReadTile() argument
2173 switch (ifd.fCompression) in ReadTile()
2184 uint32 bytesPerSample = (ifd.fBitsPerSample [0] >> 3); in ReadTile()
2202 if (ifd.fSampleFormat [0] == sfFloatingPoint) in ReadTile()
2207 else if (ifd.fBitsPerSample [0] == 8) in ReadTile()
2212 else if (ifd.fBitsPerSample [0] == 16) in ReadTile()
2217 else if (ifd.fBitsPerSample [0] == 32) in ReadTile()
2238 if (ifd.fPredictor == cpFloatingPoint || in ReadTile()
2239 ifd.fPredictor == cpFloatingPointX2 || in ReadTile()
2240 ifd.fPredictor == cpFloatingPointX4) in ReadTile()
2284 if (ifd.fPredictor == cpFloatingPoint || in ReadTile()
2285 ifd.fPredictor == cpFloatingPointX2 || in ReadTile()
2286 ifd.fPredictor == cpFloatingPointX4) in ReadTile()
2296 if (ifd.fCompression == ccLZW) in ReadTile()
2311 else if (ifd.fCompression == ccPackBits) in ReadTile()
2368 if (ifd.fPredictor == cpFloatingPoint || in ReadTile()
2369 ifd.fPredictor == cpFloatingPointX2 || in ReadTile()
2370 ifd.fPredictor == cpFloatingPointX4) in ReadTile()
2375 if (ifd.fPredictor == cpFloatingPointX2) in ReadTile()
2380 else if (ifd.fPredictor == cpFloatingPointX4) in ReadTile()
2427 ifd, in ReadTile()
2457 if (stream.BigEndian () || ifd.fPredictor == cpFloatingPoint || in ReadTile()
2458 ifd.fPredictor == cpFloatingPointX2 || in ReadTile()
2459 ifd.fPredictor == cpFloatingPointX4) in ReadTile()
2509 ifd, in ReadTile()
2530 if (ifd.IsBaselineJPEG ()) in ReadTile()
2536 ifd, in ReadTile()
2558 ifd, in ReadTile()
2583 ifd, in ReadTile()
2612 bool dng_read_image::CanRead (const dng_ifd &ifd) in CanRead() argument
2615 if (ifd.fImageWidth < 1 || in CanRead()
2616 ifd.fImageLength < 1) in CanRead()
2621 if (ifd.fSamplesPerPixel < 1) in CanRead()
2626 if (ifd.fBitsPerSample [0] < 1) in CanRead()
2631 for (uint32 j = 1; j < Min_uint32 (ifd.fSamplesPerPixel, in CanRead()
2635 if (ifd.fBitsPerSample [j] != in CanRead()
2636 ifd.fBitsPerSample [0]) in CanRead()
2641 if (ifd.fSampleFormat [j] != in CanRead()
2642 ifd.fSampleFormat [0]) in CanRead()
2649 if ((ifd.fPlanarConfiguration != pcInterleaved ) && in CanRead()
2650 (ifd.fPlanarConfiguration != pcPlanar ) && in CanRead()
2651 (ifd.fPlanarConfiguration != pcRowInterleaved)) in CanRead()
2656 if (ifd.fUsesStrips == ifd.fUsesTiles) in CanRead()
2661 uint32 tileCount = ifd.TilesPerImage (); in CanRead()
2668 bool needTileByteCounts = (ifd.TileByteCount (ifd.TileArea (0, 0)) == 0); in CanRead()
2676 if (ifd.fTileByteCount [0] < 1) in CanRead()
2688 if (ifd.fTileOffsetsCount != tileCount) in CanRead()
2696 if (ifd.fTileByteCountsCount != tileCount) in CanRead()
2705 if (!CanReadTile (ifd)) in CanRead()
2759 const dng_ifd &ifd, in dng_read_tiles_task() argument
2775 , fIFD (ifd) in dng_read_tiles_task()
2915 const dng_ifd &ifd, in Read() argument
2926 if (ifd.fRowInterleaveFactor > 1 && in Read()
2927 ifd.fRowInterleaveFactor < ifd.fImageLength) in Read()
2930 dng_ifd tempIFD (ifd); in Read()
2935 ifd.fRowInterleaveFactor); in Read()
2953 if (ifd.fPlanarConfiguration == pcPlanar) in Read()
2955 outerSamples = ifd.fSamplesPerPixel; in Read()
2959 innerSamples = ifd.fSamplesPerPixel; in Read()
2964 uint32 tilesAcross = ifd.TilesAcross (); in Read()
2965 uint32 tilesDown = ifd.TilesDown (); in Read()
2981 tileOffset [tileIndex] = ifd.fTileOffset [tileIndex]; in Read()
2990 stream.SetReadPosition (ifd.fTileOffsetsOffset); in Read()
2995 tileOffset [tileIndex] = stream.TagValue_uint32 (ifd.fTileOffsetsType); in Read()
3037 uint32 subTileLength = ifd.fTileLength; in Read()
3039 if (ifd.TileByteCount (ifd.TileArea (0, 0)) != 0) in Read()
3042 uint32 bytesPerPixel = TagTypeSize (ifd.PixelType ()); in Read()
3044 uint32 bytesPerRow = SafeUint32Mult (ifd.fTileWidth, innerSamples, in Read()
3047 subTileLength = Pin_uint32 (ifd.fSubTileBlockRows, in Read()
3049 ifd.fTileLength); in Read()
3051 subTileLength = subTileLength / ifd.fSubTileBlockRows in Read()
3052 * ifd.fSubTileBlockRows; in Read()
3073 tileByteCount [tileIndex] = ifd.fTileByteCount [tileIndex]; in Read()
3082 stream.SetReadPosition (ifd.fTileByteCountsOffset); in Read()
3087 tileByteCount [tileIndex] = stream.TagValue_uint32 (ifd.fTileByteCountsType); in Read()
3131 bool needsCompressedBuffer = NeedsCompressedBuffer (ifd); in Read()
3150 if (ifd.IsBaselineJPEG ()) in Read()
3153 jpegImage->fImageSize.h = ifd.fImageWidth; in Read()
3154 jpegImage->fImageSize.v = ifd.fImageLength; in Read()
3156 jpegImage->fTileSize.h = ifd.fTileWidth; in Read()
3157 jpegImage->fTileSize.v = ifd.fTileLength; in Read()
3159 jpegImage->fUsesStrips = ifd.fUsesStrips; in Read()
3176 if (ifd.fJPEGTablesOffset && ifd.fJPEGTablesCount) in Read()
3179 if (ifd.IsBaselineJPEG ()) in Read()
3182 fJPEGTables.Reset (host.Allocate (ifd.fJPEGTablesCount)); in Read()
3184 stream.SetReadPosition (ifd.fJPEGTablesOffset); in Read()
3212 (subTileLength == ifd.fTileLength) && in Read()
3213 (ifd.fCompression != ccUncompressed); in Read()
3227 ifd, in Read()
3283 dng_rect tileArea = ifd.TileArea (rowIndex, colIndex); in Read()
3308 subByteCount = ifd.TileByteCount (subArea); in Read()
3342 ifd, in Read()