diff --git a/src_base/xevd_util.c b/src_base/xevd_util.c index e81c8bf..4147f7c 100644 --- a/src_base/xevd_util.c +++ b/src_base/xevd_util.c @@ -693,10 +693,10 @@ u16 xevd_get_avail_intra(int x_scu, int y_scu, int w_scu, int h_scu, int scup, i if (x_scu > 0 && MCU_GET_COD(map_scu[scup - 1]) && map_tidx[curr_scup] == map_tidx[scup - 1]) { SET_AVAIL(avail, AVAIL_LE); - - //ETM8.0 Reference Modification - if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) - 1]) && - (map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) - 1])) + + //ETM8.0 Reference Modification + if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) - 1]) && + (map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) - 1])) { SET_AVAIL(avail, AVAIL_LO_LE); } @@ -727,9 +727,10 @@ u16 xevd_get_avail_intra(int x_scu, int y_scu, int w_scu, int h_scu, int scup, i if (x_scu + scuw < w_scu && MCU_GET_COD(map_scu[scup + scuw]) && (map_tidx[curr_scup] == map_tidx[scup + scuw])) { SET_AVAIL(avail, AVAIL_RI); - // ETM8.0 Reference Modification - if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) + scuw]) && - (map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) + scuw])) + + // ETM8.0 Reference Modification + if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) + scuw]) && + (map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) + scuw])) { SET_AVAIL(avail, AVAIL_LO_RI); } diff --git a/src_main/xevdm.c b/src_main/xevdm.c index c060070..cc6e9f1 100644 --- a/src_main/xevdm.c +++ b/src_main/xevdm.c @@ -2435,13 +2435,13 @@ int xevd_tile_eco(void * arg) xevd_threadsafe_assign(&ctx->sync_row[core->y_lcu], THREAD_TERMINATED); xevd_assert_gv(xevd_eco_tile_end_flag(bs, sbac) == 1, ret, XEVD_ERR, ERR); /*Decode zero bits at end of the picture is not required, hence commented out, - ETM 8.0 also doesnot have the support to decode zero bits at end of the frame*/ - /* If Decode of zero bits need to be added, the below code to be enabled */ + ETM 8.0 also doesnot have the support to decode zero bits at end of the frame + If Decode of zero bits need to be added, the below code to be enabled */ #if 0 if (core->tile_num == ctx->tile_cnt - 1) { - ret = xevd_eco_cabac_zero_word(bs); - xevd_assert_g(XEVD_SUCCEEDED(ret), ERR); + ret = xevd_eco_cabac_zero_word(bs); + xevd_assert_g(XEVD_SUCCEEDED(ret), ERR); } #endif break; diff --git a/src_main/xevdm_mc.c b/src_main/xevdm_mc.c index a673695..9013ec2 100644 --- a/src_main/xevdm_mc.c +++ b/src_main/xevdm_mc.c @@ -2235,7 +2235,7 @@ void xevdm_affine_mc_l(int x, int y, int pic_w, int pic_h, int cuw, int cuh, s16 { for (w = 0; w < cuw; w += sub_w) { - //ETM8.0 Reference Modification + //ETM8.0 Reference Modification mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h)); mv_scale_tmp_ver = (mv_scale_ver + dmv_hor_y * (half_w + w) + dmv_ver_y * (half_h + h)); @@ -2358,8 +2358,8 @@ void xevdm_affine_mc_lc(int x, int y, int pic_w, int pic_h, int cuw, int cuh, s1 { for (w = 0; w < cuw; w += sub_w) { - // ETM8.0 Reference Modification - mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h)); + // ETM8.0 Reference Modification + mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h)); mv_scale_tmp_ver = (mv_scale_ver + dmv_hor_y * (half_w + w) + dmv_ver_y * (half_h + h)); xevdm_mv_rounding_s32(mv_scale_tmp_hor, mv_scale_tmp_ver, &mv_scale_tmp_hor, &mv_scale_tmp_ver, shift, 0);