| Index: source/libvpx/vp9/common/vp9_blockd.h
|
| ===================================================================
|
| --- source/libvpx/vp9/common/vp9_blockd.h (revision 254565)
|
| +++ source/libvpx/vp9/common/vp9_blockd.h (working copy)
|
| @@ -144,6 +144,11 @@
|
| b_mode_info bmi[4];
|
| } MODE_INFO;
|
|
|
| +static INLINE MB_PREDICTION_MODE get_y_mode(const MODE_INFO *mi, int block) {
|
| + return mi->mbmi.sb_type < BLOCK_8X8 ? mi->bmi[block].as_mode
|
| + : mi->mbmi.mode;
|
| +}
|
| +
|
| static INLINE int is_inter_block(const MB_MODE_INFO *mbmi) {
|
| return mbmi->ref_frame[0] > INTRA_FRAME;
|
| }
|
| @@ -255,13 +260,11 @@
|
| static INLINE TX_TYPE get_tx_type_4x4(PLANE_TYPE plane_type,
|
| const MACROBLOCKD *xd, int ib) {
|
| const MODE_INFO *const mi = xd->mi_8x8[0];
|
| - const MB_MODE_INFO *const mbmi = &mi->mbmi;
|
|
|
| - if (plane_type != PLANE_TYPE_Y || xd->lossless || is_inter_block(mbmi))
|
| + if (plane_type != PLANE_TYPE_Y || xd->lossless || is_inter_block(&mi->mbmi))
|
| return DCT_DCT;
|
|
|
| - return mode2txfm_map[mbmi->sb_type < BLOCK_8X8 ? mi->bmi[ib].as_mode
|
| - : mbmi->mode];
|
| + return mode2txfm_map[get_y_mode(mi, ib)];
|
| }
|
|
|
| static INLINE TX_TYPE get_tx_type_8x8(PLANE_TYPE plane_type,
|
| @@ -328,13 +331,6 @@
|
| BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
|
| int aoff, int loff);
|
|
|
| -
|
| -static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id,
|
| - TX_SIZE tx_size) {
|
| - const int eob_max = 16 << (tx_size << 1);
|
| - return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max;
|
| -}
|
| -
|
| #ifdef __cplusplus
|
| } // extern "C"
|
| #endif
|
|
|