mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hevc: reorder loops
iterate over memory in a more continuous order Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
08b94f160a
commit
d1b1c3bb5e
@ -1667,8 +1667,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
|
|||||||
x_pu = x0 >> s->sps->log2_min_pu_size;
|
x_pu = x0 >> s->sps->log2_min_pu_size;
|
||||||
y_pu = y0 >> 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;
|
tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv;
|
||||||
} else { /* MODE_INTER */
|
} else { /* MODE_INTER */
|
||||||
lc->pu.merge_flag = ff_hevc_merge_flag_decode(s);
|
lc->pu.merge_flag = ff_hevc_merge_flag_decode(s);
|
||||||
@ -1683,8 +1683,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
|
|||||||
x_pu = x0 >> s->sps->log2_min_pu_size;
|
x_pu = x0 >> s->sps->log2_min_pu_size;
|
||||||
y_pu = y0 >> 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;
|
tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv;
|
||||||
} else {
|
} else {
|
||||||
enum InterPredIdc inter_pred_idc = PRED_L0;
|
enum InterPredIdc inter_pred_idc = PRED_L0;
|
||||||
@ -1732,8 +1732,8 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
|
|||||||
x_pu = x0 >> s->sps->log2_min_pu_size;
|
x_pu = x0 >> s->sps->log2_min_pu_size;
|
||||||
y_pu = y0 >> 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;
|
tab_mvf[(y_pu + j) * min_pu_width + x_pu + i] = current_mv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user