FryView image viewer
LOL, i just re-read the topic subject for this post (image viewer-audio help needed).... had to delete that since it belongs to another thread now anyway, but i just realized how funny it sounded
anyway, update: fryview2b attached, updated june-22-08
Updated version (fryview 2) attached. update june-7-08
This is a modification of OBC's SpudView.
It allows you to view bitmap images with your prop on a TV
requirements:
Prop hooked up to an SD card, NTSC tv and a keyboard
This version allows you to convert .PPM images into a propeller friendly format, .pgf (prop graphics format)
after the conversion which does take a lil time, you can view them really quickly with fryview
full instructions are included in the readme.txt
I'm also posting an image to show the improvements i've made to the color conversion code. Eventually I'll be turning this into a video player.
Post Edited (vampyre) : 6/22/2008 8:06:28 AM GMT
anyway, update: fryview2b attached, updated june-22-08
Updated version (fryview 2) attached. update june-7-08
This is a modification of OBC's SpudView.
It allows you to view bitmap images with your prop on a TV
requirements:
Prop hooked up to an SD card, NTSC tv and a keyboard
This version allows you to convert .PPM images into a propeller friendly format, .pgf (prop graphics format)
after the conversion which does take a lil time, you can view them really quickly with fryview
full instructions are included in the readme.txt
I'm also posting an image to show the improvements i've made to the color conversion code. Eventually I'll be turning this into a video player.
Post Edited (vampyre) : 6/22/2008 8:06:28 AM GMT
zip
![](/plugins/FileUpload/images/file.png)
332K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Fryview... heh.. Will the video player be called deepfry? [noparse]:)[/noparse] [noparse]:)[/noparse]
Awesome job.. Looking forward to playing with this, this eve..
OBC
Edit:
Had to take a quick peek at your code.. Looks faster than Spudview.
(But you cheated.. You used logical math to determine color, while
spudview used conversion tables based on screen/color comparison. [noparse]:)[/noparse] [noparse]:)[/noparse]
I like your method better.. )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
Post Edited (Oldbitcollector) : 6/6/2008 1:57:45 PM GMT
I think it would help alot.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com
·
Forrest: your right. Spudview still does a better job converting cartoon-like images which is why i included the house pic for comparison. I think it has to do with my lazy brightness detection. i'm going to tweak that a bit before i start converting this to a video player.
Bean: thats not a bad suggestion. I'd planned to implement a greyscale option when converting, i belive i'll add a dithering option as well. thanks for the tip
planned features include an image browser, and the ability to fine tune image conversion settings
oh, and i figured out why fryview was taking so long to display images. i was having a homer simpson moment, i had forgotten to delete a delay i had put in the code for debugging . DOH!
Post Edited (vampyre) : 6/6/2008 6:38:21 PM GMT
There have been some updates to both the converter and the viewer
The viewer now allows you to scroll through all the images on your SD card, instead of only showing one at a time.
The converter saw the most change.
it now converts yellows correctly
it also now has a settings menu, that allows you to 'fine-tune' the conversion process for each image.
so now you can take all the saturation out for black and white, or increase the brightness, etc
the readme contains detailed instructions for those who actually read readme's
Hope you guys enjoy it half as much as i have coding it
this will probably be the last update before it becomes "DEEPFRY" , the video player
thanks for the name suggestion OBC [noparse]:)[/noparse]
-I only now just saw this edit. hehe yeah. I think thats why yours still does better with low-color images. brute-force works well in that situation Not sure if the converter is any faster, espeically now, but the seperate viewer negates conversion time. Another thing I changed in your code was your handle from IBC to OBC (and again from OBO to OBC).... i'm guessing those were typos, unless you have two secret lives we dont know about? hmmm?
Post Edited (vampyre) : 6/7/2008 10:45:03 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
As for colour conversion method, your method isn't quite how I did it, lol, I just got RGB value and looked for nearest colour in prop's palette, turned out pretty ok, considering [noparse]:)[/noparse]
I might try another one with your method, if that's ok with you ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
hint: stay away from wikipidea if you go searching for info on how to convert to HSV. bugs in their formula drove me crazy for two days before i realized it was their formula that was not right.
And yes, I'll share the conversion when it's done.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
I would have gotten done a lot earlier but i've been completely hooked on this JETPAC game.
tomorrow I'll re-install my C compiler (since my drive crashed) and port the converter code, then start working on audio interleaving.
look for a initial release in the next few days.
lol at JETPAC [noparse];)[/noparse] glad you like it and are finding it addictive lol
I shall wait patiently for your initial release [noparse]:)[/noparse] I won't hold my breath though as a few days of not breathing can make one rather ill lol.
Jim.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
The prop can capture video with only a sync separator and the sigma/delta conversion, I have a demo showing B/W video in real time from NTSC inputs.
The code consist of a "display cog", a "capture cog" to get raw video data, and a "process cog" to manipulate data for presentation.
The process cog does a weird nth root of the input and dumps it into the display buffer to produce fair quality B/W images.
Perry
No i hadn't seen that. Thanks a lot for mentioning it, I never would have thought it possible.. thats pretty wild. Is the code for it posted somewhere, i couldn't find it with a search
Baggers:
no no, dont hold your breath, a dead baggers doesn't bode well for PropGFX and at this point if i dont get my propGFX i'm gonna cry. For the first run i'm just converting a series of images, i dont want to spend my time hunting down the file format for .AVI
Once i get the prop playing video with interleaved audio, i'll finish it up and do it right.
The video i converted was a video of my kids playing in my front yard. Looks terrible at only 80x96, but i'm not smart enough to figure out how you did 120x96. My guess is that the best way for me to accomplish that is to use 160, and then just make the images themselves 120, centered on the screen using bytefills. Seems like that would be unnecessarily slow though.
http://forums.parallax.com/showthread.php?p=686552
Nice work Perry!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX Forums - The home of the Hybrid Development System and PropGFX Lite
Have you changed the display driver to be 80? or are you doubling up the pixels? do you know how to change it to 120? if not, I can do that for you, it'll save you doing slow unnecessarily slow byte fills. [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
I am working with a capture of 72x192, display on potatohead--hi-color-80x96.
even with infrared remote, and fsrwFEMTO I still have over 700 longs of memory available.
Will try to add another sigma/delta A/D for audio.
Perry
Perry:
thats really amazing stuff, thanks coley for the link. I can think of so many uses for that its not even funny. Machine vision, portable battery powered security cams , etc. whats really great about it is the affordability. Its almost disposable.
Baggers:
Yes at this point the display driver has been modified to be 80x96. I'm currently using the modified version of potatoheads driver that comes with spudview, that version is easy to change to multiples of 160 horizontal pixels. If you could put together a 120x96 version that would be awesome. I dont know how to do that without making the screen go all funny.
I looked into the .AVI file format and, ouch. Did you use a library for your converter or do you parse them manually? I'm still using loads of still images that have been spat out by virtualdub.
ok, I'll convert the driver from the one in fryview2 for you, and post back on here.
as for the .AVI, I had no idea about the file format, as there are many many codecs, so I decided to reverse engineer the uncompressed avi, as I knew it'd have to have a raw image data in there somewhere [noparse]:)[/noparse] and managed to sort out how it was stored [noparse]:)[/noparse] the only drawback, is with it being uncompressed, the AVI's get rather large lol so I just convert the current vid i'm converting from compressed, to uncompressed, then convert it with my converter.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Irfanview is a nice tool for extracting frames from animated GIF or avi files...· Also, you can crop, resize, and/or convert image format in batch mode.
Ray
I've also put two headers in the sources I've modified, fryview2.spin and potatohead--hi-color-raster-blah.spin for setting hybrid·or proto/demo setups.
I've also, made a change to the image loader, as I didn't have any 120x96 images in PPM / PGF format, so I made it read in the data for each line, and skip 40 bytes [noparse]:)[/noparse]
Baggers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Rayman:
I had no idea irfanview could handle extracting images from AVI's, that cuts out a whole step, thanks for the info. I've been using virtualdub followed by irfanview. And I havn't yet used it , but thanks in advance for the wav file player you made that i'll be shamelessly stealing, mangling and then squishing into the video player
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
So progress has been slow, I'm gonna go ahead and blame it on my headcold. yeah thats the ticket. I got stuck on another one of those mind-numbingly simple bugs that i just couldn't figure out because it was too obvious. didn't figure it out till right before bed,so there wont be a release today. I will however post something on youtube and link it here later
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Your update for 120x96 pointed out the "debug Led" code that would interfere with the fsrw on pins 0.1.2.3
I now have a primitive B/W video capture/play to the SD card on the proto board
Perry