Dingoonity.org

Dingux (Dingoo Linux) => Development => Topic started by: Chui on August 17, 2010, 10:40:22 am

Title: Pixel-modes
Post by: Chui on August 17, 2010, 10:40:22 am
Anybody knows dingoo's pixel modes and how change it using SDL or framebuffer? It is necessary for a important PCSX4ALL improvement ;)
Title: Re: Pixel-modes
Post by: ruffnutts on August 17, 2010, 07:57:49 pm
So Chui - is that a hint that your porting PCSX4ALL  ;D
Title: Re: Pixel-modes
Post by: zear on August 17, 2010, 08:05:32 pm
Anybody knows dingoo's pixel modes and how change it using SDL or framebuffer? It is necessary for a important PCSX4ALL improvement ;)
If by pixel modes you mean the resolution, dingoo can do only 320x240x16bpp
Title: Re: Pixel-modes
Post by: eule on August 17, 2010, 08:20:29 pm
Bet he knows that already, after all he ported some cool emulators already, i?d say Chui looks for such stuff:

sudo hwinfo --framebuffer
...
  Mode 0x0300: 640x400 (+640), 8 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+800), 8 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x0340: 1400x1050 (+1400), 8 bits
...
found at a german Ubuntu site (http://wiki.ubuntuusers.de/Konsolen-Aufl%C3%B6sung) after searching for pixelmodes.  ;D Possibly unrelated, but thought i?d post. Oh and before you try, dingux does not contain hwinfo, just tried myself...
If this post is totally useless, forget it please.   :)
Title: Re: Pixel-modes
Post by: mrkingoo on August 17, 2010, 08:38:30 pm
Judging by the Wiz preview video PCSX4ALL for the Dingoo would be awesome :) Even if the Dingoo version maybe wont come close to the Wiz performance, it would still be great if its a little faster than psx4all :)

Keep up the good work Chui!
Title: Re: Pixel-modes
Post by: laurent0977 on August 17, 2010, 09:32:02 pm
hello

Thank you for your kindness Chui

Laurent
Title: Re: Pixel-modes
Post by: SiENcE on August 18, 2010, 11:06:56 am
Anybody knows dingoo's pixel modes and how change it using SDL or framebuffer? It is necessary for a important PCSX4ALL improvement ;)

Chui, you mean  rgb32, rgb565 or yuv422 ? Whats the fastes on Dingoo?

Take a look at this toolchain and sourcecodes. It's for many mp4 devices (also the Dingoo) for the nativ OS. Maybe you find some infos there.

http://code.google.com/p/mp4sdk/
Title: Re: Pixel-modes
Post by: pcercuei on August 18, 2010, 11:20:06 am
AFAIK, the LCD driver of booboo's kernel as well as the SLCD driver of opendingux both support only rgb565. The 8bpp framebuffer is converted in software to become rgb565. But I don't know if the hardware support other pixel modes. To be sure, you should ask mth here or on freenode/#dingoonity.
Title: Re: Pixel-modes
Post by: santino on August 18, 2010, 02:12:20 pm
Wow chui are you really doing a new port for the dingoo? Thats so awesome! :)
Title: Re: Pixel-modes
Post by: ruffnutts on August 18, 2010, 03:00:10 pm
well he aint confirmed - hinting though - god I hope so pmsl  ;D
Title: Re: Pixel-modes
Post by: Chui on August 19, 2010, 01:34:03 am
I am interested about other 16bit modes for avoid shifts per pixel: RGB1555 etc
Title: Re: Pixel-modes
Post by: laurent0977 on August 20, 2010, 10:37:56 pm
hi,

It would be necessary to ask the question to boho or Uli .... ?

 :)

good night
Title: Re: Pixel-modes
Post by: ruffnutts on September 08, 2010, 11:26:38 pm
Wonder if theres any progress on PCSX4ALL...mmm  ;)
Title: Re: Pixel-modes
Post by: laurent0977 on September 20, 2010, 12:48:54 pm
Hello,

Chui don't know pixel mode for dingoo.

You can help Chui

Thanks

 :) :)
Title: Re: Pixel-modes
Post by: RodrigoCard on September 27, 2010, 04:59:18 am
I am interested about other 16bit modes for avoid shifts per pixel: RGB1555 etc

I was looking for something else in the jz4740.h (look here: http://projects.qi-hardware.com/index.php/p/xburst-tools/source/tree/63d8f0858cb696b1b3f04ed532df88a27fc65c18/xbboot/target-common/jz4740.h ) and found something interesting:

line 4464:    #define __lcd_select_rgb565() ( REG_LCD_CTRL &= ~LCD_CTRL_RGB555 )
line 4465:    #define __lcd_select_rgb555() ( REG_LCD_CTRL |= LCD_CTRL_RGB555 )

The current dingux drive does not support 555, but looks like the processor/lcd controler does.
I don't know how difficult it is to support it in the kernel though.
Title: Re: Pixel-modes
Post by: Derek182 on September 27, 2010, 05:15:19 pm
I know nothing of what you're asking, but best of luck with the project! :)
Title: Re: Pixel-modes
Post by: darfgarf on September 27, 2010, 05:22:44 pm
This post is pointless, +1 to my postcount ;D
Title: Re: Pixel-modes
Post by: Derek182 on September 28, 2010, 05:47:20 pm
This post is pointless, +1 to my postcount ;D
Hey now, no mocking :P
I'm just no developer, so the most I can contribute is verbal support. Judging by the number of posts I have, do you really think I care about my post count?  :D
Title: Re: Pixel-modes
Post by: laurent0977 on October 01, 2010, 12:35:31 am
bobo answer for my mail :

 Hi,

Looks like my original kernel allowed to select any mode, but only 16 bit mode worked. That is, for example, you tell SDL that you want 8 bit mode and the kernel says Ok, so the SDL does not bother to do color conversion (which it should). They seem to have fixed this in the OpenDingux kernel, which only reports success setting the 16 bit mode, so if you tell SDL to use any other mode, it will realize it's not supported and do the color conversion internally in a (I guess) very efficient way.

I'm not sure at the moment if a true RGB1555 mode can be achieved in the A320, but will try to look into it.

Regards.

good night
Laurent
Title: Re: Pixel-modes
Post by: Megacubo on September 03, 2011, 01:27:44 am
I hope somebody take the project someday...
Title: Re: Pixel-modes
Post by: SilverhawkBR on September 04, 2011, 08:40:45 pm
I dont think anyone will keep on developing that emulator, sadly.