30 #define BITSTREAM_READER_LE
50 #define IVI4_PIC_SIZE_ESC 7
96 for (i = 0; i < 4; i++)
107 return size_factor == 15 ? def_size : (size_factor + 1) << 5;
119 int pic_size_indx, i, p;
134 #if IVI4_STREAM_ANALYSER
136 ctx->has_b_frames = 1;
140 #if IVI4_STREAM_ANALYSER
156 av_dlog(avctx,
"Null frame encountered!\n");
165 av_dlog(avctx,
"Password-protected clip!\n");
181 #if IVI4_STREAM_ANALYSER
182 ctx->uses_tiling = 1;
204 av_log(avctx,
AV_LOG_ERROR,
"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n",
220 for (p = 0; p <= 2; p++) {
230 "Couldn't reallocate internal structures!\n");
260 av_dlog(avctx,
"Pic hdr extension encountered!\n");
285 int plane, band_num, indx, transform_id, scan_indx;
310 #if IVI4_STREAM_ANALYSER
312 ctx->uses_fullpel = 1;
339 if ((transform_id >= 7 && transform_id <= 9) ||
340 transform_id == 17) {
345 if (transform_id < 10 && band->blk_size < 8) {
349 #if IVI4_STREAM_ANALYSER
350 if ((transform_id >= 0 && transform_id <= 2) || transform_id == 10)
358 if (transform_id < 10)
369 if (scan_indx == 15) {
373 if (scan_indx > 4 && scan_indx < 10) {
387 if (quant_mat == 31) {
398 if (old_blk_size != band->
blk_size) {
400 "The band block size does not match the configuration "
441 for (i = 0; i < band->
num_corr * 2; i++)
482 int x,
y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
593 if ( x + (mb->
mv_x >>s) + (y+ (mb->
mv_y >>s))*band->
pitch < 0 ||