30 #define BITSTREAM_READER_LE
51 #define IVI4_PIC_SIZE_ESC 7
97 for (i = 0; i < 4; i++)
108 return size_factor == 15 ? def_size : (size_factor + 1) << 5;
120 int pic_size_indx, i, p;
135 #if IVI4_STREAM_ANALYSER
138 ctx->has_b_frames = 1;
142 #if IVI4_STREAM_ANALYSER
158 av_dlog(avctx,
"Null frame encountered!\n");
167 av_dlog(avctx,
"Password-protected clip!\n");
183 #if IVI4_STREAM_ANALYSER
184 ctx->uses_tiling = 1;
205 av_log(avctx,
AV_LOG_ERROR,
"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n",
221 for (p = 0; p <= 2; p++) {
231 "Couldn't reallocate internal structures!\n");
261 av_dlog(avctx,
"Pic hdr extension encountered!\n");
286 int plane, band_num, indx, transform_id, scan_indx;
309 #if IVI4_STREAM_ANALYSER
311 ctx->uses_fullpel = 1;
338 if ((transform_id >= 7 && transform_id <= 9) ||
339 transform_id == 17) {
344 #if IVI4_STREAM_ANALYSER
345 if ((transform_id >= 0 && transform_id <= 2) || transform_id == 10)
352 if (transform_id < 10)
361 if (scan_indx == 15) {
365 if (scan_indx > 4 && scan_indx < 10) {
404 for (i = 0; i < band->
num_corr * 2; i++)
440 int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
441 mv_scale, mb_type_bits;