diff options
Diffstat (limited to 'image/codecs/indeo/indeo.h')
-rw-r--r-- | image/codecs/indeo/indeo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/image/codecs/indeo/indeo.h b/image/codecs/indeo/indeo.h index a786995144..c9d556a92f 100644 --- a/image/codecs/indeo/indeo.h +++ b/image/codecs/indeo/indeo.h @@ -81,6 +81,12 @@ typedef void(*ivi_mc_avg_func) (int16 *buf, const int16 *ref_buf1, #define IVI_TOSIGNED(val) (-(((val) >> 1) ^ -((val) & 1))) /** + * calculate number of macroblocks in a tile + */ +#define IVI_MBs_PER_TILE(tile_width, tile_height, mb_size) \ + ((((tile_width) + (mb_size) - 1) / (mb_size)) * (((tile_height) + (mb_size) - 1) / (mb_size))) + +/** * huffman codebook descriptor */ struct IVIHuffDesc { |