@@ -2206,7 +2206,7 @@ impl<T> Drop for BMFFBox<'_, T> {
22062206/// skip unknown or uninteresting boxes.
22072207///
22082208/// See ISOBMFF (ISO 14496-12:2020) § 4.2
2209- fn read_box_header < T : ReadBytesExt > ( src : & mut T ) -> Result < BoxHeader > {
2209+ pub fn read_box_header < T : ReadBytesExt > ( src : & mut T ) -> Result < BoxHeader > {
22102210 let size32 = be_u32 ( src) ?;
22112211 let name = BoxType :: from ( be_u32 ( src) ?) ;
22122212 let size = match size32 {
@@ -2258,7 +2258,7 @@ fn read_box_header<T: ReadBytesExt>(src: &mut T) -> Result<BoxHeader> {
22582258}
22592259
22602260/// Parse the extra header fields for a full box.
2261- fn read_fullbox_extra < T : ReadBytesExt > ( src : & mut T ) -> Result < ( u8 , u32 ) > {
2261+ pub fn read_fullbox_extra < T : ReadBytesExt > ( src : & mut T ) -> Result < ( u8 , u32 ) > {
22622262 let version = src. read_u8 ( ) ?;
22632263 let flags_a = src. read_u8 ( ) ?;
22642264 let flags_b = src. read_u8 ( ) ?;
@@ -2270,7 +2270,7 @@ fn read_fullbox_extra<T: ReadBytesExt>(src: &mut T) -> Result<(u8, u32)> {
22702270}
22712271
22722272// Parse the extra fields for a full box whose flag fields must be zero.
2273- fn read_fullbox_version_no_flags < T : ReadBytesExt > ( src : & mut T ) -> Result < u8 > {
2273+ pub fn read_fullbox_version_no_flags < T : ReadBytesExt > ( src : & mut T ) -> Result < u8 > {
22742274 let ( version, flags) = read_fullbox_extra ( src) ?;
22752275
22762276 if flags != 0 {
@@ -2281,7 +2281,7 @@ fn read_fullbox_version_no_flags<T: ReadBytesExt>(src: &mut T) -> Result<u8> {
22812281}
22822282
22832283/// Skip over the entire contents of a box.
2284- fn skip_box_content < T : Read > ( src : & mut BMFFBox < T > ) -> Result < ( ) > {
2284+ pub fn skip_box_content < T : Read > ( src : & mut BMFFBox < T > ) -> Result < ( ) > {
22852285 // Skip the contents of unknown chunks.
22862286 let to_skip = {
22872287 let header = src. get_header ( ) ;
@@ -2296,7 +2296,7 @@ fn skip_box_content<T: Read>(src: &mut BMFFBox<T>) -> Result<()> {
22962296}
22972297
22982298/// Skip over the remain data of a box.
2299- fn skip_box_remain < T : Read > ( src : & mut BMFFBox < T > ) -> Result < ( ) > {
2299+ pub fn skip_box_remain < T : Read > ( src : & mut BMFFBox < T > ) -> Result < ( ) > {
23002300 let remain = {
23012301 let header = src. get_header ( ) ;
23022302 let len = src. bytes_left ( ) ;
0 commit comments