You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/h265/src/lib.rs
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff 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.
2
2
//!
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.
8
4
//!
9
5
//! ## How is this different from other h265 crates?
10
6
//!
11
-
//! The other main h265 crate is TODO.
7
+
//! TODO
12
8
//!
13
9
//! ## Notable features
14
10
//!
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.
16
12
//!
17
13
//! ## Examples
18
14
//!
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";
0 commit comments