Skip to content

Commit c399619

Browse files
committed
docs(h265): root docs
1 parent a7a10c1 commit c399619

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

crates/h265/src/lib.rs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
//! A pure Rust implementation of the H.265 encoder and decoder.
1+
//! A pure Rust implementation of the HEVC/H.265 decoder.
22
//!
3-
//! This crate is designed to provide a simple and safe interface to encode and decode H.265 headers.
4-
//!
5-
//! ## Why do we need this?
6-
//!
7-
//! This crate aims to provide a simple and safe interface for h265.
3+
//! This crate is designed to provide a simple and safe interface to decode HEVC/H.265 SPS NALUs.
84
//!
95
//! ## How is this different from other h265 crates?
106
//!
11-
//! The other main h265 crate is TODO.
7+
//! TODO
128
//!
139
//! ## Notable features
1410
//!
15-
//! This crate is a completely safe implementation of H265 encoding and decoding, which means there is no unsafe code!
11+
//! This crate is a completely safe implementation of HEVC/H.265 SPS NALU decoding.
1612
//!
1713
//! ## Examples
1814
//!
19-
//! TODO
15+
//! ```
16+
//! use scuffle_h265::SpsNALUnit;
17+
//!
18+
//! # fn test() -> std::io::Result<()> {
19+
//! # let data = b"\x42\x01\x01\x01\x40\x00\x00\x03\x00\x90\x00\x00\x03\x00\x00\x03\x00\x78\xa0\x03\xc0\x80\x11\x07\xcb\x96\xb4\xa4\x25\x92\xe3\x01\x6a\x02\x02\x02\x08\x00\x00\x03\x00\x08\x00\x00\x03\x00\xf3\x00\x2e\xf2\x88\x00\x02\x62\x5a\x00\x00\x13\x12\xd0\x20";
20+
//! # let reader = std::io::Cursor::new(data);
21+
//! let nalu = SpsNALUnit::parse(reader)?;
22+
//! println!("Parsed SPS NALU: {:?}", nalu);
23+
//! # Ok(())
24+
//! # }
25+
//! ```
2026
//!
2127
//! ## Status
2228
//!

0 commit comments

Comments
 (0)