Page 2 of 3

Re: XRoar video debug builds

Posted: Fri Mar 24, 2023 10:10 am
by sixxie
I've added some scrollbars for you :)

Also, the tape dialog is now pretty complete looking. I think I can probably remove the menu items in favour of it.

(Next up, disks!)

Re: XRoar video debug builds

Posted: Sun Mar 26, 2023 11:58 am
by sixxie
And that's the drive control dialog implemented.

Re: XRoar video debug builds

Posted: Sun Mar 26, 2023 5:35 pm
by sixxie
And now... averaging V' over pairs of lines in PAL.

It's interesting for sure: you can certainly configure it so that alternating red/blue gives you a nice "purple" (e.g. in the Superkid loading screen). The available filters may need work though, or maybe the averaging algorithm shouldn't be so straightforward: Donut Dilemma shows an odd colour flash atop your bonce while you jump...

Re: XRoar video debug builds

Posted: Sun Mar 26, 2023 10:43 pm
by robcfg
Nice!

How are you averaging the lines? Does it work consistently on graphic modes and semigraphics? They seem to be offset one line.

Re: XRoar video debug builds

Posted: Mon Mar 27, 2023 8:21 am
by sixxie
robcfg wrote: Sun Mar 26, 2023 10:43 pm How are you averaging the lines? Does it work consistently on graphic modes and semigraphics? They seem to be offset one line.
If should be averaging only the V' chroma component of each line (with Y' and U' remaining distinct per line). Not sure what you mean by an offset, but it does look like some lines end up with parts "going missing".

Edit: BTW, you can get the "nice purple" by setting encode filters on "I and Q" (actually U and V for PAL) - 1300 should be a nice number, whichever windowing function you choose. This low-pass filters each chroma channel before it's added to the signal.

More edit: so I've made that the default for PAL. Also, averaging three parts current line with one part its PAL pair seems to help out with those disappearing elements a bit. At least on the Superkid loading screen ;)

Re: XRoar video debug builds

Posted: Mon Mar 27, 2023 9:13 am
by robcfg
You can do a good test by comparing Pere and Simon's colour mixing tests (https://archive.worldofdragon.org/phpBB ... 571#p14571) and Ola Eldøy's Tetris.

If it generates the right colours for both, then your code is spot on! :mrgreen:

Re: XRoar video debug builds

Posted: Mon Mar 27, 2023 9:30 am
by sixxie
Well it's not there yet! But a good link - reading through that thread reminded me about the way the Dragon is "not quite centred" with its phase alternation, which may lead towards a better implementation. Of course it'll need more code and preferably for me to break out the oscilloscope again ;)

Re: XRoar video debug builds

Posted: Mon Mar 27, 2023 9:43 am
by robcfg
Looking forward to it!

And in case there's anything I can help with, just give me a shout :) I have an oscilloscope here (old, but works very nicely).

Re: XRoar video debug builds

Posted: Tue Mar 28, 2023 11:18 am
by sixxie
Just pushed out another build that lets you configure custom sinc windowing function and corner frequencies - so you can continuously vary the cutoff to see what works. The other precalculated options are still there too.

You can also adjust how much V' is taken from the "alternate line" in PAL. However I still can't make Pere's pictures look good ;)

Re: XRoar video debug builds

Posted: Tue Mar 28, 2023 3:19 pm
by sixxie
Written up the progress so far here: https://www.6809.org.uk/xroar/cvbs.shtml