AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.10.12 12:11 "how to update tiled YCbCr JPEG image?", by Eugene Shebeko
2005.10.13 14:32 "Re: how to update tiled YCbCr JPEG image?", by Joris Van Damme
2005.10.13 17:39 "Re: how to update tiled YCbCr JPEG image?", by Eugene Shebeko
2005.10.14 15:58 "Re: how to update tiled YCbCr JPEG image?", by Joris Van Damme

2005.10.13 17:39 "Re: how to update tiled YCbCr JPEG image?", by Eugene Shebeko

> If you're able to reproduce your problem in a suitable small file (like
> 1 megabyte at most), you can send it to my personal e-mail address,
> together with a good description of what you think the image should look
> like, and I'll try and investigate the file and see if I can confirm.

It's really hard to find small tiled image with JPEG YCbCr compression and
that have JpegTables tag :)

But I try same with tiled image with JPEG YCbCr compression but
without JpegTables tag in source file - it work fine.

Then I try to update striped image with JPEG YCbCr compression and
JpegTables tag but it not work at all. I have an assert error at:

tif_jpeg.c:1248        assert(!sp->cinfo.comm.is_decompressor);

It is the code that I use:

int main(int argc,char** argv)
{
    char buf[12288];
    memset(buf,0,sizeof(buf));
    TIFF* tif=TIFFOpen("2.tif","a");
    TIFFSetDirectory(tif,0);

    TIFFWriteEncodedStrip(tif,0,buf,sizeof(buf));

    TIFFClose(tif);
    return 0;
}

and image in attachment. Image I get from libtiff samples images quad-jpeg.tif