Mercurial > libavcodec.hg
comparison ivi_common.c @ 11402:43ae6b3f9e15 libavcodec
Scale tile dimensions in case both local decoding and scalability mode
are used in Indeo 5 stream.
Patch by Maxim ($indeo5dec_author)
author | kostya |
---|---|
date | Mon, 08 Mar 2010 06:49:16 +0000 |
parents | ba57caf45845 |
children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
11401:e340262ba532 | 11402:43ae6b3f9e15 |
---|---|
253 IVITile *tile, *ref_tile; | 253 IVITile *tile, *ref_tile; |
254 | 254 |
255 for (p = 0; p < 3; p++) { | 255 for (p = 0; p < 3; p++) { |
256 t_width = !p ? tile_width : (tile_width + 3) >> 2; | 256 t_width = !p ? tile_width : (tile_width + 3) >> 2; |
257 t_height = !p ? tile_height : (tile_height + 3) >> 2; | 257 t_height = !p ? tile_height : (tile_height + 3) >> 2; |
258 | |
259 if (!p && planes[0].num_bands == 4) { | |
260 t_width >>= 1; | |
261 t_height >>= 1; | |
262 } | |
258 | 263 |
259 for (b = 0; b < planes[p].num_bands; b++) { | 264 for (b = 0; b < planes[p].num_bands; b++) { |
260 band = &planes[p].bands[b]; | 265 band = &planes[p].bands[b]; |
261 x_tiles = IVI_NUM_TILES(band->width, t_width); | 266 x_tiles = IVI_NUM_TILES(band->width, t_width); |
262 y_tiles = IVI_NUM_TILES(band->height, t_height); | 267 y_tiles = IVI_NUM_TILES(band->height, t_height); |