diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-19 15:03:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-19 15:03:42 +0200 |
commit | 3791741cf97f6803f7ec1beb8da025f1f779e845 (patch) | |
tree | cebc35efc041ab95fbb91fe77eaf459724e97761 | |
parent | e98d3a7d51da037d06f5e3c113ef7c8b69c2467a (diff) | |
parent | c9f8809ee4c576d5833865039bc1c85754448f67 (diff) | |
download | ffmpeg-3791741cf97f6803f7ec1beb8da025f1f779e845.tar.gz |
Merge commit 'c9f8809ee4c576d5833865039bc1c85754448f67'
* commit 'c9f8809ee4c576d5833865039bc1c85754448f67':
hevc/intra_pred: simplify neighboring sample derivation
Conflicts:
libavcodec/hevcpred_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevcpred_template.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c index 991e2e7bcf..66499b470c 100644 --- a/libavcodec/hevcpred_template.c +++ b/libavcodec/hevcpred_template.c @@ -168,25 +168,20 @@ do { \ top[-1] = left[-1]; } if (cand_up) - for (i = 0; i <size; i+=4) - AV_WN4P(&top[i], AV_RN4P(&POS(i, -1))); - + memcpy(top, src - stride, size * sizeof(pixel)); if (cand_up_right) { - a = PIXEL_SPLAT_X4(POS(size + top_right_size - 1, -1)); - for (i = size + top_right_size; i < (size << 1); i += 4) - AV_WN4P(&top[i], a); - for (i = size ; i < size+top_right_size; i+=4) - AV_WN4P(&top[i], AV_RN4P(&POS(i, -1))); + memcpy(top + size, src - stride + size, size * sizeof(pixel)); + EXTEND(top + size + top_right_size, POS(size + top_right_size - 1, -1), + size - top_right_size); } if (cand_left) for (i = 0; i < size; i++) left[i] = POS(-1, i); if (cand_bottom_left) { - for (i = size ; i < size+bottom_left_size; i++) + for (i = size; i < size + bottom_left_size; i++) left[i] = POS(-1, i); - a = PIXEL_SPLAT_X4(POS(-1, size + bottom_left_size - 1)); - for (i = size + bottom_left_size; i < (size << 1); i+=4) - AV_WN4P(&left[i], a); + EXTEND(left + size + bottom_left_size, POS(-1, size + bottom_left_size - 1), + size - bottom_left_size); } if (s->pps->constrained_intra_pred_flag == 1) { |