Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas018.isp.belgacom.be (localhost [127.0.0.1])
        by inav004.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j9EG2vrM001019
        for <joris.at.lebbeke@skynet.be>; Fri, 14 Oct 2005 18:02:57 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx007.isp.belgacom.be (inmx007.isp.belgacom.be [195.238.5.89])
        by inas018.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j9EG2ol8009613
        for <joris.at.lebbeke@skynet.be>; Fri, 14 Oct 2005 18:02:51 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx007.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j9EG2esJ005422
        for <joris.at.lebbeke@skynet.be>; Fri, 14 Oct 2005 18:02:40 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j9EFv2DI011166;
	Fri, 14 Oct 2005 11:57:47 -0400
Received: from outmx014.isp.belgacom.be (outmx014.isp.belgacom.be
	[195.238.2.69])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j9EFux8V011163
	for <tiff@lists.maptools.org>; Fri, 14 Oct 2005 11:57:00 -0400
Received: from outmx014.isp.belgacom.be (localhost [127.0.0.1])
	by outmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id j9EFutMX021034
	for <tiff@lists.maptools.org>; Fri, 14 Oct 2005 17:56:56 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (88-164.245.81.adsl.skynet.be [81.245.164.88])
	by outmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id j9EFulHY020956; Fri, 14 Oct 2005 17:56:47 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <005601c5d0d8$189a5cd0$58a4f551@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: =?Windows-1251?B?2OXh5eruIMXi4+Xt6Ok=?= <shebeko@mail.ru>
References: <14621077109.20051012151100@mail.ru><001101c5d002$e1be3c20$e8b1f651@dfgrrxsknr4e>
	<93127198437.20051013203940@mail.ru>
Date: Fri, 14 Oct 2005 17:58:15 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1251"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: [Tiff] Re: how to update tiled YCbCr JPEG image?
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000d13
X-MSP-STORE: Fri, 14 Oct 2005 18:02:58 +0200
Status:   

Шебеко Евгений wrote:
> But I try same with tiled image with JPEG YCbCr compression but
> without JpegTables tag in source file - it work fine.

I'm not sure how to explain it.

>From what I've read (but I've not currently the time to reproduce and I
might be mistaking), and from the screenshots you've sent about another
file, it seems like LibTiff may be handling the case where there's a
JpegTables tag and tables in the jpeg compressed tile wrong. What it
should do, is let the tables in the tile take precedence for that tile
only, and restore to the JpegTables state before decoding any other
tile.

> 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);

This also may be a bug.

I'm sorry I can't help any further. I'm not a LibTiff maintainer, my
main area is just the file format, not the library. You're best bet is
to wait for Frank and/or Andrey to confirm, and/or add an entry in
BugZilla.


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
