Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2006, 06:14 AM   #31
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Quote:
Originally Posted by Matthijs
Please note that you would have to do a linear conversion to the 16 iLiad grays to be able to see what it actually looks like on the device. The images in the framebuffer have all 8bit grays but will be linearly converted to 16 grays in the eink framebuffer driver before being flushed to the display controller.
Only after that conversion you can compare these screenshots accurately as they would look on-screen.
Indeed, as it was already told in other thread, the Xfvdev server does not suport any intermediate between 8 bits and 1 bit (contrary to "specification" in the man page), so here iRex is doing the best possible approach: go with 8, and mod it out in the driver or in the hardware.
arivero is offline   Reply With Quote
Old 11-01-2006, 05:26 PM   #32
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
We officially have smoke!

Code:
root@ereader:/media/cf# ./idjvu galindoQM1.djvu 
(L)eripc.c:217,erIpcStartClient() Sending messages to 127.0.0.1
(L)eripc.c:217,erIpcStartClient() Sending messages to 127.0.0.1
(L)eripc.c:217,erIpcStartClient() Sending messages to 127.0.0.1
(W)eripc.c:37,erIpcInitServer() Version: 256

(W)eripc.c:76,erIpcInitServer() Bound successfully to 0.0.0.0:50067.
(PV_L)RenderThread.cpp:229,threadProc() Waiting...
(PV_L)RenderThread.cpp:99,start() Create render thread done!
(PV_L)PDFApp.cpp:161,open() Open document galindoQM1.djvu
(PV_L)PDFApp.cpp:164,open() Open document galindoQM1.djvu done!


(PV_E)PDFView.cpp:319,displayPage() Invalid page number -1!
More when I teach it the correct page number to use.
scotty1024 is offline   Reply With Quote
Advert
Old 11-01-2006, 05:53 PM   #33
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Well its read the page 1, rendered it but something is not noticing rendering completed. Soo close but gotta run. More after dinner folks.

But check out that render time...

Code:
(PV_L)RenderThread.cpp:229,threadProc() Waiting...
(PV_L)RenderThread.cpp:99,start() Create render thread done!
(PV_L)PDFApp.cpp:161,open() Open document galindoQM1.djvu
(PV_L)PDFCore.cpp:111,open() Document has 431 pages.

(PV_L)PDFApp.cpp:164,open() Open document galindoQM1.djvu done!


(PV_L)PDFView.cpp:340,displayPage() Page 1 NOT ready yet!
(PV_L)PDFView.cpp:340,displayPage() Page 1 NOT ready yet!
(PV_L)RenderThread.cpp:163,renderPageNow() Page 1 is in rendering!
(PV_E)PDFCore.cpp:167,renderPage() 519710 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 290297 page render time return 0

(PV_L)RenderThread.cpp:229,threadProc() Waiting...
scotty1024 is offline   Reply With Quote
Old 11-01-2006, 06:15 PM   #34
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Quantum Event!

Houston we've had a Quantum Event!

Code:
(PV_L)RenderThread.cpp:99,start() Create render thread done!
(PV_L)PDFApp.cpp:161,open() Open document galindoQM1.djvu
(PV_L)RenderThread.cpp:229,threadProc() Waiting...
(PV_L)PDFCore.cpp:111,open() Document has 431 pages.

(PV_L)PDFApp.cpp:164,open() Open document galindoQM1.djvu done!


(PV_L)PDFView.cpp:324,displayPage() Going to display the page 1 current page -1
(PV_L)PDFView.cpp:340,displayPage() Page 1 NOT ready yet!
(PV_L)PDFView.cpp:324,displayPage() Going to display the page 1 current page 1
(PV_L)PDFView.cpp:340,displayPage() Page 1 NOT ready yet!
(PV_L)PDFView.cpp:324,displayPage() Going to display the page 1 current page 1
(PV_L)PDFView.cpp:340,displayPage() Page 1 NOT ready yet!
(PV_E)PDFCore.cpp:167,renderPage() 513070 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 289200 page render time return 0

(PV_L)RenderThread.cpp:229,threadProc() Waiting...
(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 1 

(PV_L)XMgr.cpp:167,drawImage() In Drawimage



PageList:
page 1  zoom -1.000000  rotate 0        time 5


(PV_E)PDFCore.cpp:167,renderPage() 439485 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 364672 page render time return 0

(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 2 

(PV_E)PDFCore.cpp:167,renderPage() 350319 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 371985 page render time return 0

(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 3 

(PV_E)PDFCore.cpp:167,renderPage() 223740 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 298527 page render time return 0

(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 4 

(PV_E)PDFCore.cpp:167,renderPage() 342393 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 382408 page render time return 0

(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 5 

(PV_E)PDFCore.cpp:167,renderPage() 408717 page decoding time

(PV_E)PDFCore.cpp:236,renderPage() 404321 page render time return 0

(PV_L)RenderThread.cpp:229,threadProc() Waiting...
(PV_L)PDFView.cpp:442,onPageRendered() onPageRender 6
Many thanks to Antartica for his patience with me in getting his tool chain setup. He helped make this possible.
Attached Thumbnails
Click image for larger version

Name:	quantum.png
Views:	406
Size:	86.9 KB
ID:	2059  
scotty1024 is offline   Reply With Quote
Old 11-01-2006, 06:17 PM   #35
CommanderROR
eink fanatic
CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.CommanderROR is fluent in JavaScript as well as Klingon.
 
CommanderROR's Avatar
 
Posts: 2,022
Karma: 4924
Join Date: Mar 2006
Location: Germany
Device: STAReBOOK, iRex Iliad, Sony 505, Kindle 2
You did it once again Scotty!

I don't really know what idjvu is all about, but congrats anyway...I'm pretty sure that those who own djvu files will be very happy to hear of your success...
CommanderROR is offline   Reply With Quote
Advert
Old 11-01-2006, 06:42 PM   #36
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Quote:
Originally Posted by CommanderROR
You did it once again Scotty!

I don't really know what idjvu is all about, but congrats anyway...I'm pretty sure that those who own djvu files will be very happy to hear of your success...
Thanks!

I must admit I only have the one DJVU file myself!
scotty1024 is offline   Reply With Quote
Old 11-01-2006, 10:17 PM   #37
Mike Kostousov
Connoisseur
Mike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-books
 
Posts: 50
Karma: 861
Join Date: Aug 2006
Device: Zaurus C1000/iLiad/SE K750i
Scotty, where can I get your idjvu?
Mike Kostousov is offline   Reply With Quote
Old 11-01-2006, 10:38 PM   #38
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
idjvu is up on the MR project site. I've included the er_registry.txt snippet to activate it.

I was just happy to get it to link, run and display today. No panning, no zooming, and for now it always goes to page 1 on startup.

Things are still a bit rough with contentLister. It doesn't make you a manifest.xml, which is why I'm forcing the page to 1. And the icon is the X file icon but if you click on it idjvu will launch.

Please edit your /mnt/settings/er_registry.txt very carefully!

The idjvu application won't brick your iLiad but installing the settings into er_registry.txt could. Please make sure you have your life line shell ready to go.

Let's please be careful out there.
scotty1024 is offline   Reply With Quote
Old 11-01-2006, 11:25 PM   #39
Mike Kostousov
Connoisseur
Mike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-books
 
Posts: 50
Karma: 861
Join Date: Aug 2006
Device: Zaurus C1000/iLiad/SE K750i
Scotty, thanks! Very good job. I was doing idjvu also, but stoped after you published screenshots On holidays I can help you with code, if you upload sources. Now, it works very good. djvu - is good format, and some times it is better to have djvu instead pdf, because some of pdf is really complisert and takes very much time to render.
Mike Kostousov is offline   Reply With Quote
Old 11-02-2006, 12:32 AM   #40
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
This is the 3rd re-write from ipdf scratch and I did it quickly to see if I could get it to link. I need to go back through the code and rename everything to DJVU and turn the pan and rotate code back on. I'll post the source after that.

In the mean time enjoy the binary. It has extra speed from direct writes to /dev/fb0, by passing the X server entirely.
scotty1024 is offline   Reply With Quote
Old 11-02-2006, 09:27 AM   #41
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Quote:
Originally Posted by scotty1024
In the mean time enjoy the binary. It has extra speed from direct writes to /dev/fb0, by passing the X server entirely.
Aggh!
arivero is offline   Reply With Quote
Old 11-02-2006, 10:15 AM   #42
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by scotty1024
Many thanks to Antartica for his patience with me in getting his tool chain setup. He helped make this possible.
Thanks for the compliments. But it's always a honour to assist a hard-worker as you ;-).

Good job :-D
Antartica is offline   Reply With Quote
Old 11-02-2006, 12:42 PM   #43
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Quote:
Originally Posted by Mike Kostousov
Scotty, where can I get your idjvu?
http://projects.mobileread.com/iliad/projects/idjvu/
arivero is offline   Reply With Quote
Old 11-02-2006, 03:31 PM   #44
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
I heard back from iRex regarding hooking idjvu into ContentLister.

ContentLister is hard coded internally.

So I need to extend idjvu to do the manifest.xml creation trick. Nothing at all I can do about the icon ContentLister shows but on the bright side, at least ContentLister launches idjvu even if it doesn't know what it is.

Another good piece of news, I've compiled Poppler and it comes out reasonably close in size to iRex's.

I've gotten zero cooperation out of iRex on Poppler so I'm out on a limb on this one.

I've identified the slow Jack Rabbit Benchmark performance as being a bit of code in Poppler with a note hanging from it saying something similar to: "Please don't make me optimize this, let's use libtiff instead..."

I've compiled libtiff and I'm looking at how many of its nicely written decoders I can hook into Poppler to enhance it.

Antartica's tool chain with scratchbox rulez! Highly recommended update over iRex's tool chain.
scotty1024 is offline   Reply With Quote
Old 11-03-2006, 11:41 AM   #45
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
It is my unhappy task to let you know that I've decided to kill idjvu.

ContentLister simply isn't setup to support it and I'm not going to re-invent the wheel to do all the stuff ContentLister is doing to create the manifest.xml.

So what I am going to be doing this weekend is re-factoring ipdf.

I'm going to make ipdf into a pluggable framework into which viewers for other file formats can be installed, and leverage ipdf as the UI for paging, rotating, zooming, and getting manifest.xml's built via ContentLister.

My plan is to release 3 viewers with the new ipdf.

1. wrapper for Poppler e.g PDF support
2. wrapper for DJVULibre e.g. DJVU support
3. wrapper for my RTF parser e.g. Baen RTF ebook support (and yes, I'll still be doing the read direct from ZIP trick.)

The ipdf will use direct to screen memory page transfers with an X window popup place holder for it (so X doesn't get confused.) It will have a full 8 bit path for crisp text.

Support for improved decoding time and error dispersion of images will be in the next release of the Poppler wrapper (sorry, only so many hours this weekend.)
scotty1024 is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 07:48 PM.


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