pgs-rs
A Rust library for parsing and rendering PGS (Presentation Graphic Stream) subtitles, commonly found on Blu-ray discs.
Features
- Parsing: Efficiently parse PGS segments including Presentation Composition, Window Definition, Palette Definition, and Object Definition.
- Rendering: Render display sets into raw RGBA buffers.
- Zero-copy parsing: Uses
winnowfor fast, zero-copy parsing where possible.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage
Parsing and Rendering
Here is a basic example of how to load a .sup file, parse it, and iterate through the display sets.
use fs;
use parse_pgs;
use ;
License
This project is licensed under the MIT License.