xnee-devel
[Top][All Lists]
Advanced

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

[Xnee-devel] [Fwd: Re: [sr #103871] Verifying GUI-Testresults with xnee


From: Henrik Sandklef
Subject: [Xnee-devel] [Fwd: Re: [sr #103871] Verifying GUI-Testresults with xnee using the Tool "xgrabsc"]
Date: Sat, 21 Jan 2006 10:37:05 +0100

--- Begin Message --- Subject: Re: [sr #103871] Verifying GUI-Testresults with xnee using the Tool "xgrabsc" Date: Wed, 18 Jan 2006 18:01:19 +0200 Hello,

I am wondering why ImageMagic import screen capture program works
almost three times more slowly than xwd ? I checked both .xwd files
with xwud -command and I did not find any visible difference between them.
(For details, see the end of my message)

Dirk wrote:

"I think, its neccessary to save the checksum and the coordinates
of the screenshot while recording a session in the session-file and save the
screenshot under a filename given by user in a soure-directory for reference-screenshots.
In "Test.dat" you can find only one line like this:
5#137#34#96

That means: 5 Start at x-coordinate 5
137 Start at y-coordinate 137
34 End at x+34
96 End at y+96
"                (http://savannah.gnu.org/support/?func=detailitem&item_id=103871)


According to /usr/X11R6/include/X11/XWDFile.h xwd file format saves image coordinates too:

       CARD32 window_width B32;        /* Window width */
       CARD32 window_height B32;       /* Window height */
       CARD32 window_x B32;            /* Window upper left X coordinate */
       CARD32 window_y B32;            /* Window upper left Y coordinate */
       CARD32 window_bdrwidth B32;     /* Window border width */


Dirk wrote also "I think, its neccessary to save the checksum and the coordinates of the
screenshot while recording a session in the session-file and save the screenshot under a
filename given by user in a soure-directory for reference-screenshots."

I did't understand why screenshot itself should be saved to the file if the
only usage for this picture file is to calculate checksum. I think that
checksum should be saved, not the picture.

How are you planning to calculate checksum ? My choice was adler32 instead of md5sum
when I did java -program, because Adler32 was much, much more faster than md5sum.

Adler32 should be inside /usr/lib/libz.so
# uLong adler32 (uLong adler, const Bytef *buf, uInt len);
# uLong crc32 (uLong crc, const Bytef *buf, uInt len);
http://www.zlib.net/manual.html#Checksum%20functions


Veijo

On 1/18/06, Henrik Sandklef <address@hidden> wrote:

Update of sr #103871 (project xnee):

                  Status:             In Progress => Done
             Open/Closed:                    Open => Closed

    _______________________________________________________

Follow-up Comment #5:

I will close this task and open a new one instead. The reason is I think
using ImageMagick is easier.

/hesa

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?func=detailitem&item_id=103871 >

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



--- End Message ---

reply via email to

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