1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 07:01:45 +00:00
mpv/common
Kacper Michajłow 8708f4dc91 m_property: add > for fixed precision floating-point expansion
This enhancement makes it easier to create constant width property
expansions, useful for the `--term-status-msg`. Additionally, it changes
to `%f` printing with manual zero trimming, which is easier to control
than `%g`. With this method, we can directly specify precision, not just
significant numbers. This approach also avoids overly high precision for
values less than 1, which is not necessary for a generic floating-point
print function.

A new print helper function is added, which can be used with adjusted
precision for specific cases where a different default is needed. This
also unifies the code slightly.
2024-03-21 03:50:11 +01:00
..
av_common.c
av_common.h
av_log.c
av_log.h
codecs.c
codecs.h
common.c m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
common.h m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
encode_lavc.c encode_lavc: don't use deprecated avcodec_close 2024-02-19 18:09:58 +01:00
encode_lavc.h
encode.h
global.h
meson.build
msg_control.h common: don't force terminal log buffer to small size 2024-01-27 10:04:16 +01:00
msg.c msg: clear buffered status_line on flush 2024-03-21 01:47:15 +01:00
msg.h
playlist.c input/player: add loadfile/loadlist insert-at command 2024-02-26 02:03:21 +00:00
playlist.h input/player: add loadfile/loadlist insert-at command 2024-02-26 02:03:21 +00:00
recorder.c
recorder.h
stats.c
stats.h
tags.c
tags.h
version.c
version.h.in version.h.in: bump copyright year 2024-01-27 10:00:36 +01:00