Lines Matching refs:bundle
126 Bundle bundle[BINKB_NB_SRC]; ///< bundles for decoding all data types member
158 c->bundle[BINK_SRC_BLOCK_TYPES].len = av_log2((width >> 3) + 511) + 1; in init_lengths()
160 c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1; in init_lengths()
162 c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1; in init_lengths()
164 c->bundle[BINK_SRC_INTRA_DC].len = in init_lengths()
165 c->bundle[BINK_SRC_INTER_DC].len = in init_lengths()
166 c->bundle[BINK_SRC_X_OFF].len = in init_lengths()
167 c->bundle[BINK_SRC_Y_OFF].len = av_log2((width >> 3) + 511) + 1; in init_lengths()
169 c->bundle[BINK_SRC_PATTERN].len = av_log2((bw << 3) + 511) + 1; in init_lengths()
171 c->bundle[BINK_SRC_RUN].len = av_log2(bw*48 + 511) + 1; in init_lengths()
193 c->bundle[i].data = tmp; in init_bundles()
195 c->bundle[i].data_end = tmp; in init_bundles()
208 av_freep(&c->bundle[0].data); in free_bundles()
304 int ret = read_tree(gb, &c->bundle[bundle_num].tree); in read_bundle()
308 c->bundle[bundle_num].cur_dec = in read_bundle()
309 c->bundle[bundle_num].cur_ptr = c->bundle[bundle_num].data; in read_bundle()
556 static inline int get_value(BinkContext *c, int bundle) in get_value() argument
560 if (bundle < BINK_SRC_X_OFF || bundle == BINK_SRC_RUN) in get_value()
561 return *c->bundle[bundle].cur_ptr++; in get_value()
562 if (bundle == BINK_SRC_X_OFF || bundle == BINK_SRC_Y_OFF) in get_value()
563 return (int8_t)*c->bundle[bundle].cur_ptr++; in get_value()
564 ret = *(int16_t*)c->bundle[bundle].cur_ptr; in get_value()
565 c->bundle[bundle].cur_ptr += 2; in get_value()
571 c->bundle[bundle_num].cur_dec = in binkb_init_bundle()
572 c->bundle[bundle_num].cur_ptr = c->bundle[bundle_num].data; in binkb_init_bundle()
573 c->bundle[bundle_num].len = 13; in binkb_init_bundle()
588 Bundle *b = &c->bundle[bundle_num]; in binkb_read_bundle()
623 int val = *c->bundle[bundle_num].cur_ptr++; in binkb_get_value()
626 ret = *(int16_t*)c->bundle[bundle_num].cur_ptr; in binkb_get_value()
627 c->bundle[bundle_num].cur_ptr += 2; in binkb_get_value()
986 memcpy(dst + i*stride, c->bundle[BINKB_SRC_COLORS].cur_ptr + i*8, 8); in binkb_decode_plane()
987 c->bundle[BINKB_SRC_COLORS].cur_ptr += 64; in binkb_decode_plane()
1064 if ((ret = read_block_types(c->avctx, gb, &c->bundle[BINK_SRC_BLOCK_TYPES])) < 0) in bink_decode_plane()
1066 if ((ret = read_block_types(c->avctx, gb, &c->bundle[BINK_SRC_SUB_BLOCK_TYPES])) < 0) in bink_decode_plane()
1068 if ((ret = read_colors(gb, &c->bundle[BINK_SRC_COLORS], c)) < 0) in bink_decode_plane()
1070 if ((ret = read_patterns(c->avctx, gb, &c->bundle[BINK_SRC_PATTERN])) < 0) in bink_decode_plane()
1072 if ((ret = read_motion_values(c->avctx, gb, &c->bundle[BINK_SRC_X_OFF])) < 0) in bink_decode_plane()
1074 if ((ret = read_motion_values(c->avctx, gb, &c->bundle[BINK_SRC_Y_OFF])) < 0) in bink_decode_plane()
1076 if ((ret = read_dcs(c->avctx, gb, &c->bundle[BINK_SRC_INTRA_DC], DC_START_BITS, 0)) < 0) in bink_decode_plane()
1078 if ((ret = read_dcs(c->avctx, gb, &c->bundle[BINK_SRC_INTER_DC], DC_START_BITS, 1)) < 0) in bink_decode_plane()
1080 if ((ret = read_runs(c->avctx, gb, &c->bundle[BINK_SRC_RUN])) < 0) in bink_decode_plane()
1237 memcpy(dst + i*stride, c->bundle[BINK_SRC_COLORS].cur_ptr + i*8, 8); in bink_decode_plane()
1238 c->bundle[BINK_SRC_COLORS].cur_ptr += 64; in bink_decode_plane()