diff --git a/CHANGELOG.md b/CHANGELOG.md index d36e46c..bc29a2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ * BREAKING CHANGE: The `ParamSetId` type has been removed and replaced with separate `PicParamSetId` and `SeqParamSetId` types, since the allowed range of values needs to be different in these two usages. +### Added + +* Make some fields of `SliceType` public. + ## 0.7.0 - 2023-05-30 ### Changed diff --git a/src/nal/slice/mod.rs b/src/nal/slice/mod.rs index 843ed4c..bfab5b7 100644 --- a/src/nal/slice/mod.rs +++ b/src/nal/slice/mod.rs @@ -8,7 +8,7 @@ use crate::rbsp::BitReaderError; use crate::Context; #[derive(Debug, PartialEq)] -enum SliceFamily { +pub enum SliceFamily { P, B, I, @@ -16,7 +16,7 @@ enum SliceFamily { 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 @@ -24,8 +24,8 @@ enum SliceExclusive { } #[derive(Debug, PartialEq)] pub struct SliceType { - family: SliceFamily, - exclusive: SliceExclusive, + pub family: SliceFamily, + pub exclusive: SliceExclusive, } impl SliceType { fn from_id(id: u32) -> Result {