diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 12:47:53 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 12:47:53 +0200 |
commit | 9dea083e2e7cf0eb3a1bc58e50259d21cb53b8c7 (patch) | |
tree | 1e2cbbfd1f7eb86021b14fdf33a36700eed23181 /libmpv2/README.md | |
parent | build(flake): Setup up checks (formatter and derivation) (diff) | |
download | yt-9dea083e2e7cf0eb3a1bc58e50259d21cb53b8c7.tar.gz yt-9dea083e2e7cf0eb3a1bc58e50259d21cb53b8c7.zip |
style(treewide): Reformat v0.1.0
Diffstat (limited to 'libmpv2/README.md')
-rw-r--r-- | libmpv2/README.md | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/libmpv2/README.md b/libmpv2/README.md index 7f77b16..6929354 100644 --- a/libmpv2/README.md +++ b/libmpv2/README.md @@ -10,24 +10,36 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -Credits go to @anlumo for the rendering implementation and @sirno for updating the API to support libmpv version 2.0. +Credits go to @anlumo for the rendering implementation and @sirno for updating +the API to support libmpv version 2.0. # libmpv2-rs -A libmpv abstraction written in rust that's easy to use and provides the ability to read next to all video and audio codecs. +A libmpv abstraction written in rust that's easy to use and provides the ability +to read next to all video and audio codecs. # Dependencies -Rust version >= 1.30. Libmpv version 2.0 (mpv version 0.35.0) is the minimum required version. +Rust version >= 1.30. Libmpv version 2.0 (mpv version 0.35.0) is the minimum +required version. -For ease of building, you can use the `build_libmpv` feature that is used to link against. Especially useful to cross compile to windows. The `MPV_SOURCE` environment variable needs to be set to a directory containing the mpv source you want to build against. For windows targets this is expected to be already built, with a directory named `MPV_SOURCE/64` or `/32` containing [build artifacts](https://mpv.srsfckn.biz/) for 64-bit and 32-bit targets respectively. On unix this is expected to be a copy of the mpv-build repo. +For ease of building, you can use the `build_libmpv` feature that is used to +link against. Especially useful to cross compile to windows. The `MPV_SOURCE` +environment variable needs to be set to a directory containing the mpv source +you want to build against. For windows targets this is expected to be already +built, with a directory named `MPV_SOURCE/64` or `/32` containing +[build artifacts](https://mpv.srsfckn.biz/) for 64-bit and 32-bit targets +respectively. On unix this is expected to be a copy of the mpv-build repo. # Examples -To run an example, execute `cargo run [--release] --example x -- test-data/jellyfish.mp4`, where x is any of: +To run an example, execute +`cargo run [--release] --example x -- test-data/jellyfish.mp4`, where x is any +of: - `events`: event enumeration -- `protocol`: implementation of custom `filereader://` protocol that… reads files +- `protocol`: implementation of custom `filereader://` protocol that… reads + files - `opengl`: openGL rendering onto SDL2 window # Contributing |