Lines Matching refs:ifd

2681 uint32 dng_image_writer::CompressedBufferSize (const dng_ifd &ifd,  in CompressedBufferSize()  argument
2685 switch (ifd.fCompression) in CompressedBufferSize()
2713 if (ifd.fBitsPerSample [0] <= 8) in CompressedBufferSize()
3007 const dng_ifd &ifd, in EncodePredictor() argument
3012 switch (ifd.fPredictor) in EncodePredictor()
3022 if (ifd.fPredictor == cpHorizontalDifferenceX2) in EncodePredictor()
3027 else if (ifd.fPredictor == cpHorizontalDifferenceX4) in EncodePredictor()
3087 if (ifd.fPredictor == cpFloatingPointX2) in EncodePredictor()
3092 else if (ifd.fPredictor == cpFloatingPointX4) in EncodePredictor()
3132 if (ifd.fPredictor != cpNullPredictor) in EncodePredictor()
3181 void dng_image_writer::ReorderSubTileBlocks (const dng_ifd &ifd, in ReorderSubTileBlocks() argument
3187 uint32 blockRows = ifd.fSubTileBlockRows; in ReorderSubTileBlocks()
3188 uint32 blockCols = ifd.fSubTileBlockCols; in ReorderSubTileBlocks()
3712 const dng_ifd &ifd, in WriteData() argument
3718 switch (ifd.fCompression) in WriteData()
3727 if (ifd.fBitsPerSample [0] == 8 && buffer.fPixelType == ttShort) in WriteData()
3776 if (stream.SwapBytes () && ifd.fPredictor != cpFloatingPoint) in WriteData()
3796 if (ifd.fCompression == ccLZW) in WriteData()
3815 if (ifd.fCompressionQuality >= Z_BEST_SPEED && in WriteData()
3816 ifd.fCompressionQuality <= Z_BEST_COMPRESSION) in WriteData()
3819 level = ifd.fCompressionQuality; in WriteData()
3882 ifd.fBitsPerSample [0], in WriteData()
3956 jpeg_set_adobe_quality (&cinfo, ifd.fCompressionQuality); in WriteData()
4168 const dng_ifd &ifd, in WriteTile() argument
4181 dng_pixel_buffer buffer (tileArea, 0, ifd.fSamplesPerPixel, in WriteTile()
4190 if (ifd.fSubTileBlockRows > 1) in WriteTile()
4193 ReorderSubTileBlocks (ifd, in WriteTile()
4202 if (ifd.fSampleFormat [0] == sfFloatingPoint) in WriteTile()
4205 if (ifd.fBitsPerSample [0] == 16) in WriteTile()
4224 if (ifd.fBitsPerSample [0] == 24) in WriteTile()
4232 if (stream.BigEndian () || ifd.fPredictor == cpFloatingPoint || in WriteTile()
4233 ifd.fPredictor == cpFloatingPointX2 || in WriteTile()
4234 ifd.fPredictor == cpFloatingPointX4) in WriteTile()
4277 ifd, in WriteTile()
4296 ifd, in WriteTile()
4348 const dng_ifd &ifd, in dng_write_tiles_task() argument
4360 , fIFD (ifd) in dng_write_tiles_task()
4569 const dng_ifd &ifd, in WriteImage() argument
4578 if (ifd.fRowInterleaveFactor > 1 && in WriteImage()
4579 ifd.fRowInterleaveFactor < ifd.fImageLength) in WriteImage()
4582 dng_ifd tempIFD (ifd); in WriteImage()
4587 ifd.fRowInterleaveFactor); in WriteImage()
4604 uint32 bytesPerPixel = SafeUint32Mult (ifd.fSamplesPerPixel, in WriteImage()
4607 uint32 tileRowBytes = SafeUint32Mult (ifd.fTileWidth, bytesPerPixel); in WriteImage()
4612 uint32 subTileLength = ifd.fTileLength; in WriteImage()
4614 if (ifd.TileByteCount (ifd.TileArea (0, 0)) != 0) in WriteImage()
4617 subTileLength = Pin_uint32 (ifd.fSubTileBlockRows, in WriteImage()
4619 ifd.fTileLength); in WriteImage()
4623 subTileLength = subTileLength / ifd.fSubTileBlockRows in WriteImage()
4624 * ifd.fSubTileBlockRows; in WriteImage()
4634 uint32 compressedSize = CompressedBufferSize (ifd, uncompressedSize); in WriteImage()
4638 uint32 tilesAcross = ifd.TilesAcross (); in WriteImage()
4639 uint32 tilesDown = ifd.TilesDown (); in WriteImage()
4643 (subTileLength == ifd.fTileLength) && in WriteImage()
4644 (ifd.fCompression != ccUncompressed); in WriteImage()
4659 ifd, in WriteImage()
4692 if (ifd.fSubTileBlockRows > 1 && uncompressedSize) in WriteImage()
4715 dng_rect tileArea = ifd.TileArea (rowIndex, colIndex); in WriteImage()
4735 ifd, in WriteImage()
5390 dng_ifd ifd; in WriteTIFFWithProfile() local
5392 ifd.fNewSubFileType = sfMainImage; in WriteTIFFWithProfile()
5394 ifd.fImageWidth = image.Bounds ().W (); in WriteTIFFWithProfile()
5395 ifd.fImageLength = image.Bounds ().H (); in WriteTIFFWithProfile()
5397 ifd.fSamplesPerPixel = image.Planes (); in WriteTIFFWithProfile()
5399 ifd.fBitsPerSample [0] = TagTypeSize (image.PixelType ()) * 8; in WriteTIFFWithProfile()
5401 for (j = 1; j < ifd.fSamplesPerPixel; j++) in WriteTIFFWithProfile()
5403 ifd.fBitsPerSample [j] = ifd.fBitsPerSample [0]; in WriteTIFFWithProfile()
5406 ifd.fPhotometricInterpretation = photometricInterpretation; in WriteTIFFWithProfile()
5408 ifd.fCompression = compression; in WriteTIFFWithProfile()
5410 if (ifd.fCompression == ccUncompressed) in WriteTIFFWithProfile()
5413 ifd.SetSingleStrip (); in WriteTIFFWithProfile()
5420 ifd.FindStripSize (128 * 1024); in WriteTIFFWithProfile()
5422 ifd.fPredictor = cpHorizontalDifference; in WriteTIFFWithProfile()
5448 ifd.fExtraSamplesCount = extraSamples; in WriteTIFFWithProfile()
5453 for (j = 0; j < ifd.fSamplesPerPixel; j++) in WriteTIFFWithProfile()
5455 ifd.fSampleFormat [j] = sfFloatingPoint; in WriteTIFFWithProfile()
5462 dng_basic_tag_set basic (mainIFD, ifd); in WriteTIFFWithProfile()
5558 ifd, in WriteTIFFWithProfile()