emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image-size


From: Jan Djärv
Subject: Re: image-size
Date: Fri, 21 Jun 2013 11:03:23 +0200

Hello.

Some image types needs a bit more coding for this to work.  I.e. Xpm uses 
XpmReadFileToPixmap which reads the file, returns the sizes and puts it on the 
server in one go.
This would have to be reworked so it uses XpmReadFileToImage or similar.
Ditto for XpmReadFileToPixmap.

        Jan D.

21 jun 2013 kl. 10:27 skrev Eli Zaretskii <address@hidden>:

>> From: Jan Djärv <address@hidden>
>> Date: Fri, 21 Jun 2013 09:34:31 +0200
>> Cc: address@hidden,
>> address@hidden
>> 
>>> Yes.  Thus my suggestion to have a flag in the 'load' method that
>>> would cause it return right after computing the size.
>>> 
>> 
>> YAMAMOTO Mitsuharu <address@hidden> writes:
>> 
>>> Right.  And as I mentioned in (*), a possible way to solve this
>>> problem is to defer the creation of Pixmap (server side resource) from
>>> XImage (client side resource) until the actual display happens (i.e.,
>>> at prepare_image_for_display rather than lookup_image), so as to avoid
>>> unnecessary round trip of image data between the X11 server and
>>> client.
>> 
>> Only prepare_image_for_display have to set a different value for the 
>> suggested flag, as it does load if the image is not loaded yet.
> 
> Right.  prepare_image_for_display is called by the display engine when
> it is about to display the image.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]