Skip to content

Commit

Permalink
Fixed minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Gadgil committed Nov 26, 2024
1 parent e2b338c commit f02dddf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
15 changes: 8 additions & 7 deletions src_base/xevd_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
8 changes: 4 additions & 4 deletions src_main/xevdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src_main/xevdm_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f02dddf

Please sign in to comment.