Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2012, 10:14 AM   #46
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
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 just wanted to show support for Geekmaster here.

Excellent job on this. Some details on piping a video thru the dithmatron would be greatly appreciated. As an almost first time c coder I find the structure daunting but no doubt it will become clear with some actual elbow grease.

Compared with implementing Cross-platform tool chains this looks to be fun in the making.
Much appreciated.

I, for one, am definitely watching your work, with admiration.
If I can hookup a viddy in the sometime I will.
Attached Thumbnails
Click image for larger version

Name:	TightVNC: kindle:0.0_110.png
Views:	223
Size:	43.0 KB
ID:	99177   Click image for larger version

Name:	TightVNC: kindle:0.0_112.png
Views:	228
Size:	44.5 KB
ID:	99178   Click image for larger version

Name:	TightVNC: kindle:0.0_115.png
Views:	198
Size:	42.2 KB
ID:	99179   Click image for larger version

Name:	TightVNC: kindle:0.0_117.png
Views:	201
Size:	43.8 KB
ID:	99180   Click image for larger version

Name:	TightVNC: kindle:0.0_118.png
Views:	208
Size:	44.0 KB
ID:	99181  

Last edited by twobob; 01-10-2013 at 07:21 PM.
twobob is offline   Reply With Quote
Old 06-27-2012, 10:26 AM   #47
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
Compared with implementing Cross-platform tool chains this looks to be fun in the making.
There is a selection of cross-platform tool chains mirrored in the KeK project.
Read the posts of that thread for details and then the first post of the thread for current info.
knc1 is offline   Reply With Quote
Advert
Old 06-27-2012, 01:43 PM   #48
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
I just wanted to show support for Geekmaster here.

Excellent job on this. Some details on piping a video thru the dithmatron would be greatly appreciated. As an almost first time c coder I find the structure daunting but no doubt it will become clear with some actual elbow grease.

Compared with implementing Cross-platform tool chains this looks to be fun in the making.
Much appreciated.

I, for one, am definitely watching your work, with admiration.
If I can hookup a viddy in the sometime I will.
You can reformat the C code to any of many popular styles using a tool called AStyle. many programmers editors have it built in. Or you can run it as a standalone tool. It can add a lot of "white space", if that makes the code more readable for you.

For my own personal preference, I like as much of the code "above the fold" visible with no scrolling) as possible. I let my eyes dart around in what is visible, as I absorb the code, and the more visible the better (for me).

I am glad you enjoy it. My demos are really just examples that demonstrate how to use the ALGORITHMS and function that I present (which is why they are called "demos"). The point is to teach people how to use fairly low-level access to computers that is quite "cross-platform". I my case, I usually try to support all the eink kindles, and I plan to add support for Nook Simple Touch to my future demos (now that I have one).

I also make my demos use a single C file, so they are easy to compile with gcc or tcc (tinycc). Graphics demos usually run a lot faster if cross-compiled with gcc, than when compile on the kindle with tcc, but tcc can be easier to install and use (from an SSH shell).
geekmaster is offline   Reply With Quote
Old 06-27-2012, 01:51 PM   #49
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Also, check out the newtrix demo thread, and the geekmaster kindle video player thread (and the videos in it). They have newer versions of the eink update logic.
geekmaster is offline   Reply With Quote
Old 06-29-2012, 01:45 PM   #50
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
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
Kek.righto!

Quote:
Originally Posted by knc1 View Post
There is a selection of cross-platform tool chains mirrored in the KeK project.
Read the posts of that thread for details and then the first post of the thread for current info.

Ah happy days, I see that project now.
I will carefully pick that which I need.

At the moment I have the arm-none-linux-gnueabi-gcc in action.

But I have a few more to try out as well to see what suits the task I have in mind best.
They seem much of a muchness to a newb like me

No doubt there will be a speed / size advantage to each.
Time will tell.

Really appreciate you guys putting this stuff out here.
Lifesaver.
twobob is offline   Reply With Quote
Advert
Old 06-29-2012, 01:48 PM   #51
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
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
you betcha

Quote:
Originally Posted by geekmaster View Post
Also, check out the newtrix demo thread, and the geekmaster kindle video player thread (and the videos in it). They have newer versions of the eink update logic.
I'm tinkering with getting the sound going.

Always happy to help out when I can. perhaps if you get a moment (and yes, I've read a great deal about your obligations vicariously so I'm not holding my breath) you could shove me a look-see at some audio-code.

No pressure, I'm working on it anyhow and I'll be putting it out MIT or something if I actually manage something of note.

Cheers
twobob is offline   Reply With Quote
Old 06-29-2012, 01:58 PM   #52
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
you could shove me a look-see at some audio-code.

Cheers
The quotes show two built-in audio players, both that can accept audio (different formats) piped from STDIN:

https://www.mobileread.com/forums/sho....php?p=2080308

As I recall, aplay needs a parameter to tell it that the input format is "cd" audio, to match what ffmpeg puts out.

I never got around to posting my "all features" static build of ffmpeg for the kindles (tested on K3 and K5). I think I still need to post my "raw2gmv" video trancoder too. I could pipe ffmpeg|raw2gmv|gmplay on a K5, but a K3 was only fast enough to pipe raw2gmv to gzip and to a file (like videos saved in the gm video thread), then play that with zcat piped to gmplay.

The problem with ffmpeg is that even the online guides show starting multiple instances of it, one to output video and another to output audio. Both output streams sync to the input framerate, so the stay in sync.

If you want to do something useful, try building ffmpeg with also sound. I think I had toolchain version problems. NiLuJe suggested a hint to fix alsa sound in the gm video thread, I think...
geekmaster is offline   Reply With Quote
Old 06-29-2012, 02:01 PM   #53
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Also, the same algorithms that make the interesting Moire (aliasing) effects in some of my demos also work well for audio instead of video. I used to do audio in the olden days when the only affordable "video" device was blinking front panel LEDs, and audio only needed a single output bit driving an audio amplifier. Back then, we used guitar amplifiers because computers did not have amplified speakers (or even sound cards).
geekmaster is offline   Reply With Quote
Old 06-30-2012, 05:25 AM   #54
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
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
yes indeed, my old vic 20's 16k (WITH RAM PACK!) of ram seem silly now.

and the STFM was indeed revolutionary.

I am indeed trying to construct a very healthy toolchain using buildroot
but when I compile the GCC ver 4.4 I get...

/tmp/ccSlmrCk.s:33: Error: selected processor does not support `bx lr'

How hum. I'll keep digging until I get one to completely build. The advantage of buildroot is allegedly a large client-ready toolset. let's see how it goes I'm a couple of days into doing that one now.

Yeah audio. I've done a bit, http://soundcloud.com/twobob always happy to get my hands dirty.

I'll keep digging then. and read the links to death again.

Much appreciated

Last edited by twobob; 06-30-2012 at 07:37 PM. Reason: 16k was with RAM PACK Extension. 5kb was standard install... more typos
twobob is offline   Reply With Quote
Old 06-30-2012, 05:38 AM   #55
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Check out the KeK thread for a toolchain. I just used CodeSourcery to build ffmpeg (and my demos). I also test my demos using tcc (tinycc), which is packaged to run on all eink kindles (in its own thread, which can be found in the tools index). Beware that programs compiled with tcc run a lot slower than if compiled with gcc, but tcc is very handy for on-kindle development and debugging.
geekmaster is offline   Reply With Quote
Old 06-30-2012, 05:44 AM   #56
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
Yeah audio. I've done a bit, http://soundcloud.com/twobob always happy to get my hands dirty.
The devil wears a Guiness T-Shirt, eh?
geekmaster is offline   Reply With Quote
Old 06-30-2012, 05:52 AM   #57
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
Check out the KeK thread for a toolchain. I just used CodeSourcery to build ffmpeg (and my demos). I also test my demos using tcc (tinycc), which is packaged to run on all eink kindles (in its own thread, which can be found in the tools index). Beware that programs compiled with tcc run a lot slower than if compiled with gcc, but tcc is very handy for on-kindle development and debugging.
The Code Sorcery (Mentor Graphics now) 2012.03-57 build added to the tool collection yesterday would probably be a good, general purpose, choice.
There is also a "getting_started" guide (with same build number in name) in the tool collection provided by Mentor Graphics.

Following the common MR practice, the first post is being kept current with the overall state of the project.

Last edited by knc1; 06-30-2012 at 09:26 AM.
knc1 is offline   Reply With Quote
Old 06-30-2012, 05:26 PM   #58
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
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
Thumbs up Well. I just spent a day...

Just to be clear:

I have Codesourcery toolchain 90% installed.
(I need to find a suitable root AFAIK to do the full-job-monty-compile but the arm-none-linux-gnueabi-gcc -03 works fine with a single c file argument )

I can report that Buildroot does not like to play on Slackware 64 multilib. but looks AWESOME on a system it would work on.... so to that end.... I'm half way thru a CLFS build just to be good and thorough. I'll go 32 bit and KISS. see if I can get us some of those toys.

I have downloaded and used the TCC. works great

So really Kek is my last port of call and it seems it should have been my first one.
Ho-Hum, this is the way of things. but it was quite the learning curve and if I'm honest spending 3 days configuring toolsets should be a required activity of all would be developers, keep out the riff-raff. hehehe.

no but seriously. Kek here I come. Happy days. the CLFS can wait a while.

I want to play!!!

Last edited by twobob; 06-30-2012 at 07:36 PM. Reason: typos and such
twobob is offline   Reply With Quote
Old 06-30-2012, 06:06 PM   #59
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
I can report that Buildroot does not like to play on Slackware 64 multilib. but looks AWESOME on a system it would work on.... so to that end....
I don't recall seeing the i.MX3* series or i.MX5* series Freescale SoC having been added to Buildroot, although one of the i.MX2* series SoC chips was added a few months ago.

Did someone sneak in some Freescale defines I didn't notice?
Or did you add them youself? If so, please contribute them to the Buildroot project.
knc1 is offline   Reply With Quote
Old 06-30-2012, 07:07 PM   #60
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: There's sporadic evidence that Amazon uses scratchbox internally, if you want to go the whole LFS way of things, and not just a X-TC .

(I know, it's fun to point to another project after spending two days making faces at buildroot, no? ).

I personally only need a TC, so crosstool-ng suits me just fine, but YMMV .

Last edited by NiLuJe; 06-30-2012 at 07:10 PM.
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Kindle and math formula DrShakalu Amazon Kindle 12 12-11-2011 07:25 AM
Formula Plots PuxyYunm General Discussions 9 05-15-2011 04:19 AM
Demo: Jetbook mini official demo bookwarm Ectaco jetBook 36 09-21-2010 12:18 PM


All times are GMT -4. The time now is 06:59 AM.


MobileRead.com is a privately owned, operated and funded community.