@@ -2206,7 +2206,7 @@ impl<T> Drop for BMFFBox<'_, T> {
2206
2206
/// skip unknown or uninteresting boxes.
2207
2207
///
2208
2208
/// 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 > {
2210
2210
let size32 = be_u32 ( src) ?;
2211
2211
let name = BoxType :: from ( be_u32 ( src) ?) ;
2212
2212
let size = match size32 {
@@ -2258,7 +2258,7 @@ fn read_box_header<T: ReadBytesExt>(src: &mut T) -> Result<BoxHeader> {
2258
2258
}
2259
2259
2260
2260
/// 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 ) > {
2262
2262
let version = src. read_u8 ( ) ?;
2263
2263
let flags_a = src. read_u8 ( ) ?;
2264
2264
let flags_b = src. read_u8 ( ) ?;
@@ -2270,7 +2270,7 @@ fn read_fullbox_extra<T: ReadBytesExt>(src: &mut T) -> Result<(u8, u32)> {
2270
2270
}
2271
2271
2272
2272
// 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 > {
2274
2274
let ( version, flags) = read_fullbox_extra ( src) ?;
2275
2275
2276
2276
if flags != 0 {
@@ -2281,7 +2281,7 @@ fn read_fullbox_version_no_flags<T: ReadBytesExt>(src: &mut T) -> Result<u8> {
2281
2281
}
2282
2282
2283
2283
/// 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 < ( ) > {
2285
2285
// Skip the contents of unknown chunks.
2286
2286
let to_skip = {
2287
2287
let header = src. get_header ( ) ;
@@ -2296,7 +2296,7 @@ fn skip_box_content<T: Read>(src: &mut BMFFBox<T>) -> Result<()> {
2296
2296
}
2297
2297
2298
2298
/// 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 < ( ) > {
2300
2300
let remain = {
2301
2301
let header = src. get_header ( ) ;
2302
2302
let len = src. bytes_left ( ) ;
0 commit comments