Lines Matching defs:block

49     BINKB_SRC_BLOCK_TYPES = 0, ///< 8x8 block types
50 BINKB_SRC_COLORS, ///< pixel values used for different block types
78 BINK_SRC_BLOCK_TYPES = 0, ///< 8x8 block types
79 BINK_SRC_SUB_BLOCK_TYPES, ///< 16x16 block types (a subset of 8x8 block types)
80 BINK_SRC_COLORS, ///< pixel values used for different block types
86 BINK_SRC_RUN, ///< run lengths for special fill block
134 * Bink video block types
137 SKIP_BLOCK = 0, ///< skipped block
138 SCALED_BLOCK, ///< block has size 16x16
139 MOTION_BLOCK, ///< block is copied from previous frame with some offset
140 RUN_BLOCK, ///< block is composed from runs of colours with custom scan order
141 RESIDUE_BLOCK, ///< motion block with some difference added
142 INTRA_BLOCK, ///< intra DCT block
143 FILL_BLOCK, ///< block is filled with single colour
144 INTER_BLOCK, ///< motion block with DCT applied to the difference
145 PATTERN_BLOCK, ///< block is filled with two colours following custom pattern
146 RAW_BLOCK, ///< uncoded 8x8 block
409 av_log(avctx, AV_LOG_ERROR, "Too many block type values\n");
634 * Read 8x8 block of DCT coefficients.
637 * @param block place for storing coefficients
642 static int read_dct_coeffs(BinkContext *c, GetBitContext *gb, int32_t block[64],
693 block[scan[ccoef]] = t;
714 block[scan[ccoef]] = t;
738 static void unquantize_dct_coeffs(int32_t block[64], const uint32_t quant[64],
743 block[0] = (int)(block[0] * quant[0]) >> 11;
746 block[scan[idx]] = (int)(block[scan[idx]] * quant[idx]) >> 11;
751 * Read 8x8 block with residue after motion compensation.
754 * @param block place to store read data
758 static int read_residue(GetBitContext *gb, int16_t block[64], int masks_count)
776 if (block[nz_coeff[i]] < 0)
777 block[nz_coeff[i]] -= mask;
779 block[nz_coeff[i]] += mask;
808 block[bink_scan[ccoef]] = (mask ^ sign) - sign;
826 block[bink_scan[ccoef]] = (mask ^ sign) - sign;
841 * Copy 8x8 block from source to destination, where src and dst may be overlapped
862 LOCAL_ALIGNED_32(int16_t, block, [64]);
931 av_log(c->avctx, AV_LOG_WARNING, "Reference block is out of bounds\n");
937 c->bdsp.clear_block(block);
939 read_residue(gb, block, v);
940 c->binkdsp.add_pixels8(dst, block, stride);
947 av_log(c->avctx, AV_LOG_WARNING, "Reference block is out of bounds\n");
979 av_log(c->avctx, AV_LOG_WARNING, "Reference block is out of bounds\n");
992 av_log(c->avctx, AV_LOG_ERROR, "Unknown block type %d\n", blk);
1029 LOCAL_ALIGNED_32(int16_t, block, [64]);
1090 // 16x16 block type on odd line means part of the already decoded block, so skip it
1156 av_log(c->avctx, AV_LOG_ERROR, "Incorrect 16x16 block type %d\n", blk);
1199 c->bdsp.clear_block(block);
1201 read_residue(gb, block, v);
1202 c->binkdsp.add_pixels8(dst, block, stride);
1243 av_log(c->avctx, AV_LOG_ERROR, "Unknown block type %d\n", blk);