From 88c2ff6c81a4f18a7e514d20646f5e44cbe600c9 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 17 Feb 2020 13:35:45 +0100 Subject: [PATCH] duck/vpcommon: vp_tree! does not need to be exported --- nihav-duck/src/codecs/vpcommon.rs | 1 - 1 file changed, 1 deletion(-) 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) { -- 2.39.5