Home
last modified time | relevance | path

Searched refs:lvl_seg (Results 1 – 4 of 4) sorted by relevance

/external/libvpx/vp8/common/
Dvp8_loopfilter.c109 int lvl_seg = default_filt_lvl; in vp8_loop_filter_frame_init() local
115 lvl_seg = mbd->segment_feature_data[MB_LVL_ALT_LF][seg]; in vp8_loop_filter_frame_init()
117 lvl_seg += mbd->segment_feature_data[MB_LVL_ALT_LF][seg]; in vp8_loop_filter_frame_init()
119 lvl_seg = (lvl_seg > 0) ? ((lvl_seg > 63) ? 63 : lvl_seg) : 0; in vp8_loop_filter_frame_init()
126 memset(lfi->lvl[seg][0], lvl_seg, 4 * 4); in vp8_loop_filter_frame_init()
134 lvl_ref = lvl_seg + mbd->ref_lf_deltas[ref]; in vp8_loop_filter_frame_init()
153 lvl_ref = lvl_seg + mbd->ref_lf_deltas[ref]; in vp8_loop_filter_frame_init()
/external/crosvm/media/cros-codecs/src/decoders/vp9/
Ddecoder.rs379 let mut lvl_seg = i32::from(lf.level()); localVariable
382 if lvl_seg == 0 {
388 lvl_seg =
391 lvl_seg +=
395 lvl_seg = Self::clamp(lvl_seg, 0, MAX_LOOP_FILTER as i32);
399 lvl_lookup = [[u8::try_from(lvl_seg)?; MAX_MODE_LF_DELTAS]; MAX_REF_FRAMES]
402 let mut intra_lvl = lvl_seg + (intra_delta << n_shift);
416 intra_lvl = lvl_seg + (ref_delta << n_shift) + (mode_delta << n_shift);
/external/libaom/av1/common/
Dav1_loopfilter.c87 int lvl_seg = clamp(delta_lf + base_level, 0, MAX_LOOP_FILTER); in av1_get_filter_level() local
92 lvl_seg = clamp(lvl_seg + data, 0, MAX_LOOP_FILTER); in av1_get_filter_level()
96 const int scale = 1 << (lvl_seg >> 5); in av1_get_filter_level()
97 lvl_seg += cm->lf.ref_deltas[mbmi->ref_frame[0]] * scale; in av1_get_filter_level()
99 lvl_seg += cm->lf.mode_deltas[mode_lf_lut[mbmi->mode]] * scale; in av1_get_filter_level()
100 lvl_seg = clamp(lvl_seg, 0, MAX_LOOP_FILTER); in av1_get_filter_level()
102 return lvl_seg; in av1_get_filter_level()
162 int lvl_seg = (dir == 0) ? filt_lvl[plane] : filt_lvl_r[plane]; in av1_loop_filter_frame_init() local
166 lvl_seg = clamp(lvl_seg + data, 0, MAX_LOOP_FILTER); in av1_loop_filter_frame_init()
172 memset(lfi->lvl[plane][seg_id][dir], lvl_seg, in av1_loop_filter_frame_init()
[all …]
/external/libvpx/vp9/common/
Dvp9_loopfilter.c269 int lvl_seg = default_filt_lvl; in vp9_loop_filter_frame_init() local
272 lvl_seg = clamp( in vp9_loop_filter_frame_init()
280 memset(lfi->lvl[seg_id], lvl_seg, sizeof(lfi->lvl[seg_id])); in vp9_loop_filter_frame_init()
283 const int intra_lvl = lvl_seg + lf->ref_deltas[INTRA_FRAME] * scale; in vp9_loop_filter_frame_init()
288 const int inter_lvl = lvl_seg + lf->ref_deltas[ref] * scale + in vp9_loop_filter_frame_init()