-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with image converter #1
Comments
Perhaps I could also run a histogram to weight toward the most prevalent colour in the image. Interesting stuff. |
Yes I noticed the problem with that one myself. Perhaps one option would be to look for the darkest colour and if there isn't a suitable colour reasonably close to black then scan the boundary of the image and use the most common colour on the boundary as logical 0 which should give blue in the above example. Once I've got the command codes fully implemented I plan on modifying your beeb code to drive the palette in the converter so the demo should run nearly identically to a nula. I think it should be possible to auto switch between nula and hdmi mode by detecting the nula driver ROM |
Good idea to do the border scan. I'll incorporate that approach I think. |
Hi Simon, |
Sorry, hit close by accident |
Hi Simon,
I don't know if you've been following the BBCtoHDMI thread on stardot but I've got a 16 colour mode 2 with programmable palette working with that and can display nula type mode 2 images with no internal hardware mods:
https://stardot.org.uk/forums/viewtopic.php?f=3&t=14430&start=600#p226594
However there is a problem with the converted images:
The BBCtoHDMI converter captures the BBC video output into a frame buffer on the Pi which is slightly larger than the displayed image because each mode is shifted differently in the horizontal direction and also to cope with *TV 255,0 etc.
However the Pi can't tell the difference between logical colour 0 on the mode 2 display and the BBC black screen border so if logical colour 0 is programmed to anything other than black you get a coloured border around the image. You can see that in the BBC micro image linked above and I've also attached another example:
Would you consider modding your converter and updating the images to always put the darkest colour on logical colour 0?
The text was updated successfully, but these errors were encountered: