Skip to content

Commit

Permalink
Make the fields of SliceType pub.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzywilczek committed Jun 4, 2024
1 parent 7ca37a5 commit 3e141e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nal/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ use crate::rbsp::BitReaderError;
use crate::Context;

#[derive(Debug, PartialEq)]
enum SliceFamily {
pub enum SliceFamily {
P,
B,
I,
SP,
SI,
}
#[derive(Debug, PartialEq)]
enum SliceExclusive {
pub enum SliceExclusive {
/// All slices in the picture have the same type
Exclusive,
/// Other slices in the picture may have a different type than the current slice
NonExclusive,
}
#[derive(Debug, PartialEq)]
pub struct SliceType {
family: SliceFamily,
exclusive: SliceExclusive,
pub family: SliceFamily,
pub exclusive: SliceExclusive,
}
impl SliceType {
fn from_id(id: u32) -> Result<SliceType, SliceHeaderError> {
Expand Down

0 comments on commit 3e141e6

Please sign in to comment.