Remove the codec level stride field
This field isn't used at the moment at all. The public field
ive_ctl_set_dimensions_ip_t.u4_strd is kept to avoid breaking
other calling code, although it doesn't have any actual function
any longer.
Change-Id: Icfc88846fa63f209c67b8e1f8e0cc21bc4ddb73a
diff --git a/encoder/ih264e_api.c b/encoder/ih264e_api.c
index 9d6c9ef..232a110 100644
--- a/encoder/ih264e_api.c
+++ b/encoder/ih264e_api.c
@@ -1833,7 +1833,6 @@
ps_curr_cfg->i4_wd_mbs = ps_curr_cfg->u4_wd >> 4;
ps_curr_cfg->i4_ht_mbs = ps_curr_cfg->u4_ht >> 4;
- ps_codec->i4_src_strd = ps_codec->s_cfg.u4_strd;
ps_codec->i4_rec_strd = ALIGN16(ps_cfg->u4_wd) + PAD_WD;
/* If number of MBs in a frame changes the air map also changes.
diff --git a/encoder/ih264e_structs.h b/encoder/ih264e_structs.h
index 28d907c..5d7fc6f 100644
--- a/encoder/ih264e_structs.h
+++ b/encoder/ih264e_structs.h
@@ -2005,12 +2005,6 @@
IV_COLOR_FORMAT_T e_codec_color_format;
/**
- * source stride
- * (strides for luma and chroma are the same)
- */
- WORD32 i4_src_strd;
-
- /**
* recon stride
* (strides for luma and chroma are the same)
*/
diff --git a/encoder/ih264e_utils.c b/encoder/ih264e_utils.c
index f48be5b..d6a67b6 100644
--- a/encoder/ih264e_utils.c
+++ b/encoder/ih264e_utils.c
@@ -1239,9 +1239,6 @@
ps_codec->s_cfg.u4_max_level);
}
- /* src stride */
- ps_codec->i4_src_strd = ps_codec->s_cfg.u4_strd;
-
/* recon stride */
ps_codec->i4_rec_strd = ALIGN16(ps_codec->s_cfg.u4_max_wd) + PAD_WD;
@@ -1729,10 +1726,6 @@
/* chroma rec buffer */
ps_proc->pu1_rec_buf_chroma_base = pu1_cur_pic_chroma;
- /* src stride */
- ps_proc->i4_src_strd = ps_codec->i4_src_strd;
- ps_proc->i4_src_chroma_strd = ps_codec->i4_src_strd;
-
/* rec stride */
ps_proc->i4_rec_strd = ps_codec->i4_rec_strd;
@@ -2014,9 +2007,6 @@
ps_me_ctxt->ai2_srch_boundaries[1] =
ps_codec->s_cfg.u4_srch_rng_y;
- /* src stride */
- ps_me_ctxt->i4_src_strd = ps_codec->i4_src_strd;
-
/* rec stride */
ps_me_ctxt->i4_rec_strd = ps_codec->i4_rec_strd;