Problem with X and JPEG2000 images

Carsten Haitzler raster at rasterman.com
Fri Jan 1 20:14:45 UTC 2021


On Fri, 1 Jan 2021 14:37:58 +0100 szukw000 <szukw000 at arcor.de> said:

As Alan said - there are limits on X primitives and coordinates (16bit).

The solution to this is to not use windows or pixmaps > 32767 in size in any
dimension. Instead just draw a sub-region of the image to the target window or
pixmap (divide the image up into multiple pixmaps and copy the regions/tiles
from here to the destination window). Don't use x windows and move/resize them
around for large content etc. - but instead just draw the right sub-region.

> I use fltk-1.4 . Large images are not shown with LINUX:
> 
> image size: 811 792 452 Byte
> 
> ESP_028011_2055_RED.JP2(28260 x 52834)
> 
> (...)
> XRequest.138: BadDrawable (invalid Pixmap or Window parameter) 0x120404e
> XRequest.138: RenderBadPicture (invalid Picture parameter) 0x120ef49
> XRequest.138: RenderBadPicture (invalid Picture parameter) 0x120ef49
> 
> But when I limit the width and/or the height of the image, it is shown:
> 
> #define MAX_ROW_COL 32500
> ESP_028011_2055_RED.JP2(28260 x 52834) (rescaled: 28260 x 32500)
> 
> 
> Changing the parameters of x,y,w,h to long or float or double perhaps
> would help with large images.
> 
> The limitation is with X only. WIN10 does not need a limitation.
> 
> winfried
> 
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - raster at rasterman.com



More information about the xorg mailing list