diff options
author | Martin Storsjo <martin@martin.st> | 2015-06-09 16:25:51 +0300 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-06-25 08:25:49 -0700 |
commit | 9113f5615cb4b2be179b288a59324de723d2ec9a (patch) | |
tree | 0e321d28de80066fc7e634e7df30b8270cca858c /encoder/ih264e_utils.c | |
parent | bc8456b296416f862624abb539d74a06a6b36e0e (diff) | |
download | android_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_utils.c')
-rw-r--r-- | encoder/ih264e_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/encoder/ih264e_utils.c b/encoder/ih264e_utils.c index 74fd001..f48be5b 100644 --- a/encoder/ih264e_utils.c +++ b/encoder/ih264e_utils.c @@ -1731,6 +1731,7 @@ IH264E_ERROR_T ih264e_pic_init(codec_t *ps_codec, inp_buf_t *ps_inp_buf) /* 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; |