From 09a97bb662aca57a405837f48c15e265a309b887 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 14 Oct 2024 18:14:48 +0200 Subject: [PATCH] codec-support/h263: make H263RLSym and H263RLCodeDesc public This will allow creating codebooks of this type in other crates. --- nihav-codec-support/src/codecs/h263/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nihav-codec-support/src/codecs/h263/data.rs b/nihav-codec-support/src/codecs/h263/data.rs index 40d5cc8..bfecfe4 100644 --- a/nihav-codec-support/src/codecs/h263/data.rs +++ b/nihav-codec-support/src/codecs/h263/data.rs @@ -116,7 +116,7 @@ impl CodebookDescReader for H263ShortCodeReader { } #[derive(Clone,Copy)] -pub struct H263RLSym { run: u8, level: i8 } +pub struct H263RLSym { pub run: u8, pub level: i8 } impl H263RLSym { pub fn get_run(self) -> u8 { self.run } pub fn is_last(self) -> bool { self.level < 0 } @@ -124,7 +124,7 @@ impl H263RLSym { pub fn get_level(self) -> i16 { if self.level < 0 { -self.level as i16 } else { self.level as i16 } } } -pub struct H263RLCodeDesc { code: u8, bits: u8, sym: H263RLSym } +pub struct H263RLCodeDesc { pub code: u8, pub bits: u8, pub sym: H263RLSym } macro_rules! rlcodes{ ($(($c:expr, $b:expr, $r:expr, $l:expr)),*) => { -- 2.39.5