diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-07-16 14:47:15 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-07-16 14:47:15 -0700 |
commit | 9482a0bf10773358bff7bc10c413eea780f97ab1 (patch) | |
tree | 6cc44c29d266f34414d49a454dc03a2ebfb12c60 /vp9/encoder/vp9_segmentation.c | |
parent | 98e132bde099c760289ba1dc8b1ae06183ec611d (diff) | |
download | libvpx-9482a0bf10773358bff7bc10c413eea780f97ab1.tar libvpx-9482a0bf10773358bff7bc10c413eea780f97ab1.tar.gz libvpx-9482a0bf10773358bff7bc10c413eea780f97ab1.tar.bz2 libvpx-9482a0bf10773358bff7bc10c413eea780f97ab1.zip |
Cleaning up tile code.
Removing tile_rows and tile_columns from VP9Common, removing redundant
constants MIN_TILE_WIDTH and MAX_TILE_WIDTH, changing signature of
vp9_get_tile_n_bits.
Change-Id: I8ff3104a38179b2c6900df965c144c1d6f602267
Diffstat (limited to 'vp9/encoder/vp9_segmentation.c')
-rw-r--r-- | vp9/encoder/vp9_segmentation.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/vp9/encoder/vp9_segmentation.c b/vp9/encoder/vp9_segmentation.c index cd7eb17b2..8d5b3860c 100644 --- a/vp9/encoder/vp9_segmentation.c +++ b/vp9/encoder/vp9_segmentation.c @@ -216,8 +216,7 @@ void vp9_choose_segmap_coding_method(VP9_COMP *cpi) { int no_pred_cost; int t_pred_cost = INT_MAX; - int i; - int tile_col, mi_row, mi_col; + int i, tile_col, mi_row, mi_col; int temporal_predictor_count[PREDICTION_PROBS][2]; int no_pred_segcounts[MAX_MB_SEGMENTS]; @@ -241,18 +240,16 @@ void vp9_choose_segmap_coding_method(VP9_COMP *cpi) { // First of all generate stats regarding how well the last segment map // predicts this one - for (tile_col = 0; tile_col < cm->tile_columns; tile_col++) { + for (tile_col = 0; tile_col < 1 << cm->log2_tile_cols; tile_col++) { vp9_get_tile_col_offsets(cm, tile_col); mi_ptr = cm->mi + cm->cur_tile_mi_col_start; for (mi_row = 0; mi_row < cm->mi_rows; mi_row += 8, mi_ptr += 8 * mis) { mi = mi_ptr; - for (mi_col = cm->cur_tile_mi_col_start; - mi_col < cm->cur_tile_mi_col_end; - mi_col += 8, mi += 8) { + for (mi_col = cm->cur_tile_mi_col_start; mi_col < cm->cur_tile_mi_col_end; + mi_col += 8, mi += 8) count_segs_sb(cpi, mi, no_pred_segcounts, temporal_predictor_count, t_unpred_seg_counts, mi_row, mi_col, BLOCK_SIZE_SB64X64); - } } } |