![]() |
#1 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
![]()
Is the kobo glo a 16 bpp machine under the hood?
The reason I ask is I am looking to implement SDL dithering on the kindles. I did try just patching the SDL lib I built using a patch that Niluje dug up but it seems to target 16 bpp blit? So. Is the device 16bpp by default? is there a place to go ogle some metrics? thanks! ![]() |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
The framebuffer on all Kobo models from the Touch onward is 16 bit. I'd be very interested in SDL dithering, let me know if you get that working!
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
well... on the kobo its already done...
Let me see if I can find the patch. EDIT: https://github.com/ifly7charlie/XCSo...kobo-new.patch You want an armel build of that? cant do you a Hard float but... Here's one I smashed together earlier. unable to test as I dont actually have a kobo. possibly may need to switch the SDL_MOUSE env_var at runtime to something like /dev/input/event1 but I am totally guessing. Last edited by twobob; 09-13-2013 at 09:54 PM. |
![]() |
![]() |
![]() |
#4 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I BEGGED the OP to provide an 8bit target.
Over on the kindle side of the fence we are a bit thin on the ground when it comes to developers... so.. yeah. begging. https://github.com/ifly7charlie/XCSo...Build/issues/1 Hope the SDL works for you. if I can tweak it in anyway and rebuild - let me know - happy to help. |
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Awesome, thanks for the download and the link! I'll give it a go as soon as I can.
If that cat picture doesn't get to him, nothing will! ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
np. if you can run armel bins...
I have a REALLY BIG pile over on the kindle developers corner. personally I just use dosbox to test this (good as anything else) can happily provide a bin of that too.. for that purpose |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
I tried your SDL build with sdlgnuboy on my Glo, but I didn't get any dithering. If you've got any suggestions I'm all ears, otherwise I'll try compiling it myself.
I drop by the Kindle dev corner every once in a while, there's a lot of great stuff there. Seems you keep yourself pretty busy with everything you post over there. |
![]() |
![]() |
![]() |
#8 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
To be honest. Just give it a build then. I did a tweak or two (which I obliquely alluded to above) to make it more kindle specific. Perhaps I broke it.
It's way easy: Git down http://buildroot.uclibc.org/git.html (buildroot) properly configure. (simple there are a bunch of threads of mine on that but yeah easy) Drop the patch in the package folder in buildroot under {buildroot}/package/sdl-1.2.5/ make xconfig (shell) pick SDL as a package. make grab from {buildroot}/output/target/usr/lib That's all I did ![]() Sorry I cant be more help. Without the device it would be crystal ball time. (OR just cross compile it the old fashioned way ![]() Last edited by twobob; 09-14-2013 at 04:59 PM. Reason: made it obvious I meant http://buildroot.uclibc.org buildroot and not some other reference to the root location of a build. |
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
When you compiled SDL, did you set your CFLAGS to "-DKOBO"? I followed the SDL.sh script in the xcsoar github repo.
Code:
patch -p0 < $PATCHESDIR/SDL-1.2.15-kobo-new.patch CFLAGS="-DKOBO" ./configure --prefix=<whatever> --host=arm-linux --disable-video-x11 --disable-cdrom --disable-audio --disable-opengl --disable-json make make install |
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
I went ahead and did a soft float compile so I could use it in my Debian chroot, so I've attached it below.
If you look at line 569 of the patch file you'll see this: Code:
// this will cause the noise to shift around on the screen, amazingly this + // has the effect of causing the pixels to 'refresh' preventing darkening of + // the ghosting as dithered areas overlap. + uint_fast16_t dither_v = rand() % KOBO_DITHERMATRIX_HEIGHT; Code:
uint_fast16_t dither_v = 0; |
![]() |
![]() |
![]() |
#11 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Excellent work!
but... Quote:
Can't init SDL SDL not built with audio support... I'll see what the OP says on his ticket when he gets a chance to have a look. Glad it worked for you ![]() Last edited by twobob; 09-16-2013 at 08:31 PM. |
|
![]() |
![]() |
![]() |
Tags |
dithering, dithering., kindle, kobo, sdl, twobob |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo revs up its line of e-readers, unveils Kobo Arc 10 HD tablet | Alexander Turcic | News | 61 | 09-01-2013 12:05 AM |
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? | the_m | Kobo Reader | 5 | 12-13-2012 03:40 PM |
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys | sufue | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-15-2012 10:39 AM |
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless | shaf | Kobo Reader | 5 | 12-04-2011 05:10 PM |
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 | JBlyth | Kobo Reader | 11 | 08-03-2011 05:38 PM |