ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 227 of file tif_strip.c.

Referenced by _TIFFDefaultStripSize(), EstimateStripByteCounts(), gtStripSeparate(), PredictorSetup(), TIFFReadDirectory(), TIFFVStripSize(), and TIFFWriteCheck().

{
    TIFFDirectory *td = &tif->tif_dir;
    tsize_t scanline;

    if (td->td_planarconfig == PLANARCONFIG_CONTIG) {
        if (td->td_photometric == PHOTOMETRIC_YCBCR
            && !isUpSampled(tif)) {
            uint16 ycbcrsubsampling[2];

            TIFFGetField(tif, TIFFTAG_YCBCRSUBSAMPLING,
                     ycbcrsubsampling + 0,
                     ycbcrsubsampling + 1);

            if (ycbcrsubsampling[0] == 0) {
                TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
                         "Invalid YCbCr subsampling");
                return 0;
            }

            scanline = TIFFroundup(td->td_imagewidth,
                           ycbcrsubsampling[0]);
            scanline = TIFFhowmany8(multiply(tif, scanline,
                             td->td_bitspersample,
                             "TIFFScanlineSize"));
            return ((tsize_t)
                summarize(tif, scanline,
                      multiply(tif, 2,
                        scanline / ycbcrsubsampling[0],
                        "TIFFVStripSize"),
                      "TIFFVStripSize"));
        } else {
            scanline = multiply(tif, td->td_imagewidth,
                        td->td_samplesperpixel,
                        "TIFFScanlineSize");
        }
    } else
        scanline = td->td_imagewidth;
    return ((tsize_t) TIFFhowmany8(multiply(tif, scanline,
                        td->td_bitspersample,
                        "TIFFScanlineSize")));
}

Generated on Sun May 27 2012 04:49:39 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.