Scale tile dimensions in case both local decoding and scalability mode

are used in Indeo 5 stream.
Patch by Maxim ($indeo5dec_author)

Originally committed as revision 22318 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Maxim Poliakovski 2010-03-08 06:49:16 +00:00 committed by Kostya Shishkov
parent 55347a954e
commit 5f1654b25b
1 changed files with 5 additions and 0 deletions

View File

@ -256,6 +256,11 @@ int av_cold ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei
t_width = !p ? tile_width : (tile_width + 3) >> 2; t_width = !p ? tile_width : (tile_width + 3) >> 2;
t_height = !p ? tile_height : (tile_height + 3) >> 2; t_height = !p ? tile_height : (tile_height + 3) >> 2;
if (!p && planes[0].num_bands == 4) {
t_width >>= 1;
t_height >>= 1;
}
for (b = 0; b < planes[p].num_bands; b++) { for (b = 0; b < planes[p].num_bands; b++) {
band = &planes[p].bands[b]; band = &planes[p].bands[b];
x_tiles = IVI_NUM_TILES(band->width, t_width); x_tiles = IVI_NUM_TILES(band->width, t_width);