Home
last modified time | relevance | path

Searched refs:scantable (Results 1 – 25 of 38) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dasvdec.c125 …block[a->scantable.permutated[4 * i + 0]] = (asv1_get_level(&a->gb) * a->intra_matrix[4 * i + 0]) … in asv1_decode_block()
127 …block[a->scantable.permutated[4 * i + 1]] = (asv1_get_level(&a->gb) * a->intra_matrix[4 * i + 1]) … in asv1_decode_block()
129 …block[a->scantable.permutated[4 * i + 2]] = (asv1_get_level(&a->gb) * a->intra_matrix[4 * i + 2]) … in asv1_decode_block()
131 …block[a->scantable.permutated[4 * i + 3]] = (asv1_get_level(&a->gb) * a->intra_matrix[4 * i + 3]) … in asv1_decode_block()
149 block[a->scantable.permutated[1]] = (asv2_get_level(&a->gb) * a->intra_matrix[1]) >> 4; in asv2_decode_block()
151 block[a->scantable.permutated[2]] = (asv2_get_level(&a->gb) * a->intra_matrix[2]) >> 4; in asv2_decode_block()
153 block[a->scantable.permutated[3]] = (asv2_get_level(&a->gb) * a->intra_matrix[3]) >> 4; in asv2_decode_block()
161 …block[a->scantable.permutated[4 * i + 0]] = (asv2_get_level(&a->gb) * a->intra_matrix[4 * i + 0]) … in asv2_decode_block()
163 …block[a->scantable.permutated[4 * i + 1]] = (asv2_get_level(&a->gb) * a->intra_matrix[4 * i + 1]) … in asv2_decode_block()
165 …block[a->scantable.permutated[4 * i + 2]] = (asv2_get_level(&a->gb) * a->intra_matrix[4 * i + 2]) … in asv2_decode_block()
[all …]
Dmdec.c46 ScanTable scantable; member
66 uint8_t * const scantable = a->scantable.permutated; in mdec_decode_block_intra() local
97 j = scantable[i]; in mdec_decode_block_intra()
112 j = scantable[i]; in mdec_decode_block_intra()
227 ff_init_scantable(a->idsp.idct_permutation, &a->scantable, in decode_init()
Dh264_cavlc.c436 const uint8_t *scantable, const uint32_t *qmul, in decode_residual() argument
579 scantable += zeros_left + total_coeff - 1; \ in decode_residual()
581 ((type*)block)[*scantable] = level[0]; \ in decode_residual()
588 scantable -= 1 + run_before; \ in decode_residual()
589 ((type*)block)[*scantable]= level[i]; \ in decode_residual()
592 scantable--; \ in decode_residual()
593 ((type*)block)[*scantable]= level[i]; \ in decode_residual()
596 ((type*)block)[*scantable] = ((int)(level[0] * qmul[*scantable] + 32))>>6; \ in decode_residual()
603 scantable -= 1 + run_before; \ in decode_residual()
604 ((type*)block)[*scantable]= ((int)(level[i] * qmul[*scantable] + 32))>>6; \ in decode_residual()
[all …]
Dimm4.c132 const uint8_t *scantable = s->intra_scantable.permutated; in decode_block() local
155 s->block[block][scantable[i]] = offset * (factor2 < 0 ? -1 : 1) + factor * factor2; in decode_block()
162 s->block[block][scantable[0]] *= 2; in decode_block()
163 s->block[block][scantable[1]] *= 2; in decode_block()
164 s->block[block][scantable[8]] *= 2; in decode_block()
165 s->block[block][scantable[16]] *= 2; in decode_block()
175 const uint8_t *scantable = s->intra_scantable.permutated; in decode_blocks() local
188 s->block[i][scantable[0]] = x; in decode_blocks()
Deamad.c60 ScanTable scantable; member
75 ff_init_scantable(s->idsp.idct_permutation, &s->scantable, ff_zigzag_direct); in decode_init()
137 const uint8_t *scantable = s->scantable.permutated; in decode_block_intra() local
161 j = scantable[i]; in decode_block_intra()
180 j = scantable[i]; in decode_block_intra()
Dagm.c92 ScanTable scantable; member
199 const uint8_t *scantable = s->scantable.permutated; in decode_intra_blocks() local
205 int16_t *block = s->wblocks + scantable[i]; in decode_intra_blocks()
241 const uint8_t *scantable = s->scantable.permutated; in decode_inter_blocks() local
248 int16_t *block = s->wblocks + scantable[i]; in decode_inter_blocks()
276 const uint8_t *scantable = s->scantable.permutated; in decode_intra_block() local
291 block[scantable[0]] = offset + *dc_level * quant_matrix[0]; in decode_intra_block()
305 block[scantable[i]] = level * quant_matrix[i]; in decode_intra_block()
366 const uint8_t *scantable = s->scantable.permutated; in decode_inter_block() local
384 block[scantable[i]] = level * quant_matrix[i]; in decode_inter_block()
[all …]
Daic.c146 ScanTable scantable; member
351 recombine_block(ctx->block, ctx->scantable.permutated, in aic_decode_slice()
354 recombine_block_il(ctx->block, ctx->scantable.permutated, in aic_decode_slice()
371 recombine_block(ctx->block, ctx->scantable.permutated, in aic_decode_slice()
458 ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, scan); in aic_decode_init()
Dh264_cabac.c1584 int cat, int n, const uint8_t *scantable, in decode_cabac_residual_internal() argument
1717 int j= scantable[index[--coeff_count]]; \ in decode_cabac_residual_internal()
1773 const uint8_t *scantable, in decode_cabac_residual_dc_internal() argument
1776 decode_cabac_residual_internal(h, sl, block, cat, n, scantable, NULL, max_coeff, 1, 0); in decode_cabac_residual_dc_internal()
1783 const uint8_t *scantable, in decode_cabac_residual_dc_internal_422() argument
1786 decode_cabac_residual_internal(h, sl, block, cat, n, scantable, NULL, max_coeff, 1, 1); in decode_cabac_residual_dc_internal_422()
1793 const uint8_t *scantable, in decode_cabac_residual_nondc_internal() argument
1797 decode_cabac_residual_internal(h, sl, block, cat, n, scantable, qmul, max_coeff, 0, 0); in decode_cabac_residual_nondc_internal()
1816 const uint8_t *scantable, in decode_cabac_residual_dc() argument
1824 decode_cabac_residual_dc_internal(h, sl, block, cat, n, scantable, max_coeff); in decode_cabac_residual_dc()
[all …]
Dintrax8.c535 uint8_t *scantable; in x8_decode_intra_mb() local
580 scantable = w->scantable[(0x928548 >> (2 * w->orient)) & 3].permutated; in x8_decode_intra_mb()
605 w->block[0][scantable[pos]] = level; in x8_decode_intra_mb()
719 ff_init_scantable(w->idct_permutation, &w->scantable[0], in ff_intrax8_common_init()
721 ff_init_scantable(w->idct_permutation, &w->scantable[1], in ff_intrax8_common_init()
723 ff_init_scantable(w->idct_permutation, &w->scantable[2], in ff_intrax8_common_init()
Dmpeg12.c239 uint8_t *const scantable, int last_dc[3], in ff_mpeg1_decode_block_intra() argument
276 j = scantable[i]; in ff_mpeg1_decode_block_intra()
302 j = scantable[i]; in ff_mpeg1_decode_block_intra()
Deatgq.c46 ScanTable scantable; member
58 ff_init_scantable(idct_permutation, &s->scantable, ff_zigzag_direct); in tgq_decode_init()
66 uint8_t *perm = s->scantable.permutated; in tgq_decode_block()
Dmsmpeg4enc.c576 const uint8_t *scantable; in ff_msmpeg4_encode_block() local
587 scantable= s->intra_scantable.permutated; in ff_msmpeg4_encode_block()
595 scantable= s->inter_scantable.permutated; in ff_msmpeg4_encode_block()
601 if(block[scantable[last_index]]) break; in ff_msmpeg4_encode_block()
609 j = scantable[i]; in ff_msmpeg4_encode_block()
Dmimic.c59 ScanTable scantable; member
140 ff_init_scantable(ctx->idsp.idct_permutation, &ctx->scantable, col_zag); in mimic_decode_init()
253 block[ctx->scantable.permutated[pos]] = coeff; in vlc_decode_block()
Dljpegenc.c49 ScanTable scantable; member
254 ff_mjpeg_encode_picture_header(avctx, &pb, &s->scantable, in ljpeg_encode_frame()
317 ff_init_scantable(s->idsp.idct_permutation, &s->scantable, in ljpeg_encode_init()
Dasv.h51 ScanTable scantable; member
Dwmv2dec.c356 const uint8_t *scantable = w->abt_scantable[w->abt_type - 1].scantable; in wmv2_decode_inter_block() local
362 if ((ret = ff_msmpeg4_decode_block(s, block, n, 1, scantable)) < 0) in wmv2_decode_inter_block()
366 if ((ret = ff_msmpeg4_decode_block(s, w->abt_block2[n], n, 1, scantable)) < 0) in wmv2_decode_inter_block()
Dproresenc_anatoliy.c191 const uint8_t *scantable; member
386 buf, data_size, ctx->qmat_luma[qp - 1], 0, ctx->scantable); in encode_slice_data()
390 ctx->qmat_chroma[qp - 1], ctx->is_422, ctx->scantable); in encode_slice_data()
394 ctx->qmat_chroma[qp - 1], ctx->is_422, ctx->scantable); in encode_slice_data()
820 ctx->scantable = ff_prores_interlaced_scan; in prores_encode_init()
822 ctx->scantable = ff_prores_progressive_scan; in prores_encode_init()
Dmpeg12dec.c146 uint8_t *const scantable = s->intra_scantable.permutated; in mpeg1_decode_block_inter() local
175 j = scantable[i]; in mpeg1_decode_block_inter()
198 j = scantable[i]; in mpeg1_decode_block_inter()
235 uint8_t *const scantable = s->intra_scantable.permutated; in mpeg1_fast_decode_block_inter() local
264 j = scantable[i]; in mpeg1_fast_decode_block_inter()
287 j = scantable[i]; in mpeg1_fast_decode_block_inter()
320 uint8_t *const scantable = s->intra_scantable.permutated; in mpeg2_decode_block_non_intra() local
358 j = scantable[i]; in mpeg2_decode_block_non_intra()
374 j = scantable[i]; in mpeg2_decode_block_non_intra()
410 uint8_t *const scantable = s->intra_scantable.permutated; in mpeg2_fast_decode_block_non_intra() local
[all …]
Dintrax8.h38 ScanTable scantable[3]; member
Dmpeg12.h59 uint8_t *const scantable, int last_dc[3],
Dmpegvideo_enc.c4015 const uint8_t *scantable; in dct_quantize_trellis_c() local
4050 scantable= s->intra_scantable.scantable; in dct_quantize_trellis_c()
4081 scantable= s->inter_scantable.scantable; in dct_quantize_trellis_c()
4096 const int j = scantable[i]; in dct_quantize_trellis_c()
4106 const int j = scantable[i]; in dct_quantize_trellis_c()
4145 int dct_coeff= FFABS(block[ scantable[i] ]); in dct_quantize_trellis_c()
4149 dct_coeff= (dct_coeff*ff_inv_aanscales[ scantable[i] ]) >> 12; in dct_quantize_trellis_c()
4163 j = s->idsp.idct_permutation[scantable[i]]; in dct_quantize_trellis_c()
4166 j = s->idsp.idct_permutation[scantable[i]]; // FIXME: optimize in dct_quantize_trellis_c()
4349 const uint8_t *scantable; in dct_quantize_refine() local
[all …]
Ddnxhdenc.c121 const uint8_t *scantable= ctx->intra_scantable.scantable; in dnxhd_10bit_dct_quantize_444() local
137 j = scantable[i]; in dnxhd_10bit_dct_quantize_444()
149 j = scantable[i]; in dnxhd_10bit_dct_quantize_444()
170 scantable, last_non_zero); in dnxhd_10bit_dct_quantize_444()
178 const uint8_t *scantable= ctx->intra_scantable.scantable; in dnxhd_10bit_dct_quantize() local
189 int j = scantable[i]; in dnxhd_10bit_dct_quantize()
201 scantable, last_non_zero); in dnxhd_10bit_dct_quantize()
Didctdsp.h32 const uint8_t *scantable; member
Dmjpegdec.h118 ScanTable scantable; member
Dme_cmp.c770 const uint8_t *scantable = s->intra_scantable.permutated; in rd8x8_c() local
805 int j = scantable[i]; in rd8x8_c()
818 i = scantable[last]; in rd8x8_c()
847 const uint8_t *scantable = s->intra_scantable.permutated; in bit8x8_c() local
877 int j = scantable[i]; in bit8x8_c()
890 i = scantable[last]; in bit8x8_c()

12