Comic Book Reader

This is a forum for discussing the feasibility of getting emulators, games, or other applications that have had their source released ported to the Dreamcast. Please read the Porting FAQ before starting a topic in this forum!
Post Reply
Stryfe
Psychotic DCEmu
Psychotic DCEmu
Posts: 577
Joined: Mon Aug 11, 2008 9:34 am
Location: Nowhere U.S.A.

Comic Book Reader

Post by Stryfe » Thu Sep 03, 2009 11:33 am

Would it be possible/simple to port a comic book archive reader to the Dreamcast?
Image

Comic Book Archive files mainly consist of a series of image files, typically PNG (lossless compression) or JPEG (lossy compression) files, compressed using one of several popular methods. The file extension indicates the archive format used:
.cbr → RAR
.cbz → ZIP
One open source code I know of is the CDisplay offshoot, "CDisplayEx": http://en.wikipedia.org/wiki/CDisplayEx
ImageImageImageImage
User avatar
DCDayDreamer
DCEmu Respected
DCEmu Respected
Posts: 443
Joined: Tue Mar 16, 2004 6:59 pm

Re: Comic Book Reader

Post by DCDayDreamer » Thu Sep 03, 2009 1:51 pm

I've always used Comical for comic books, it's great as a standalone app with CBR/CBZ archives on portable media.
Across the Universe
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7474
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Contact:

Re: Comic Book Reader

Post by Quzar » Thu Sep 03, 2009 3:22 pm

There are two problems I can think of.
1) Solid compression things like rar or 7z would be difficult because their nature typically requires you to extract everything at once. This is fine for a save file or a rom for an emulator, but not for 100 pics or so. cbz would be fine though, as with zip you can extract individual files.
2) I've not tried much with the DC in the way of picture slideshow and comics, but it would seem to me that 640x480 would be too low to be able to read the images.
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
User avatar
DCDayDreamer
DCEmu Respected
DCEmu Respected
Posts: 443
Joined: Tue Mar 16, 2004 6:59 pm

Re: Comic Book Reader

Post by DCDayDreamer » Thu Sep 03, 2009 6:09 pm

Quzar wrote:it would seem to me that 640x480 would be too low to be able to read the images.
It is, the picture art is fine but the text (or speech bubble) is problematic, you'd need to zoom-in to each page to read the text displayed. Although it doesn't have all the features of Slideshow, I've found DCViewer to be the best comic reader on the Dreamcast, you do need to have the CBR/CBZ archive extracted into it's own directory though.
Across the Universe
Stryfe
Psychotic DCEmu
Psychotic DCEmu
Posts: 577
Joined: Mon Aug 11, 2008 9:34 am
Location: Nowhere U.S.A.

Re: Comic Book Reader

Post by Stryfe » Thu Feb 10, 2011 8:13 am

I take it then that this was infeasible, or would just be too time consuming?

Would zip/rar extraction along with jpeg rendering be possible within the limits of the DC's RAM?
ImageImageImageImage
Ex-Cyber
DCEmu User with No Life
DCEmu User with No Life
Posts: 3641
Joined: Sat Feb 16, 2002 1:55 pm

Re: Comic Book Reader

Post by Ex-Cyber » Thu Feb 10, 2011 11:11 pm

Stryfe wrote:I take it then that this was infeasible, or would just be too time consuming?

Would zip/rar extraction along with jpeg rendering be possible within the limits of the DC's RAM?
ZIP is reasonable, at least in principle. RAR is just a pain in the ass to deal with. The only reason anyone supports it is that RARLab provides a .DLL for decompressing it, and that's useless on Dreamcast. There's also source code, but it's packaged as a standalone utility (not a library) for Unix-like systems and is distributed under an obnoxious license. Even leaving that aside, RAR is a dictionary-based format that supports solid archives, which is not the best recipe for a RAM-limited platform with no standard mass storage.
"You know, I have a great, wonderful, really original method of teaching antitrust law, and it kept 80 percent of the students awake. They learned things. It was fabulous." -- Justice Stephen Breyer
User avatar
Christuserloeser
Moderator
Moderator
Posts: 5918
Joined: Thu Aug 28, 2003 12:16 am
Location: DCEvolution.net
Contact:

Re: Comic Book Reader

Post by Christuserloeser » Mon Feb 14, 2011 12:59 pm

From what I remember, DC Slideshow already does what you'd expect from a comic book viewer: http://www.dcevolution.net/index.php?id=slideshow

Decompress your CBR/CBZ files into a directory, convert to JPG if necessary and burn your CD.
Insane homebrew collector.
User avatar
Anthony817
Insane DCEmu
Insane DCEmu
Posts: 120
Joined: Wed Mar 10, 2010 1:29 am
Location: Fort Worth, Texas

Re: Comic Book Reader

Post by Anthony817 » Fri Feb 25, 2011 3:12 pm

Yeah, and me and a friend have already gotten the first issue of the US ODCM scanned and available on a CDI for you to read on your Dreamcast and TV. Such a great program too. There are 13 US ODCM mags that were made, and we have issue "0" released first, the other 12 magazines will get added when they are scanned.

http://www.dcisozone.com/downloads/2080 ... or-DC.html

Please leave comments.
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 351
Joined: Wed Mar 30, 2011 12:13 pm

Re: Comic Book Reader

Post by RyoDC » Sun May 22, 2011 12:30 pm

I think if Dreamcast (i mean, KOS) have such type of libraries and sets of standarts functions, for example, reading or opening an 7z or zip files and\or read jpeg images i think there's no real problem. that's just needs work to do.
How do I try to build a Dreamcast toolchain:
Image
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 573
Joined: Fri Jun 18, 2010 9:29 pm

Re: Comic Book Reader

Post by PH3NOM » Mon May 23, 2011 9:08 pm

RyoDC wrote:I think if Dreamcast (i mean, KOS) have such type of libraries and sets of standarts functions, for example, reading or opening an 7z or zip files and\or read jpeg images i think there's no real problem. that's just needs work to do.
The main problem, that Quzar pointed out, is that solid archives are a big problem for a system with 16mb main ram.

I dont think the current port of 7z would work for anything useful. You could try to compile the latest c++ version of the lib7z...
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 351
Joined: Wed Mar 30, 2011 12:13 pm

Re: Comic Book Reader

Post by RyoDC » Wed May 25, 2011 6:45 am

Yeah, I've pointed that too.
But we can write the bigger, not needed to work part of this decompressed archive to the dev\null, can we? Then decompress it again and take the next part that we need to work too, throwing away all another. Maybe that's not a solution but maybe it is.
I don't believe that there's no suitable ways to arrange this situation (instead of increasing the RAM size, of course).
How do I try to build a Dreamcast toolchain:
Image
Post Reply