30 #define BITSTREAM_READER_LE
37 #define IVI4_PIC_SIZE_ESC 7
83 for (i = 0; i < 4; i++)
94 return size_factor == 15 ? def_size : (size_factor + 1) << 5;
106 int pic_size_indx, i, p;
121 #if IVI4_STREAM_ANALYSER
123 ctx->has_b_frames = 1;
127 #if IVI4_STREAM_ANALYSER
143 av_dlog(avctx,
"Null frame encountered!\n");
152 av_dlog(avctx,
"Password-protected clip!\n");
168 #if IVI4_STREAM_ANALYSER
169 ctx->uses_tiling = 1;
191 av_log(avctx,
AV_LOG_ERROR,
"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n",
207 for (p = 0; p <= 2; p++) {
217 "Couldn't reallocate internal structures!\n");
247 av_dlog(avctx,
"Pic hdr extension encountered!\n");
272 int plane, band_num, indx, transform_id, scan_indx;
297 #if IVI4_STREAM_ANALYSER
299 ctx->uses_fullpel = 1;
326 if ((transform_id >= 7 && transform_id <= 9) ||
327 transform_id == 17) {
332 if (transform_id < 10 && band->blk_size < 8) {
336 #if IVI4_STREAM_ANALYSER
337 if ((transform_id >= 0 && transform_id <= 2) || transform_id == 10)
345 if (transform_id < 10)
356 if (scan_indx == 15) {
360 if (scan_indx > 4 && scan_indx < 10) {
374 if (quant_mat == 31) {
385 if (old_blk_size != band->
blk_size) {
387 "The band block size does not match the configuration "
428 for (i = 0; i < band->
num_corr * 2; i++)
469 int x,
y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
600 if ( x + (mb->
mv_x >>s) + (y+ (mb->
mv_y >>s))*band->
pitch < 0 ||
629 int is_prev_ref = 0, is_ref = 0;
647 if (is_prev_ref && is_ref) {
649 }
else if (is_prev_ref) {