From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 20 Oct 2009 07:00:16 -0700 Message-ID: Subject: Re: [9fans] jpg image too big From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 8c4e4002-ead5-11e9-9d60-3106f5b1d025 On Tue, Oct 20, 2009 at 5:04 AM, erik quanstrom wro= te: > the problem is that devdraw/loadimage.c needs to load > at least 1 scan line at a time. =C2=A0unfortunately, iounit for > drawterm ends up being 8k, so display->bufsize=3D8k. =C2=A0the > problem is that each scan line is over 9k in my case. > > i haven't looked yet to see if the kernel can deal with > partial lines, or what could be done about the too-small > iounit. =C2=A0but it would seem to me that something has to > give. you can handle this in loadimage by turning a single call with too much data per scan line into multiple calls, each delivering a fraction of a scan line (there is a rectangle argument that says what subsection of the image is being loaded). russ