From: Kostya Shishkov Date: Mon, 17 Feb 2020 12:35:45 +0000 (+0100) Subject: duck/vpcommon: vp_tree! does not need to be exported X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=88c2ff6c81a4f18a7e514d20646f5e44cbe600c9;p=nihav.git duck/vpcommon: vp_tree! does not need to be exported --- diff --git a/nihav-duck/src/codecs/vpcommon.rs b/nihav-duck/src/codecs/vpcommon.rs index 9c99b2f..8dbe161 100644 --- a/nihav-duck/src/codecs/vpcommon.rs +++ b/nihav-duck/src/codecs/vpcommon.rs @@ -197,7 +197,6 @@ pub fn rescale_prob(prob: u8, weights: &[i16; 2], maxval: i32) -> u8 { ((((prob as i32) * (weights[0] as i32) + 128) >> 8) + (weights[1] as i32)).min(maxval).max(1) as u8 } -#[macro_export] macro_rules! vp_tree { ($bc: expr, $prob: expr, $node1: expr, $node2: expr) => { if !$bc.read_prob($prob) {