# 场景预设，手动激活：profile=game 等

[game]
profile-desc=低延迟，高性能
hwdec=auto-safe
video-sync=display-resample
interpolation=no
deband=no
video-latency-hacks=yes
opengl-pbo=yes
gpu-api=vulkan
gpu-context=wayland
cache=no
demuxer-max-bytes=8MiB
demuxer-max-back-bytes=4MiB

[movie]
profile-desc=高质量画质
hwdec=auto-copy-safe
video-sync=display-resample
interpolation=yes
deband=yes
deband-iterations=4
deband-threshold=35
deband-range=16
deband-grain=4
icc-profile-auto=yes
target-colorspace-hint=yes
hdr-compute-peak=yes
tone-mapping=hable
target-peak=100

[anime]
profile-desc=动画优化
hwdec=auto-safe
video-sync=display-resample
interpolation=yes
deband=yes
deband-iterations=3
deband-threshold=48
deband-range=16
deband-grain=6
icc-profile-auto=yes
glsl-shaders="~~/shaders/Anime4K/glsl/Restore/Anime4K_Restore_CNN_Soft_M.glsl;~~/shaders/Anime4K/glsl/Deblur/Anime4K_Deblur_DoG.glsl"

[lowpower]
profile-desc=省电模式
hwdec=no
video-sync=audio
interpolation=no
deband=no
icc-profile-auto=no
vd-lavc-threads=2
vd-lavc-skiploopfilter=all
vd-lavc-fast=yes
scale=bilinear
dscale=bilinear
cscale=bilinear

[stream]
profile-desc=网络流媒体优化
hwdec=auto-safe
video-sync=display-resample
cache=yes
cache-secs=300
demuxer-max-bytes=64MiB
demuxer-max-back-bytes=32MiB
network-timeout=60
ytdl=yes
ytdl-format=bestvideo[height<=?1080][vcodec!=?vp9]+bestaudio/best

[HDR-scene]
profile-desc=HDR 手动预设
hwdec=auto-copy-safe
target-colorspace-hint=yes
hdr-compute-peak=yes
tone-mapping=hable
target-peak=203
gamut-mapping-mode=relative
icc-profile-auto=yes
glsl-shaders="~~/shaders/other/PixelClipper.glsl"

[screenshot-hq]
profile-desc=高质量截图
screenshot-format=png
screenshot-png-compression=9
screenshot-png-filter=5
screenshot-tag-colorspace=yes
screenshot-high-bit-depth=yes
screenshot-sw=no
scale=lanczos
dscale=mitchell
cscale=mitchell

[live]
profile-desc=直播低延迟
hwdec=auto-safe
video-sync=display-resample
cache=no
demuxer-max-bytes=2MiB
demuxer-max-back-bytes=1MiB
video-latency-hacks=yes
opengl-pbo=yes
network-timeout=30
stream-lavf-o=reconnect_streamed=1,reconnect_delay_max=30
