Commit 9c405d4f authored by Jingning Han's avatar Jingning Han
Browse files

Refactor pixel value access in av1_predict_intra_block

Use direct table access to fetch the transform block width and
height in the unit of pixel.

Change-Id: I80a90729bc0d078f918ffafff612fb29afa0e761
parent 2194eecb
......@@ -1579,15 +1579,14 @@ void av1_predict_intra_block(const MACROBLOCKD *xd, int wpx, int hpx,
const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type;
const struct macroblockd_plane *const pd = &xd->plane[plane];
const int txw = tx_size_wide_unit[tx_size];
const int txh = tx_size_high_unit[tx_size];
const int have_top = row_off || xd->up_available;
const int have_left = col_off || xd->left_available;
const int x = col_off * 4;
const int y = row_off * 4;
const int mi_row = -xd->mb_to_top_edge >> (3 + MI_SIZE_LOG2);
const int mi_col = -xd->mb_to_left_edge >> (3 + MI_SIZE_LOG2);
const int txwpx = 4 * txw;
const int txhpx = 4 * txh;
const int txwpx = tx_size_wide[tx_size];
const int txhpx = tx_size_high[tx_size];
// Distance between the right edge of this prediction block to
// the frame right edge
const int xr =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment