[FFmpeg-devel] [PATCH 9/9] hevc: reorder loops
Christophe Gisquet
christophe.gisquet at gmail.com
Thu Jul 10 08:47:56 CEST 2014
---
libavcodec/hevc.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index f2bbe91..873f1dc 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -1452,8 +1452,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
x_pu = x0 >> s->sps->log2_min_pu_size;
y_pu = y0 >> s->sps->log2_min_pu_size;
- for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++)
- for (j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++)
+ 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 { /* MODE_INTER */
lc->pu.merge_flag = ff_hevc_merge_flag_decode(s);
@@ -1468,8 +1468,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
x_pu = x0 >> s->sps->log2_min_pu_size;
y_pu = y0 >> s->sps->log2_min_pu_size;
- for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++)
- for (j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++)
+ 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;
@@ -1517,8 +1517,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
x_pu = x0 >> s->sps->log2_min_pu_size;
y_pu = y0 >> s->sps->log2_min_pu_size;
- for (i = 0; i < nPbW >> s->sps->log2_min_pu_size; i++)
- for(j = 0; j < nPbH >> s->sps->log2_min_pu_size; j++)
+ 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;
}
}
--
1.9.2.msysgit.0
More information about the ffmpeg-devel
mailing list