• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching defs:band

63     IVIBandDesc     *band, *band1, *band2;
128 band = &ctx->planes[p].bands[i];
130 band->is_halfpel = get_bits1(&ctx->gb);
141 blk_size_changed = mb_size != band->mb_size || blk_size != band->blk_size;
143 band->mb_size = mb_size;
144 band->blk_size = blk_size;
152 /* select transform function and scan pattern according to plane and band number */
155 band->inv_transform = ff_ivi_inverse_slant_8x8;
156 band->dc_transform = ff_ivi_dc_slant_2d;
157 band->scan = ff_zigzag_direct;
158 band->transform_size = 8;
162 band->inv_transform = ff_ivi_row_slant8;
163 band->dc_transform = ff_ivi_dc_row_slant;
164 band->scan = ff_ivi_vertical_scan_8x8;
165 band->transform_size = 8;
169 band->inv_transform = ff_ivi_col_slant8;
170 band->dc_transform = ff_ivi_dc_col_slant;
171 band->scan = ff_ivi_horizontal_scan_8x8;
172 band->transform_size = 8;
176 band->inv_transform = ff_ivi_put_pixels_8x8;
177 band->dc_transform = ff_ivi_put_dc_pixel_8x8;
178 band->scan = ff_ivi_horizontal_scan_8x8;
179 band->transform_size = 8;
183 band->inv_transform = ff_ivi_inverse_slant_4x4;
184 band->dc_transform = ff_ivi_dc_slant_2d;
185 band->scan = ff_ivi_direct_scan_4x4;
186 band->transform_size = 4;
190 band->is_2d_trans = band->inv_transform == ff_ivi_inverse_slant_8x8 ||
191 band->inv_transform == ff_ivi_inverse_slant_4x4;
193 if (band->transform_size != band->blk_size) {
194 av_log(avctx, AV_LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size);
198 /* select dequant matrix according to plane and band number */
205 if (band->blk_size == 8) {
210 band->intra_base = &ivi5_base_quant_8x8_intra[quant_mat][0];
211 band->inter_base = &ivi5_base_quant_8x8_inter[quant_mat][0];
212 band->intra_scale = &ivi5_scale_quant_8x8_intra[quant_mat][0];
213 band->inter_scale = &ivi5_scale_quant_8x8_inter[quant_mat][0];
215 band->intra_base = ivi5_base_quant_4x4_intra;
216 band->inter_base = ivi5_base_quant_4x4_inter;
217 band->intra_scale = ivi5_scale_quant_4x4_intra;
218 band->inter_scale = ivi5_scale_quant_4x4_inter;
374 * Decode Indeo5 band header.
377 * @param[in,out] band ptr to the band descriptor
381 static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
390 band->is_empty = 1;
394 band->data_size = (ctx->frame_flags & 0x80) ? get_bits_long(&ctx->gb, 24) : 0;
396 band->inherit_mv = band_flags & 2;
397 band->inherit_qdelta = band_flags & 8;
398 band->qdelta_present = band_flags & 4;
399 if (!band->qdelta_present) band->inherit_qdelta = 1;
402 band->num_corr = 0; /* there are no corrections */
404 band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */
405 if (band->num_corr > 61) {
407 band->num_corr);
412 for (i = 0; i < band->num_corr * 2; i++)
413 band->corr[i] = get_bits(&ctx->gb, 8);
416 /* select appropriate rvmap table for this band */
417 band->rvmap_sel = (band_flags & 0x40) ? get_bits(&ctx->gb, 3) : 8;
421 &band->blk_vlc, avctx);
425 band->checksum_present = get_bits1(&ctx->gb);
426 if (band->checksum_present)
427 band->checksum = get_bits(&ctx->gb, 16);
429 band->glob_quant = get_bits(&ctx->gb, 5);
448 * @param[in,out] band ptr to the band descriptor
453 static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
459 int row_offset = band->mb_size * band->pitch;
463 offs = tile->ypos * band->pitch + tile->xpos;
466 ((band->qdelta_present && band->inherit_qdelta) || band->inherit_mv))
469 if (tile->num_MBs != IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)) {
471 tile->num_MBs, IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size));
476 mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3);
479 for (y = tile->ypos; y < (tile->ypos + tile->height); y += band->mb_size) {
482 for (x = tile->xpos; x < (tile->xpos + tile->width); x += band->mb_size) {
496 if (!band->plane && !band->band_num && (ctx->frame_flags & 8)) {
503 if (band->inherit_mv && ref_mb){
514 if (band->inherit_mv && ref_mb) {
522 blks_per_mb = band->mb_size != band->blk_size ? 4 : 1;
526 if (band->qdelta_present) {
527 if (band->inherit_qdelta) {
529 } else if (mb->cbp || (!band->plane && !band->band_num &&
540 if (band->inherit_mv && ref_mb){
563 s= band->is_halfpel;
565 if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 ||
566 x + ((mb->mv_x+s)>>s) + band->mb_size - 1
567 + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize - 1) {
575 mb_offset += band->mb_size;
650 there is only one band per plane (no scalability), only one tile (no local decoding)