michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #ifndef VP9_COMMON_VP9_TILE_COMMON_H_ michael@0: #define VP9_COMMON_VP9_TILE_COMMON_H_ michael@0: michael@0: struct VP9Common; michael@0: michael@0: typedef struct TileInfo { michael@0: int mi_row_start, mi_row_end; michael@0: int mi_col_start, mi_col_end; michael@0: } TileInfo; michael@0: michael@0: // initializes 'tile->mi_(row|col)_(start|end)' for (row, col) based on michael@0: // 'cm->log2_tile_(rows|cols)' & 'cm->mi_(rows|cols)' michael@0: void vp9_tile_init(TileInfo *tile, const struct VP9Common *cm, michael@0: int row, int col); michael@0: michael@0: void vp9_get_tile_n_bits(int mi_cols, michael@0: int *min_log2_tile_cols, int *max_log2_tile_cols); michael@0: michael@0: #endif // VP9_COMMON_VP9_TILE_COMMON_H_