Martin Donlon edcb3fcefc video: Vertical Scaling Changes (#608)
Integer Resolution Scaling
Generate a video mode whose vertical resolution is an integer multiple
of the cores vertical resolution. The video mode set via the
`video_mode` parameter is considered the maximum resolution. There are
two modes of operation: vscale_mode=4 - Both vertical and horizontal
resolution are modified. The horizontal resolution is scaled in
propotion to the vertical, so the aspect ratio is maintained. This will
be most suited to VGA CRTs that expect a specific aspect ratio signal.
vscale_mode=5 - Only the vertical resolution is modified. This will be
suitable for most modern LCD/OLED displays. The additional horizontal
resolution provides more space for wide aspect ratio cores.

Video Mode Calculation
CVT timing calculations are used to generate the modified video modes
for Interger Resolution Scaling, this mode generation is also exposed as
an additional way to specify video modes in the MiSTer.ini. Modes can be
specified with just the width, height and refresh rate:
`video_mode=1920,1200,60`. Whether to use the original CVT or the
reduced blanking CVT-RB timings can be specified with an optional flag,
e.g. `video_mode=1024,768,60,cvt`. Additionally the sync polarities can
also be expressed using flags now, e.g.
`video_mode=1280,110,40,220,720,5,5,20,74250,+hsync,-vsync`

Code Changes
More functionality was broken out of `video_mode_adjust`.
`video_mode_select` determines what the correct base video mode is based
on the timing and vsync_adjust configuration. The mode selected there is
then passed to `video_resolution_adjust` which modifies it based on the
integer resolution scaling selected. Other than that the functionality
of `video_mode_adjust` remains the same.

The `video_calculate_cvt` function was added to calculated video mode
timings.

`parse_custom_video_mode` was changed to support the additional flags.
It now uses `str_tokenize` to split up the input string so it is more
easy to manage the different variations of parameter counts allowed for
the modes.

`vmode_custom_param_t` was added to alias the items in the
vmode_custom_t instead of using raw array indexing everywhere.

`str_util.h/.cpp` added to provide some safer and easy to use string
functions. `strcpyz`, `strncpyz`, `sprintfz` all ensure that the
resulting string is null terminated and doesn't overrun memory.
2022-05-21 01:48:19 +08:00
2020-05-16 15:11:26 +08:00
2022-05-17 22:24:20 +08:00
2022-05-17 22:18:59 +08:00
2022-05-12 06:07:31 +08:00
2018-02-11 02:48:18 +08:00
2022-05-21 01:48:19 +08:00
2021-08-24 19:47:52 +08:00
2019-03-23 16:56:39 +08:00
2022-02-22 00:31:51 +08:00
2019-05-12 21:04:06 +08:00
2017-06-14 02:47:05 +08:00
2018-11-09 00:42:48 +08:00
2018-10-19 18:48:47 +08:00
2022-03-05 00:09:20 +08:00
2017-06-14 02:47:05 +08:00
2021-11-12 19:39:47 +08:00
2017-06-14 02:47:05 +08:00
2017-06-14 02:47:05 +08:00
2017-06-14 02:47:05 +08:00
2017-06-14 02:47:05 +08:00
2020-07-03 05:11:35 +08:00
2019-03-22 20:38:14 +08:00
2021-06-30 21:49:11 +08:00
2022-02-06 23:50:58 +08:00
2022-03-14 06:37:50 +08:00
2019-10-21 04:00:27 +08:00
2020-12-29 15:40:14 +08:00
2019-05-25 22:43:05 +08:00
2020-06-18 20:59:16 +08:00
2020-06-18 20:59:16 +08:00
2020-06-18 20:59:16 +08:00
2022-02-19 00:57:24 +08:00
2021-12-19 02:57:56 +08:00
2022-05-10 05:35:09 +08:00
2017-07-10 21:46:09 +08:00
2017-06-14 02:47:05 +08:00
2022-05-12 06:07:31 +08:00
2022-04-21 07:12:39 +08:00
2019-12-29 08:12:29 +08:00
2019-11-26 12:41:14 +08:00
2022-05-12 07:12:55 +08:00
2022-05-12 06:07:31 +08:00
2022-03-14 17:44:42 +08:00
2022-03-14 17:44:42 +08:00
2022-02-03 07:27:08 +08:00

Main_MiSTer Main Binary and Wiki Repo

This repo serves as the home for the MiSTer Main binaries and the Wiki.

For the purposes of getting google to crawl the wiki, here's a link to the (not for humans) crawlable wiki

If you're a human looking for the wiki, that's here

Description
Main MiSTer binary and Wiki
Readme GPL-3.0 76 MiB
Languages
C 57.5%
C++ 42.3%
HTML 0.1%