| Index: source/libvpx/vp9/common/vp9_loopfilter.c
|
| ===================================================================
|
| --- source/libvpx/vp9/common/vp9_loopfilter.c (revision 254565)
|
| +++ source/libvpx/vp9/common/vp9_loopfilter.c (working copy)
|
| @@ -262,9 +262,9 @@
|
| int lvl_seg = default_filt_lvl;
|
| if (vp9_segfeature_active(seg, seg_id, SEG_LVL_ALT_LF)) {
|
| const int data = vp9_get_segdata(seg, seg_id, SEG_LVL_ALT_LF);
|
| - lvl_seg = seg->abs_delta == SEGMENT_ABSDATA
|
| - ? data
|
| - : clamp(default_filt_lvl + data, 0, MAX_LOOP_FILTER);
|
| + lvl_seg = clamp(seg->abs_delta == SEGMENT_ABSDATA ?
|
| + data : default_filt_lvl + data,
|
| + 0, MAX_LOOP_FILTER);
|
| }
|
|
|
| if (!lf->mode_ref_delta_enabled) {
|
| @@ -868,7 +868,6 @@
|
| assert(!(lfm->int_4x4_uv & lfm->above_uv[TX_16X16]));
|
| }
|
|
|
| -#if CONFIG_NON420
|
| static uint8_t build_lfi(const loop_filter_info_n *lfi_n,
|
| const MB_MODE_INFO *mbmi) {
|
| const int seg = mbmi->segment_id;
|
| @@ -1046,7 +1045,6 @@
|
| dst->buf += 8 * dst->stride;
|
| }
|
| }
|
| -#endif
|
|
|
| void vp9_filter_block_plane(VP9_COMMON *const cm,
|
| struct macroblockd_plane *const plane,
|
| @@ -1206,10 +1204,8 @@
|
| const int num_planes = y_only ? 1 : MAX_MB_PLANE;
|
| int mi_row, mi_col;
|
| LOOP_FILTER_MASK lfm;
|
| -#if CONFIG_NON420
|
| int use_420 = y_only || (xd->plane[1].subsampling_y == 1 &&
|
| xd->plane[1].subsampling_x == 1);
|
| -#endif
|
|
|
| for (mi_row = start; mi_row < stop; mi_row += MI_BLOCK_SIZE) {
|
| MODE_INFO **mi_8x8 = cm->mi_grid_visible + mi_row * cm->mode_info_stride;
|
| @@ -1220,22 +1216,16 @@
|
| setup_dst_planes(xd, frame_buffer, mi_row, mi_col);
|
|
|
| // TODO(JBB): Make setup_mask work for non 420.
|
| -#if CONFIG_NON420
|
| if (use_420)
|
| -#endif
|
| vp9_setup_mask(cm, mi_row, mi_col, mi_8x8 + mi_col,
|
| cm->mode_info_stride, &lfm);
|
|
|
| for (plane = 0; plane < num_planes; ++plane) {
|
| -#if CONFIG_NON420
|
| if (use_420)
|
| -#endif
|
| vp9_filter_block_plane(cm, &xd->plane[plane], mi_row, &lfm);
|
| -#if CONFIG_NON420
|
| else
|
| filter_block_plane_non420(cm, &xd->plane[plane], mi_8x8 + mi_col,
|
| mi_row, mi_col);
|
| -#endif
|
| }
|
| }
|
| }
|
|
|