Windows Bitmap viewer for TV

RaymanRayman Posts: 8,161
edited May 2009 in Propeller 1 Vote Up0Vote Down
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
Prop Info and Apps: http://www.rayslogic.com/

Comments

  • 13 Comments sorted by Date Added Votes
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,080
    edited May 2009 Vote Up0Vote Down
    @Rayman: Are you teasing us? Post some code. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
    <br>
  • BaggersBaggers Posts: 2,965
    edited May 2009 Vote Up0Vote Down
    Looks good Rayman [noparse]:)[/noparse]

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

    ·
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    Thanks.· I'll post the code in a few minutes...· I want to clean it up a bit...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
    Prop Info and Apps: http://www.rayslogic.com/
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    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
    Prop Info and Apps: http://www.rayslogic.com/
  • ColeyColey Posts: 946
    edited May 2009 Vote Up0Vote Down
    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
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    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
    Prop Info and Apps: http://www.rayslogic.com/
  • ColeyColey Posts: 946
    edited May 2009 Vote Up0Vote Down
    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
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    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
    Prop Info and Apps: http://www.rayslogic.com/
  • ColeyColey Posts: 946
    edited May 2009 Vote Up0Vote Down
    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.... smile.gif

    Thanks,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    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
    Prop Info and Apps: http://www.rayslogic.com/
  • RaymanRayman Posts: 8,161
    edited May 2009 Vote Up0Vote Down
    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
    Prop Info and Apps: http://www.rayslogic.com/
  • DufferDuffer Posts: 374
    edited May 2009 Vote Up0Vote Down
    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.

    You can try here: http://www.brothersoft.com/paint-shop-pro-64054.html

    Duffer
Sign In or Register to comment.