Skip to content

Commit f02dddf

Browse files
author
Neeraj Gadgil
committed
Fixed minor formatting
1 parent e2b338c commit f02dddf

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

src_base/xevd_util.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,10 @@ u16 xevd_get_avail_intra(int x_scu, int y_scu, int w_scu, int h_scu, int scup, i
693693
if (x_scu > 0 && MCU_GET_COD(map_scu[scup - 1]) && map_tidx[curr_scup] == map_tidx[scup - 1])
694694
{
695695
SET_AVAIL(avail, AVAIL_LE);
696-
697-
//ETM8.0 Reference Modification
698-
if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) - 1]) &&
699-
(map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) - 1]))
696+
697+
//ETM8.0 Reference Modification
698+
if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) - 1]) &&
699+
(map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) - 1]))
700700
{
701701
SET_AVAIL(avail, AVAIL_LO_LE);
702702
}
@@ -727,9 +727,10 @@ u16 xevd_get_avail_intra(int x_scu, int y_scu, int w_scu, int h_scu, int scup, i
727727
if (x_scu + scuw < w_scu && MCU_GET_COD(map_scu[scup + scuw]) && (map_tidx[curr_scup] == map_tidx[scup + scuw]))
728728
{
729729
SET_AVAIL(avail, AVAIL_RI);
730-
// ETM8.0 Reference Modification
731-
if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) + scuw]) &&
732-
(map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) + scuw]))
730+
731+
// ETM8.0 Reference Modification
732+
if(y_scu + scuh < h_scu && MCU_GET_COD(map_scu[scup + (w_scu * scuh) + scuw]) &&
733+
(map_tidx[curr_scup] == map_tidx[scup + (w_scu * scuh) + scuw]))
733734
{
734735
SET_AVAIL(avail, AVAIL_LO_RI);
735736
}

src_main/xevdm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,13 +2435,13 @@ int xevd_tile_eco(void * arg)
24352435
xevd_threadsafe_assign(&ctx->sync_row[core->y_lcu], THREAD_TERMINATED);
24362436
xevd_assert_gv(xevd_eco_tile_end_flag(bs, sbac) == 1, ret, XEVD_ERR, ERR);
24372437
/*Decode zero bits at end of the picture is not required, hence commented out,
2438-
ETM 8.0 also doesnot have the support to decode zero bits at end of the frame*/
2439-
/* If Decode of zero bits need to be added, the below code to be enabled */
2438+
ETM 8.0 also doesnot have the support to decode zero bits at end of the frame
2439+
If Decode of zero bits need to be added, the below code to be enabled */
24402440
#if 0
24412441
if (core->tile_num == ctx->tile_cnt - 1)
24422442
{
2443-
ret = xevd_eco_cabac_zero_word(bs);
2444-
xevd_assert_g(XEVD_SUCCEEDED(ret), ERR);
2443+
ret = xevd_eco_cabac_zero_word(bs);
2444+
xevd_assert_g(XEVD_SUCCEEDED(ret), ERR);
24452445
}
24462446
#endif
24472447
break;

src_main/xevdm_mc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ void xevdm_affine_mc_l(int x, int y, int pic_w, int pic_h, int cuw, int cuh, s16
22352235
{
22362236
for (w = 0; w < cuw; w += sub_w)
22372237
{
2238-
//ETM8.0 Reference Modification
2238+
//ETM8.0 Reference Modification
22392239
mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h));
22402240
mv_scale_tmp_ver = (mv_scale_ver + dmv_hor_y * (half_w + w) + dmv_ver_y * (half_h + h));
22412241

@@ -2358,8 +2358,8 @@ void xevdm_affine_mc_lc(int x, int y, int pic_w, int pic_h, int cuw, int cuh, s1
23582358
{
23592359
for (w = 0; w < cuw; w += sub_w)
23602360
{
2361-
// ETM8.0 Reference Modification
2362-
mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h));
2361+
// ETM8.0 Reference Modification
2362+
mv_scale_tmp_hor = (mv_scale_hor + dmv_hor_x * (half_w + w) + dmv_ver_x * (half_h + h));
23632363
mv_scale_tmp_ver = (mv_scale_ver + dmv_hor_y * (half_w + w) + dmv_ver_y * (half_h + h));
23642364

23652365
xevdm_mv_rounding_s32(mv_scale_tmp_hor, mv_scale_tmp_ver, &mv_scale_tmp_hor, &mv_scale_tmp_ver, shift, 0);

0 commit comments

Comments
 (0)