Commit Graph

23 Commits

Author SHA1 Message Date
zakk4223
7f57504f92 Screenshot: don't squish video when it is rotated (#929) 2024-11-14 19:07:04 +08:00
Sorgelig
18b2ee21e9 video: send SPD info frame in direct_video mode. 2023-12-23 06:48:31 +08:00
Sorgelig
0419387578 video: support for direct_video=2 mode (experimental). 2023-12-20 21:37:55 +08:00
Sorgelig
8d735d4e77 Add control for S-Video/CVBS module. Add vga_mode parameter into INI. 2023-02-08 10:22:50 +08:00
Martin Donlon
4d0caf154b video: default preset and reset option.
`preset_default` option added to ini. Filename is relative to the presets/ path.

"Reset to defaults" option added to video processing menu which will delete the config files and reload the default configuration.
2023-02-07 02:55:52 +08:00
Martin Donlon
ad695d0848 Video mode switching optimizations.
Reduce cost of setting video mode information when using
vsync_adjust=1/2 or vscale_mode=4/5 from 90ms to 5ms (worst case, most
instances are less than 1ms).

Split video initialization into video_init and video_set_mode.
video_init is called once, video_set_mode is called whenever the mode
changes.

Split hdmi_config into hdmi_config_init and hdmi_config_set_mode. Same
as video_, hdmi_config_init does the bulk of the initialization,
hdmi_config_set_mode is just for parameters that can change based on the
mode.

Load video filter data in loadScalerCfg and persist it.

Calculate a digest for scaler data and use that to determine whether new
data needs to be sent.

Only send gamma information if the filename has changed.

Offload fb module parameter writing to a separate thread via the new
offload system.

Reduce the amount of work being done in set_vrr_mode when vrr is
disabled.
2022-07-18 16:30:00 -07:00
Sorgelig
5de6c5e231 video: VRR support for core, some code formatting. 2022-06-29 08:44:30 +08:00
Martin Donlon
b8a4c3f5e9 Support for HDMI pixel repetition (#631)
Send pixel repetition as high bit of video width
Half linux framebuffer size when PR is in use
If a modes width is > 2048 then use pixel repetition
Add video_mode 14 2560x1440.
Fallback to mode 8 if core doesn't support PR
2022-06-05 23:59:48 +08:00
Sorgelig
549025460b video: get framebuffer parameters from core. 2022-05-24 04:38:26 +08:00
Thomas Sowell
f5fd16c26e Override configuration based on video mode (#567)
* Override configuration based on video mode

Configuration options can now be overridden based on the core's video
mode.

The config parser now supports sections with names in the format
"video=WIDTHxHEIGHT[@VREFRESH]".  When a core changes video mode, MiSTer
reloads the config file and checks for a section matching the new mode.
If one is found, the options in the section override options in the
MiSTer/core sections.

MiSTer will look for a section matching the width, height, and vertical
refresh rate first.  If none is found, it will fall back to a section
matching the width and height but not specifying a refresh rate.  If
there is still no match, no overrides will be used.

Also, VREFRESH must match exactly the output from video_info or the
logs.  To match 720x400 31.48KHz 70.1Hz, the section title would need to
be [video=720x400@70.1].

* Move video section variables out of cfg_t
2022-03-17 14:46:57 +08:00
Martin Donlon
d32cea4798 Video info in OSD menu (#543) 2022-02-17 02:43:50 +08:00
Sorgelig
ba3d2fe80a OSD: filters/gamma/mask quick switch by +/- 2022-02-10 18:50:42 +08:00
Sorgelig
5cc951d262 Implement video processing presets. 2022-01-31 15:14:32 +08:00
Sorgelig
21e35bbf2f video: support 64 phases for scaler, separate filters for horizontal/vertical/scanlines. 2022-01-05 21:22:04 +08:00
Sorgelig
4cee9159d0 Support for loadable Shadow Masks. 2021-11-26 21:23:21 +08:00
paulb-nl
4d45292b32 Support gamma correction. Add scrolling to System menu (#120) 2019-10-18 15:04:21 +08:00
sorgelig
d78a41aa31 Menu core: improved OSD timeout, hide logo as well, darked the screen after double timeout. 2019-06-04 15:49:06 +08:00
sorgelig
d637e11ee5 Hide OSD after timeout if background picture is present. 2019-05-30 00:47:38 +08:00
sorgelig
5e0f6e92b4 FIFO to communicate with MiSTer, implement FB resolution command. 2019-05-29 22:23:27 +08:00
sorgelig
b1a1f16575 Execute scripts in fb terminal. fb_terminal ini option. 2019-05-28 06:16:43 +08:00
sorgelig
ac7ba6d115 More support for framebuffer and terminal coexistence. 2019-05-24 01:20:50 +08:00
sorgelig
bc756c4b02 Test frame buffer mode. 2019-05-20 22:24:27 +08:00
sorgelig
ec41bbfcb2 Extract video functions to separate file, some refactoring. 2019-05-20 20:01:04 +08:00