summaryrefslogtreecommitdiffstats
path: root/encoder/ih264e_core_coding.c
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-06-09 16:25:51 +0300
committerMarco Nelissen <marcone@google.com>2015-06-25 08:25:49 -0700
commit9113f5615cb4b2be179b288a59324de723d2ec9a (patch)
tree0e321d28de80066fc7e634e7df30b8270cca858c /encoder/ih264e_core_coding.c
parentbc8456b296416f862624abb539d74a06a6b36e0e (diff)
downloadandroid_external_libavc-9113f5615cb4b2be179b288a59324de723d2ec9a.tar.gz
android_external_libavc-9113f5615cb4b2be179b288a59324de723d2ec9a.tar.bz2
android_external_libavc-9113f5615cb4b2be179b288a59324de723d2ec9a.zip
Use a separate field for the chroma stride
When both luma and chroma are copied to the local buffer (either due to yuv format conversion, or due to padding), they have got the same stride, but if chroma is copied while luma is used directly from the input buffer, they might have different strides. Therefore add a separate field for chroma stride. This commit only adds the field, while it still has got the same value as before. Change-Id: I0dce97ad4d91cd1d9aba4b4472c6a0de45a314bc
Diffstat (limited to 'encoder/ih264e_core_coding.c')
-rw-r--r--encoder/ih264e_core_coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoder/ih264e_core_coding.c b/encoder/ih264e_core_coding.c
index 05a891d..76266d7 100644
--- a/encoder/ih264e_core_coding.c
+++ b/encoder/ih264e_core_coding.c
@@ -2022,7 +2022,7 @@ UWORD8 ih264e_code_chroma_intra_macroblock_8x8(process_ctxt_t *ps_proc)
WORD16 *pi2_res_mb = ps_proc->pi2_res_buf;
/* strides */
- WORD32 i4_src_strd = ps_proc->i4_src_strd;
+ WORD32 i4_src_strd = ps_proc->i4_src_chroma_strd;
WORD32 i4_rec_strd = ps_proc->i4_rec_strd;
WORD32 i4_pred_strd = ps_proc->i4_pred_strd;
WORD32 i4_res_strd = ps_proc->i4_res_strd;
@@ -2284,7 +2284,7 @@ UWORD8 ih264e_code_chroma_inter_macroblock_8x8(process_ctxt_t *ps_proc)
WORD16 *pi2_res_mb = ps_proc->pi2_res_buf;
/* strides */
- WORD32 i4_src_strd = ps_proc->i4_src_strd;
+ WORD32 i4_src_strd = ps_proc->i4_src_chroma_strd;
WORD32 i4_rec_strd = ps_proc->i4_rec_strd;
WORD32 i4_pred_strd = ps_proc->i4_pred_strd;
WORD32 i4_res_strd = ps_proc->i4_res_strd;