| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef VP9_COMMON_VP9_TILE_COMMON_H_ | 11 #ifndef VP9_COMMON_VP9_TILE_COMMON_H_ |
| 12 #define VP9_COMMON_VP9_TILE_COMMON_H_ | 12 #define VP9_COMMON_VP9_TILE_COMMON_H_ |
| 13 | 13 |
| 14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
| 15 extern "C" { | 15 extern "C" { |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 struct VP9Common; | 18 struct VP9Common; |
| 19 | 19 |
| 20 typedef struct TileInfo { | 20 typedef struct TileInfo { |
| 21 int mi_row_start, mi_row_end; | 21 int mi_row_start, mi_row_end; |
| 22 int mi_col_start, mi_col_end; | 22 int mi_col_start, mi_col_end; |
| 23 } TileInfo; | 23 } TileInfo; |
| 24 | 24 |
| 25 // initializes 'tile->mi_(row|col)_(start|end)' for (row, col) based on | 25 // initializes 'tile->mi_(row|col)_(start|end)' for (row, col) based on |
| 26 // 'cm->log2_tile_(rows|cols)' & 'cm->mi_(rows|cols)' | 26 // 'cm->log2_tile_(rows|cols)' & 'cm->mi_(rows|cols)' |
| 27 void vp9_tile_init(TileInfo *tile, const struct VP9Common *cm, | 27 void vp9_tile_init(TileInfo *tile, const struct VP9Common *cm, |
| 28 int row, int col); | 28 int row, int col); |
| 29 | 29 |
| 30 void vp9_tile_set_row(TileInfo *tile, const struct VP9Common *cm, int row); |
| 31 void vp9_tile_set_col(TileInfo *tile, const struct VP9Common *cm, int col); |
| 32 |
| 30 void vp9_get_tile_n_bits(int mi_cols, | 33 void vp9_get_tile_n_bits(int mi_cols, |
| 31 int *min_log2_tile_cols, int *max_log2_tile_cols); | 34 int *min_log2_tile_cols, int *max_log2_tile_cols); |
| 32 | 35 |
| 33 #ifdef __cplusplus | 36 #ifdef __cplusplus |
| 34 } // extern "C" | 37 } // extern "C" |
| 35 #endif | 38 #endif |
| 36 | 39 |
| 37 #endif // VP9_COMMON_VP9_TILE_COMMON_H_ | 40 #endif // VP9_COMMON_VP9_TILE_COMMON_H_ |
| OLD | NEW |