summaryrefslogtreecommitdiffstats
path: root/encoder/ih264e_api.c
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-06-10 14:15:24 +0300
committerMartin Storsjo <martin@martin.st>2015-06-27 09:28:24 +0300
commit18e256879b62e15e13fe995af2db5aee08d127be (patch)
tree513d4eceb980392ee3d83ba2c11a4227ed9d212c /encoder/ih264e_api.c
parentac694327a09789d05759421ff4a6b204e98fb356 (diff)
downloadandroid_external_libavc-18e256879b62e15e13fe995af2db5aee08d127be.tar.gz
android_external_libavc-18e256879b62e15e13fe995af2db5aee08d127be.tar.bz2
android_external_libavc-18e256879b62e15e13fe995af2db5aee08d127be.zip
Remove the now unused stride field from the set dimensions struct
Since 90a3904fd3 and d020be5ac7, this field doesn't have any actual effect - the strides are taken from the input pictures. Change-Id: I9b08cbf8ee558e038d0017a6176d7b3bd3c428bd
Diffstat (limited to 'encoder/ih264e_api.c')
-rw-r--r--encoder/ih264e_api.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/encoder/ih264e_api.c b/encoder/ih264e_api.c
index 96122de..c034681 100644
--- a/encoder/ih264e_api.c
+++ b/encoder/ih264e_api.c
@@ -1819,18 +1819,11 @@ IH264E_ERROR_T ih264e_codec_update_config(codec_t *ps_codec,
UWORD32 ht_aln = ALIGN16(ps_cfg->u4_ht);
if (ps_curr_cfg->u4_wd != wd_aln || ps_curr_cfg->u4_ht != ht_aln
- || ps_curr_cfg->u4_strd != ps_cfg->u4_strd
|| ps_curr_cfg->u4_disp_wd != ps_cfg->u4_disp_wd
|| ps_curr_cfg->u4_disp_ht != ps_cfg->u4_disp_ht)
{
ps_curr_cfg->u4_wd = wd_aln;
ps_curr_cfg->u4_ht = ht_aln;
- ps_curr_cfg->u4_strd = ps_cfg->u4_strd;
-
- if (ps_curr_cfg->u4_strd == 0)
- {
- ps_curr_cfg->u4_strd = ps_curr_cfg->u4_wd;
- }
ps_curr_cfg->u4_disp_wd = ps_cfg->u4_disp_wd;
ps_curr_cfg->u4_disp_ht = ps_cfg->u4_disp_ht;
@@ -2320,7 +2313,6 @@ static WORD32 ih264e_set_default_params(cfg_params_t *ps_cfg)
ps_cfg->u4_disp_ht = MAX_HT;
ps_cfg->u4_wd = MAX_WD;
ps_cfg->u4_ht = MAX_HT;
- ps_cfg->u4_strd = ALIGN16(MAX_WD);
ps_cfg->u4_src_frame_rate = DEFAULT_SRC_FRAME_RATE;
ps_cfg->u4_tgt_frame_rate = DEFAULT_TGT_FRAME_RATE;
ps_cfg->u4_target_bitrate = DEFAULT_BITRATE;
@@ -4667,7 +4659,6 @@ static IV_STATUS_T ih264e_set_dimensions(void *pv_api_ip,
ps_cfg->u4_wd = ALIGN16(ps_ip->s_ive_ip.u4_wd);
ps_cfg->u4_ht = ALIGN16(ps_ip->s_ive_ip.u4_ht);
- ps_cfg->u4_strd = ps_ip->s_ive_ip.u4_strd;
ps_cfg->i4_wd_mbs = ps_cfg->u4_wd >> 4;
ps_cfg->i4_ht_mbs = ps_cfg->u4_ht >> 4;
ps_cfg->u4_disp_wd = ps_ip->s_ive_ip.u4_wd;