bugGnash - The GNU Flash player - Bugs: bug #21336, Gnash renders on a slant when...

 
 

bug #21336: Gnash renders on a slant when width is an uneven number of pixels

Submitted by:  Benjamin Wolsey <bwy>
Submitted on:  Sat 13 Oct 2007 10:38:03 AM UTC  
 
Category: render-aggSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 15 Oct 2007 01:20:34 PM UTC, comment #13:

Works for me now.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 12:31:58 PM UTC, comment #12:

I just committed a patch. Retry with current HEAD.

Udo Giacomozzi <udog>
Project Member
Mon 15 Oct 2007 12:09:18 PM UTC, comment #11:

Slanted, 16bpp:

initialized AGG buffer <0x2b6b9f136000>, 241200 bytes, 401x300, rowsize is 802 bytes.

Normal:

initialized AGG buffer <0x2b30c056d000>, 240000 bytes, 400x300, rowsize is 800 bytes.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 12:07:00 PM UTC, comment #10:

Ok, also try disabling MIT-SHM

Udo Giacomozzi <udog>
Project Member
Mon 15 Oct 2007 12:05:32 PM UTC, comment #9:

I altered my X server colour depth to 24bpp and the problem goes away, AGG output:

10871] 14:00:45: Your X server expects RGB24 pixmap data for standard mode.
10871] 14:00:45: X server pixel format is (R16:8, G8:8, B0:8, 32 bpp)
10871] 14:00:45: X server is using BGRA32 pixel format

So it looks like it's a bug with 16 bit colour.

Forcing a redraw makes no difference. I'll switch back to 16bpp and post the rowsizes.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 11:56:25 AM UTC, comment #8:

Strange, I can't reproduce the problem, but my gfx card is running in RGB24 mode.

- What "rowsize" is reported for problematic (slanted) window sizes (please post the whole line)?

- Try to force a redraw of the window when you see slanted rendering, i.e. move the window out of the desktop and back or simply start the game or change the height of the window.

Off-topic: I'm experiencing sporadic halts of about one second with high cpu usage (cpu fan starts), mostly when the ball reaches one of the players.

(file #14145)

Udo Giacomozzi <udog>
Project Member
Mon 15 Oct 2007 11:18:58 AM UTC, comment #7:

What is a good SWF to compare frame rate? I have tried with several and there is no significant difference between the widths you requested.

24175] 13:10:40: DEBUG: Activating FPS debugging every 5 seconds
24175] 13:10:40: Checking support for MIT-SHM...
24175] 13:10:40: NOTICE: MIT-SHM available (version 1.1)!
24175] 13:10:40: Your X server expects RGB24 pixmap data for standard mode.
/home/benjamin/.themes/Gnursid/gtk-2.0/gtkrc:440: Bilddatei konnte nicht in pixmap_path gefunden werden: »check4.png«
/home/benjamin/.themes/Gnursid/gtk-2.0/gtkrc:443: Overlay image options specified without filename
24175] 13:10:40: Created top level window
24175] 13:10:40: DEBUG: bool gnash::Network::connectSocket(const char*) enter
24175] 13:10:40: ERROR: The connect() socket for fd 5 never was available for writing
24175] 13:10:40: LIRC daemon not running
24175] 13:10:40: X server pixel format is (R11:5, G5:6, B0:5, 16 bpp)
24175] 13:10:40: X server is using RGB565 pixel format
24175] 13:10:40: framebuffer pixel format is RGB565 (little-endian host)
24175] 13:10:40: Base url set to: file:///home/benjamin/Download/SWF/copter.swf
24175] 13:10:40: Movie file:///home/benjamin/Download/SWF/copter.swf (SWF5) added to library
24175] 13:10:40: GTK-AGG: Using shared memory image
24175] 13:10:40: initialized AGG buffer <0x2af026434000>, 616800 bytes, 1027x300, rowsize is 2054 bytes

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 11:02:28 AM UTC, comment #6:

Please post the complete verbose output. GTK-AGG prints quite a few useful messages.

Udo Giacomozzi <udog>
Project Member
Mon 15 Oct 2007 10:08:50 AM UTC, comment #5:

The reported pixel format is RGB565.

Frames per second comparison needs a rebuild, so will take a bit longer.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 09:12:16 AM UTC, comment #4:

Hmm...

GTK-AGG does /not/ align the line stride (size of a line in bytes) to 4 bytes (a common optimization) but I'd not expect a huge difference from that. Would not be difficult to change, though.

Please start gnash with the -v option and post the output here. I'd like to know the pixel format used by AGG on your machine.

Also, use the -f option to give us frames-per-second values (so we can compare) for each width between 1024 and 1028 (need to know if it's really an even/odd thing or if it needs to be divisible by 4).

Udo Giacomozzi <udog>
Project Member
Mon 15 Oct 2007 09:04:34 AM UTC, comment #3:

I mean any time the window has an odd-number pixel width.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 08:55:36 AM UTC, comment #2:

It's any time the movie has an odd-number pixel width, whether that's the native width or if I resize the window.

A movie like geo.swf with a with of 1025 pixels starts slanted, but is rendered properly if I drag the window to an even width.

Just changing the width of the window obviously doesn't change the size of the movie at all, but does change the way it's rendered.

Benjamin Wolsey <bwy>
Project Member
Mon 15 Oct 2007 08:41:38 AM UTC, comment #1:

Ben, is this by resizing the window ?

Sandro Santilli <strk>
Project Member
Sat 13 Oct 2007 10:38:03 AM UTC, original submission:

This may have been reported for OpenGL as well.

Any flash movie that is an uneven number of pixels wide (height is not affected) is rendered as a slant. Changing the width to an even value by dragging the window makes it render properly.

The problem happened after a distro upgrade (build from a fresh checkout), so most of the linked libraries and the compiler are different.

AGG 2.5

Benjamin Wolsey <bwy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14145:  curveball.swf added by udog (58KiB - application/x-shockwave-flash)
file #14140:  curveball-odd.png added by bwy (23KiB - image/png - Screenshots)
file #14141:  curveball-even.png added by bwy (21KiB - image/png - Screenshots)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by udog (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by strk
  • -unavailable- added by bwy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 15 Oct 2007 01:28:55 PM UTCudogOpen/ClosedOpen=>Closed
    Mon 15 Oct 2007 01:27:59 PM UTCudogStatusNone=>Fixed
    Mon 15 Oct 2007 11:56:25 AM UTCudogAttached File-=>Added curveball.swf, #14145
    Mon 15 Oct 2007 08:41:38 AM UTCstrkCarbon-Copy-=>Added udog
    Sun 14 Oct 2007 08:26:25 AM UTCbwyAttached File-=>Added curveball-odd.png, #14140
      Attached File-=>Added curveball-even.png, #14141

    Back to the top


    Powered by Savane 3.1-cleanup1