Move two functions to static functions in cfl.c
max_intra_block_width() and max_intra_block_height() are only used in
cfl.c
BUG=aomedia:2610
Change-Id: I13270a874b019768d9b344cdbce27ce7fb1645f5
diff --git a/av1/common/av1_common_int.h b/av1/common/av1_common_int.h
index 3b8cb13..e8149f4 100644
--- a/av1/common/av1_common_int.h
+++ b/av1/common/av1_common_int.h
@@ -1204,22 +1204,6 @@
return max_blocks_high >> MI_SIZE_LOG2;
}
-static INLINE int max_intra_block_width(const MACROBLOCKD *xd,
- BLOCK_SIZE plane_bsize, int plane,
- TX_SIZE tx_size) {
- const int max_blocks_wide = max_block_wide(xd, plane_bsize, plane)
- << MI_SIZE_LOG2;
- return ALIGN_POWER_OF_TWO(max_blocks_wide, tx_size_wide_log2[tx_size]);
-}
-
-static INLINE int max_intra_block_height(const MACROBLOCKD *xd,
- BLOCK_SIZE plane_bsize, int plane,
- TX_SIZE tx_size) {
- const int max_blocks_high = max_block_high(xd, plane_bsize, plane)
- << MI_SIZE_LOG2;
- return ALIGN_POWER_OF_TWO(max_blocks_high, tx_size_high_log2[tx_size]);
-}
-
static INLINE void av1_zero_above_context(AV1_COMMON *const cm,
const MACROBLOCKD *xd,
int mi_col_start, int mi_col_end,
diff --git a/av1/common/cfl.c b/av1/common/cfl.c
index bd66f2d..98199cb 100644
--- a/av1/common/cfl.c
+++ b/av1/common/cfl.c
@@ -403,6 +403,22 @@
cfl_store(cfl, dst, pd->dst.stride, row, col, tx_size, is_cur_buf_hbd(xd));
}
+static INLINE int max_intra_block_width(const MACROBLOCKD *xd,
+ BLOCK_SIZE plane_bsize, int plane,
+ TX_SIZE tx_size) {
+ const int max_blocks_wide = max_block_wide(xd, plane_bsize, plane)
+ << MI_SIZE_LOG2;
+ return ALIGN_POWER_OF_TWO(max_blocks_wide, tx_size_wide_log2[tx_size]);
+}
+
+static INLINE int max_intra_block_height(const MACROBLOCKD *xd,
+ BLOCK_SIZE plane_bsize, int plane,
+ TX_SIZE tx_size) {
+ const int max_blocks_high = max_block_high(xd, plane_bsize, plane)
+ << MI_SIZE_LOG2;
+ return ALIGN_POWER_OF_TWO(max_blocks_high, tx_size_high_log2[tx_size]);
+}
+
void cfl_store_block(MACROBLOCKD *const xd, BLOCK_SIZE bsize, TX_SIZE tx_size) {
CFL_CTX *const cfl = &xd->cfl;
struct macroblockd_plane *const pd = &xd->plane[AOM_PLANE_Y];