diff options
author | John Koleszar <jkoleszar@google.com> | 2013-04-11 11:14:31 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2013-04-11 12:27:37 -0700 |
commit | c2bd46bf455a4986756f75e82a08063e4d43d2a2 (patch) | |
tree | 1a79809f49ab3b2f55ddd16a3d3642d454a2e096 /vp9/common/vp9_blockd.h | |
parent | 42471f6b72c3ac3930f2a96651b806db36d0e6ca (diff) | |
download | libvpx-c2bd46bf455a4986756f75e82a08063e4d43d2a2.tar libvpx-c2bd46bf455a4986756f75e82a08063e4d43d2a2.tar.gz libvpx-c2bd46bf455a4986756f75e82a08063e4d43d2a2.tar.bz2 libvpx-c2bd46bf455a4986756f75e82a08063e4d43d2a2.zip |
tokenize: convert skippable functions
Use the common block walker to calculate skippability.
Change-Id: I6721e42f065df237426c91c1d871ec226ba7cdcb
Diffstat (limited to 'vp9/common/vp9_blockd.h')
-rw-r--r-- | vp9/common/vp9_blockd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h index 298701959..29d1bbc76 100644 --- a/vp9/common/vp9_blockd.h +++ b/vp9/common/vp9_blockd.h @@ -831,4 +831,19 @@ static INLINE void foreach_transformed_block( } } +static INLINE void foreach_transformed_block_uv( + const MACROBLOCKD* const xd, int block_size, + foreach_transformed_block_visitor visit, void *arg) { + const MB_PREDICTION_MODE mode = xd->mode_info_context->mbmi.mode; + const int is_split = + xd->mode_info_context->mbmi.txfm_size == TX_8X8 && + (mode == I8X8_PRED || mode == SPLITMV); + int plane; + + for (plane = 1; plane < MAX_MB_PLANE; plane++) { + foreach_transformed_block_in_plane(xd, block_size, plane, is_split, + visit, arg); + } +} + #endif // VP9_COMMON_VP9_BLOCKD_H_ |