diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-17 12:01:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-17 12:01:47 +0100 |
commit | c23d7de22ec0c14ad35d40c9073451c64a5ce74d (patch) | |
tree | d4f524dde77617c005fe8b74a60a9a19d9d5e547 | |
parent | e078549421b2845799abe878fc2a60ec89399fcc (diff) | |
parent | 84c0ece5fd9569c0f31804f02a199ecd0e7d13d8 (diff) | |
download | ffmpeg-c23d7de22ec0c14ad35d40c9073451c64a5ce74d.tar.gz |
Merge commit '84c0ece5fd9569c0f31804f02a199ecd0e7d13d8'
* commit '84c0ece5fd9569c0f31804f02a199ecd0e7d13d8':
hevc: further reduce code duplication in hls_prediction_unit()
Conflicts:
libavcodec/hevc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 275df0283f..e97bba3886 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1617,12 +1617,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, ff_hevc_luma_mv_merge_mode(s, x0, y0, nPbW, nPbH, log2_cb_size, partIdx, merge_idx, ¤t_mv); - x_pu = x0 >> s->sps->log2_min_pu_size; - y_pu = y0 >> s->sps->log2_min_pu_size; - - for (j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++) - for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++) - tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv; } else { enum InterPredIdc inter_pred_idc = PRED_L0; ff_hevc_set_neighbour_available(s, x0, y0, nPbW, nPbH); @@ -1666,14 +1660,14 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, current_mv.mv[1].x += lc->pu.mvd.x; current_mv.mv[1].y += lc->pu.mvd.y; } + } - x_pu = x0 >> s->sps->log2_min_pu_size; - y_pu = y0 >> s->sps->log2_min_pu_size; + x_pu = x0 >> s->sps->log2_min_pu_size; + y_pu = y0 >> s->sps->log2_min_pu_size; - for(j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++) - for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++) - tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv; - } + for (j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++) + for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++) + tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv; if (current_mv.pred_flag & PF_L0) { ref0 = refPicList[0].ref[current_mv.ref_idx[0]]; |