11 lines
7.8 KiB
HTML
11 lines
7.8 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `mpv_backend` mod in crate `jellytau_lib`."><title>jellytau_lib::player::mpv_backend - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="jellytau_lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.97.1 (8bab26f4f 2026-07-14)" data-channel="1.97.1" data-search-js="search-fd9372ac.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-fcd733ba.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module mpv_backend</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../jellytau_lib/index.html">jellytau_<wbr>lib</a><span class="version">0.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module mpv_<wbr>backend</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#statics" title="Statics">Statics</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In jellytau_<wbr>lib::<wbr>player</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">jellytau_lib</a>::<wbr><a href="../index.html">player</a></div><h1>Module <span>mpv_<wbr>backend</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/jellytau_lib/player/mpv_backend.rs.html#1-988">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.InternalState.html" title="struct jellytau_lib::player::mpv_backend::InternalState">Internal<wbr>State</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.MpvBackend.html" title="struct jellytau_lib::player::mpv_backend::MpvBackend">MpvBackend</a></dt><dd>MPV-based player backend for Linux</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.NORMALIZE_REF_LUFS.html" title="constant jellytau_lib::player::mpv_backend::NORMALIZE_REF_LUFS">NORMALIZE_<wbr>REF_<wbr>LUFS</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Reference loudness the peak table is anchored at (Normal preset, −14 LUFS).</dd><dt><a class="constant" href="constant.NORMALIZE_REF_PEAK.html" title="constant jellytau_lib::player::mpv_backend::NORMALIZE_REF_PEAK">NORMALIZE_<wbr>REF_<wbr>PEAK</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Reference peak (<code>dynaudnorm</code> <code>p</code>, linear amplitude) for the default
|
||
<a href="../../settings/enum.VolumeLevel.html#variant.Normal" title="variant jellytau_lib::settings::VolumeLevel::Normal"><code>VolumeLevel::Normal</code></a> (−14 LUFS) target, leaving −1.2 dB of headroom.</dd></dl><h2 id="statics" class="section-header">Statics<a href="#statics" class="anchor">§</a></h2><dl class="item-table"><dt><a class="static" href="static.MPV_HANDLE.html" title="static jellytau_lib::player::mpv_backend::MPV_HANDLE">MPV_<wbr>HANDLE</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The mpv handle of the backend this process created, for the video surface.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.build_af_filter.html" title="fn jellytau_lib::player::mpv_backend::build_af_filter">build_<wbr>af_<wbr>filter</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Build the full MPV <code>af</code> (audio filter) value from the audio settings.</dd><dt><a class="fn" href="fn.detect_audio_system.html" title="fn jellytau_lib::player::mpv_backend::detect_audio_system">detect_<wbr>audio_<wbr>system</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Detect which audio system is available on the system</dd><dt><a class="fn" href="fn.eq_filter_entries.html" title="fn jellytau_lib::player::mpv_backend::eq_filter_entries">eq_<wbr>filter_<wbr>entries</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Peaking-EQ filter entries (unwrapped), one ffmpeg <code>equalizer</code> (two-pole
|
||
peaking) per band with a non-zero gain, e.g.
|
||
<code>equalizer=f=31:width_type=o:width=1:g=5</code>. Returns an empty vec when the EQ
|
||
is disabled or every gain is ~0. Gains are assumed already normalised by
|
||
<a href="../../settings/struct.AudioSettings.html#method.with_equalizer_normalised" title="method jellytau_lib::settings::AudioSettings::with_equalizer_normalised"><code>AudioSettings::with_equalizer_normalised</code></a>; bands beyond <a href="../../settings/constant.EQ_BANDS.html" title="constant jellytau_lib::settings::EQ_BANDS"><code>EQ_BANDS</code></a> are
|
||
ignored.</dd><dt><a class="fn" href="fn.get_stream_url.html" title="fn jellytau_lib::player::mpv_backend::get_stream_url">get_<wbr>stream_<wbr>url</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Helper to get stream URL from MediaItem</dd><dt><a class="fn" href="fn.normalize_filter_entry.html" title="fn jellytau_lib::player::mpv_backend::normalize_filter_entry">normalize_<wbr>filter_<wbr>entry</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The loudness-normalization filter entry (unwrapped), or <code>None</code> when
|
||
normalization is disabled. Uses ffmpeg’s <code>dynaudnorm</code>, a gentle real-time
|
||
dynamic normalizer that avoids the gain “pumping” <code>loudnorm</code>’s single-pass
|
||
mode can produce on very dynamic material.</dd><dt><a class="fn" href="fn.registered_handle.html" title="fn jellytau_lib::player::mpv_backend::registered_handle">registered_<wbr>handle</a></dt><dd>The registered handle, or null if no MPV backend was created (initialisation
|
||
can fail, and the app falls back to a no-op backend rather than dying).</dd></dl></section></div></main></body></html> |