30 #define BITSTREAM_READER_LE
49 #define IVI5_PIC_SIZE_ESC 15
62 int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable;
63 int quant_mat, blk_size_changed = 0;
75 if (tile_size > 256) {
86 av_log(avctx,
AV_LOG_ERROR,
"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n",
124 blk_size_changed = 1;
127 for (p = 0; p <= 1; p++) {
135 mb_size = blk_size << !mb_size;
137 if (p==0 && blk_size==4) {
142 blk_size_changed = mb_size != band->
mb_size || blk_size != band->
blk_size;
143 if (blk_size_changed) {
154 switch ((p << 2) + i) {
196 quant_mat = (pic_conf.
luma_bands > 1) ? i+1 : 0;
246 if (blk_size_changed) {
251 "Couldn't reallocate internal structures!\n");
274 }
while (i & 0x8000);
377 if (band_flags & 1) {
391 if (band_flags & 0x10) {
400 for (i = 0; i < band->
num_corr * 2; i++)
418 if (band_flags & 0x20) {
442 int x, y, mv_x, mv_y, mv_delta, offs, mb_offset,
443 mv_scale, blks_per_mb, s;
551 if ( x + (mb->
mv_x >>s) + (y+ (mb->
mv_y >>s))*band->
pitch < 0 ||