Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > Windows Bitmap viewer for TV  Forum Quick Jump
 
New Topic Post Reply Printable Version
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/23/2009 10:15 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I've hacked TV.SPIN to bring you a Windows BMP picture viewer for the Propeller!
 
It can display any 256 color (8bpp) .BMP file up to 256 pixels wide and 192 pixels tall.
(but bmp filesize should be less than around 27,828 bytes)
Regular text shows on top of the screen and picture on the bottom.
 
Here the code,  screenshot, and source .bmp file:
 
(Of course, I've done some magic in Photoshop to optimize the result)


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 5/23/2009 9:18:12 PM GMT


Image Attachment :
Image Preview
TV_Demo1.JPG
  369KB (image/pjpeg)
This image has been viewed 330 time(s).
Image Attachment :
Image Preview
TV_Demo1.bmp
  27KB (image/bmp)
This image has been viewed 171 time(s).

File Attachment :
PSM_TvBmpViewer - Archive [Date 2009.05.23 Time 15.31].zip   27KB (application/x-zip-compressed)
This file has been downloaded 212 time(s).
Back to Top
 

Oldbitcollector
Propeller Powered



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 4328
 
   Posted 5/23/2009 10:27 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
@Rayman: Are you teasing us? Post some code. :)

OBC


New to the Propeller?

Visit the: The Propeller Pages @ Warranty Void.

Back to Top
 

Baggers
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 2133
 
   Posted 5/23/2009 10:49 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Looks good Rayman :)


http://www.propgfx.co.uk/forum/ home of the PropGFX Lite
 

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/23/2009 11:26 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Thanks.  I'll post the code in a few minutes...  I want to clean it up a bit...
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/23/2009 12:33 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I've attached the code to the top post, as promised.
Also, here are a few images I've tweaked in Photoshop (and a couple untweaked, just to test).


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm



File Attachment :
PSM_BMP2TV_Samples.zip   40KB (application/x-zip-compressed)
This file has been downloaded 136 time(s).
Back to Top
 

Coley
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 568
 
   Posted 5/23/2009 1:59 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Ray,

Nice work, looks really good!!!

Have any tips for creating the bmp files, a couple I tried crashed the application.
(They were less than 256x192 and 256 colours)

Thanks,

Coley


PropGFX - The home of the Hybrid Development System and PropGFX Lite

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/23/2009 2:14 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
There's some tips in the comments of the main file. I think the maximum file size is around 27,828 bytes. Were your files bigger than that?
Also, it's really best to use the same palette as the examples for best quality.
 
Also, I must admit that I haven't really tried 256 wide or 192 tall...  Maybe there's a problem with tall or wide pics?


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 5/23/2009 9:19:32 PM GMT

Back to Top
 

Coley
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 568
 
   Posted 5/23/2009 2:28 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Ray,

I think it was me just being lazy and using windows paint.
I used paint.net to adjust the attached file, work really well now ....

Coley

135x192 256 Colours


PropGFX - The home of the Hybrid Development System and PropGFX Lite


Image Attachment :
Image Preview
King Tut.bmp
  27KB (image/bmp)
This image has been viewed 117 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/23/2009 6:03 PM (GMT -7)    Quote This PostAlert An Admin About This Post.

Coley:  I've Photoshoped your picture (applied the TV palette)...  This version loads faster and probably looks a bit better.

PS:  Do you think this would work with a PAL TV?


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm


Image Attachment :
Image Preview
Tut2.bmp
  26KB (image/bmp)
This image has been viewed 104 time(s).
Back to Top
 

Coley
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 568
 
   Posted 5/24/2009 12:16 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hi Ray,

Yes that does look a bit better.
PAL mode works but flickers/shimmers far too much, I can tweak the driver to do PAL 60 which is pretty much the same as NTSC.

How did you apply the TV Palette in photoshop, a little tutorial would be nice.... :-)

Thanks,

Coley


PropGFX - The home of the Hybrid Development System and PropGFX Lite

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/24/2009 3:02 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I'll try to find time to work on a tutorial... Basically, you open a picture, resize it, change the mode to indexed color and then tell it to use the palette file that I've embedded in the archive. You can also extract the palette from any of the pictures I've posted here...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 5/26/2009 8:02 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I've tried to find some freeware program that can do better than Irfanview does for creating a 256 color bmp file with a fixed palette, but can't find anything. Photoshop does a much better job than Irfanview though.

This is a bit of a complication for my video player plan...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 5/30/2009 12:59:22 AM GMT

Back to Top
 

Duffer
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2007
Total Posts : 377
 
   Posted 5/26/2009 8:42 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
JASC (now Corel) Paint Shop Pro (I'm using version 8) will use the palette file that Rayman supplied and does a good job of resizing and cropping. I think you can still get a high functioning free trial version.
 
 
Duffer
Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
 
Forum Information
Currently it is Thursday, July 29, 2010 5:22 PM (GMT -7)
There are a total of 462,441 posts in 62,066 threads.
In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
Who's Online
This forum has 20143 registered members. Please welcome our newest member, ME01.
60 Guest(s), 16 Registered Member(s) are currently online.  Details
John Abshier, Erik Friesen, RossH, Kevin Wood, simpsonmichael1, BradC, David Betz, Julian800, Martin Hodge, RDL2004, prof_braino, Harley, Sapieha, wiresalot, Ravenkallen, Tubular