use nihav_codec_support::codecs::ZERO_MV;
use super::super::vp78::PredMode;
use super::super::vp78dsp::*;
+use super::super::vp7data::HIGH_EDGE_VAR_THR;
use super::super::vp7dsp::*;
use super::blocks::*;
use super::coder::*;
}
fn loop_filter_mb(dframe: &mut NASimpleVideoFrame<u8>, mb_x: usize, mb_y: usize, loop_str: u8, loop_params: &LoopParams, is_intra: bool) {
- const HIGH_EDGE_VAR_THR: [[u8; 64]; 2] = [
- [
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
- 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
- ], [
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
- ]];
-
let edge_thr = i16::from(loop_str) + 2;
let luma_thr = i16::from(loop_str);
let chroma_thr = i16::from(loop_str) * 2;
+use super::super::vp7data::DEFAULT_MV_PROBS;
use super::super::vp78data::*;
pub use crate::codecs::vpenc::models::*;
pub feature_tree_probs: [[u8; 3]; 4],
}
-const DEFAULT_MV_PROBS: [[u8; 17]; 2] = [
- [ 162, 128, 225, 146, 172, 147, 214, 39, 156, 247, 210, 135, 68, 138, 220, 239, 246 ],
- [ 164, 128, 204, 170, 119, 235, 140, 230, 228, 244, 184, 201, 44, 173, 221, 239, 253 ]
-];
-
impl VP7Models {
pub fn new() -> Self {
let mut obj: Self = unsafe { std::mem::zeroed() };