| Index: source/libvpx/vp9/common/vp9_entropy.h
|
| ===================================================================
|
| --- source/libvpx/vp9/common/vp9_entropy.h (revision 254565)
|
| +++ source/libvpx/vp9/common/vp9_entropy.h (working copy)
|
| @@ -42,7 +42,7 @@
|
|
|
| #define ENTROPY_NODES 11
|
|
|
| -extern DECLARE_ALIGNED(16, const uint8_t, vp9_pt_energy_class[ENTROPY_TOKENS]);
|
| +DECLARE_ALIGNED(16, extern const uint8_t, vp9_pt_energy_class[ENTROPY_TOKENS]);
|
|
|
| #define EOB_MODEL_TOKEN 3
|
| extern const vp9_tree_index vp9_coefmodel_tree[];
|
| @@ -116,8 +116,8 @@
|
| // This macro is currently unused but may be used by certain implementations
|
| #define MAXBAND_INDEX 21
|
|
|
| -extern DECLARE_ALIGNED(16, const uint8_t, vp9_coefband_trans_8x8plus[1024]);
|
| -extern DECLARE_ALIGNED(16, const uint8_t, vp9_coefband_trans_4x4[16]);
|
| +DECLARE_ALIGNED(16, extern const uint8_t, vp9_coefband_trans_8x8plus[1024]);
|
| +DECLARE_ALIGNED(16, extern const uint8_t, vp9_coefband_trans_4x4[16]);
|
|
|
| static INLINE const uint8_t *get_band_translate(TX_SIZE tx_size) {
|
| return tx_size == TX_4X4 ? vp9_coefband_trans_4x4
|
| @@ -177,13 +177,11 @@
|
| static const INLINE scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size,
|
| PLANE_TYPE type, int block_idx) {
|
| const MODE_INFO *const mi = xd->mi_8x8[0];
|
| - const MB_MODE_INFO *const mbmi = &mi->mbmi;
|
|
|
| - if (is_inter_block(mbmi) || type != PLANE_TYPE_Y || xd->lossless) {
|
| + if (is_inter_block(&mi->mbmi) || type != PLANE_TYPE_Y || xd->lossless) {
|
| return &vp9_default_scan_orders[tx_size];
|
| } else {
|
| - const MB_PREDICTION_MODE mode =
|
| - mbmi->sb_type < BLOCK_8X8 ? mi->bmi[block_idx].as_mode : mbmi->mode;
|
| + const MB_PREDICTION_MODE mode = get_y_mode(mi, block_idx);
|
| return &vp9_scan_orders[tx_size][mode2txfm_map[mode]];
|
| }
|
| }
|
|
|