* Re: [9fans] max width of image, CHUNK limit
@ 2002-02-12 6:45 okamoto
0 siblings, 0 replies; 3+ messages in thread
From: okamoto @ 2002-02-12 6:45 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
Thank you very much Russ.
Now, we are headding your second method.
In 9p2000, we may have a more elegant program here.
Kenji
[-- Attachment #2: Type: message/rfc822, Size: 2329 bytes --]
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] max width of image, CHUNK limit
Date: Tue, 12 Feb 2002 01:02:31 -0500
Message-ID: <d3107af4f35b5340f9e056b8a4ba0c2f@plan9.bell-labs.com>
Yes, in 9P2000 the maximum message size
may be as large as the two sides wish to negotiate.
We typically run with a 32kb message size
for cpu connections, specifically to help /dev/draw.
You could lift the current restriction by changing
cloadimage and the image compressor
to expect rectangles rather than y-coordinate pairs
when the image is very wide. Another less involved
possibility is to write the image as a sequence of
images, one for each medium sized column.
With appropriate reworking, the limit should
really go away entirely.
Russ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] max width of image, CHUNK limit
@ 2002-02-12 6:02 Russ Cox
0 siblings, 0 replies; 3+ messages in thread
From: Russ Cox @ 2002-02-12 6:02 UTC (permalink / raw)
To: 9fans
Yes, in 9P2000 the maximum message size
may be as large as the two sides wish to negotiate.
We typically run with a 32kb message size
for cpu connections, specifically to help /dev/draw.
You could lift the current restriction by changing
cloadimage and the image compressor
to expect rectangles rather than y-coordinate pairs
when the image is very wide. Another less involved
possibility is to write the image as a sequence of
images, one for each medium sized column.
With appropriate reworking, the limit should
really go away entirely.
Russ
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] max width of image, CHUNK limit
@ 2002-02-12 4:56 okamoto
0 siblings, 0 replies; 3+ messages in thread
From: okamoto @ 2002-02-12 4:56 UTC (permalink / raw)
To: 9fans
We met the maximum value of CHUNK of /sys/src/libdrawloadimage.c
for certain image with 32 bit depth. I think this limit comes from current 9p
protocol.
Does this limit goes larger in the next 9p2000 version?
I know we can avoid this limit in our application, however, if that limit goes
away, it'll be more beautiful...
Kenji
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-12 6:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-12 6:45 [9fans] max width of image, CHUNK limit okamoto
-- strict thread matches above, loose matches on Subject: below --
2002-02-12 6:02 Russ Cox
2002-02-12 4:56 okamoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).