Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavcodec/x86/
Dmpegvideo.c172 const uint16_t *quant_matrix; in dct_unquantize_mpeg1_intra_mmx() local
184 quant_matrix = s->intra_matrix; in dct_unquantize_mpeg1_intra_mmx()
231 ::"r" (block+nCoeffs), "r"(quant_matrix+nCoeffs), "rm" (qscale), "g" (-2*nCoeffs) in dct_unquantize_mpeg1_intra_mmx()
241 const uint16_t *quant_matrix; in dct_unquantize_mpeg1_inter_mmx() local
247 quant_matrix = s->inter_matrix; in dct_unquantize_mpeg1_inter_mmx()
298 ::"r" (block+nCoeffs), "r"(quant_matrix+nCoeffs), "rm" (qscale), "g" (-2*nCoeffs) in dct_unquantize_mpeg1_inter_mmx()
307 const uint16_t *quant_matrix; in dct_unquantize_mpeg2_intra_mmx() local
322 quant_matrix = s->intra_matrix; in dct_unquantize_mpeg2_intra_mmx()
365 ::"r" (block+nCoeffs), "r"(quant_matrix+nCoeffs), "rm" (qscale), "g" (-2*nCoeffs) in dct_unquantize_mpeg2_intra_mmx()
376 const uint16_t *quant_matrix; in dct_unquantize_mpeg2_inter_mmx() local
[all …]
/third_party/ffmpeg/libavcodec/mips/
Dmpegvideo_mmi.c165 const uint16_t *quant_matrix; in ff_dct_unquantize_mpeg1_intra_mmi() local
182 quant_matrix = s->intra_matrix; in ff_dct_unquantize_mpeg1_intra_mmi()
246 [quant]"r"((mips_reg)(quant_matrix+nCoeffs)), in ff_dct_unquantize_mpeg1_intra_mmi()
259 const uint16_t *quant_matrix; in ff_dct_unquantize_mpeg1_inter_mmi() local
268 quant_matrix = s->inter_matrix; in ff_dct_unquantize_mpeg1_inter_mmi()
336 [quant]"r"((mips_reg)(quant_matrix+nCoeffs)), in ff_dct_unquantize_mpeg1_inter_mmi()
347 const uint16_t *quant_matrix; in ff_dct_unquantize_mpeg2_intra_mmi() local
367 quant_matrix = s->intra_matrix; in ff_dct_unquantize_mpeg2_intra_mmi()
427 [quant]"r"((mips_reg)(quant_matrix+nCoeffs)), in ff_dct_unquantize_mpeg2_intra_mmi()
Dmpegvideo_msa.c66 const int16_t *quant_matrix) in mpeg2_dct_unquantize_inter_msa() argument
79 LD_SH4(quant_matrix, 8, quant_m0, quant_m1, quant_m2, quant_m3); in mpeg2_dct_unquantize_inter_msa()
104 quant_matrix += 8; in mpeg2_dct_unquantize_inter_msa()
132 quant_matrix += 8; in mpeg2_dct_unquantize_inter_msa()
160 quant_matrix += 8; in mpeg2_dct_unquantize_inter_msa()
188 quant_matrix += 8; in mpeg2_dct_unquantize_inter_msa()
242 const uint16_t *quant_matrix; in ff_dct_unquantize_mpeg2_inter_msa() local
245 quant_matrix = s->inter_matrix; in ff_dct_unquantize_mpeg2_inter_msa()
247 sum = mpeg2_dct_unquantize_inter_msa(block, qscale, quant_matrix); in ff_dct_unquantize_mpeg2_inter_msa()
/third_party/ffmpeg/libavcodec/
Dmdec.c54 DECLARE_ALIGNED(16, uint16_t, quant_matrix)[64];
67 const uint16_t *quant_matrix = a->quant_matrix; in mdec_decode_block_intra() local
98 level = (level * qscale * quant_matrix[j]) >> 3; in mdec_decode_block_intra()
115 level = (level * (unsigned)qscale * quant_matrix[j]) >> 3; in mdec_decode_block_intra()
119 level = (level * (unsigned)qscale * quant_matrix[j]) >> 3; in mdec_decode_block_intra()
237 a->quant_matrix[j] = ff_mpeg1_default_intra_matrix[i]; in decode_init()
Deamad.c61 uint16_t quant_matrix[64]; member
138 int16_t *quant_matrix = s->quant_matrix; in decode_block_intra() local
140 block[0] = (128 + get_sbits(&s->gb, 8)) * quant_matrix[0]; in decode_block_intra()
162 level = (level*quant_matrix[j]) >> 4; in decode_block_intra()
183 level = (level*quant_matrix[j]) >> 4; in decode_block_intra()
187 level = (level*quant_matrix[j]) >> 4; in decode_block_intra()
244 s->quant_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0]) >> 11; in calc_quant_matrix()
246 … s->quant_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32) >> 10; in calc_quant_matrix()
Dmpeg12.c238 const uint16_t *quant_matrix, in ff_mpeg1_decode_block_intra() argument
256 block[0] = dc * quant_matrix[0]; in ff_mpeg1_decode_block_intra()
277 level = (level * qscale * quant_matrix[j]) >> 4; in ff_mpeg1_decode_block_intra()
305 level = (level * qscale * quant_matrix[j]) >> 4; in ff_mpeg1_decode_block_intra()
309 level = (level * qscale * quant_matrix[j]) >> 4; in ff_mpeg1_decode_block_intra()
Dagm.c197 const int *quant_matrix, int *skip, int *dc_level) in decode_intra_blocks() argument
215 block[64 * k] = *dc_level * quant_matrix[0]; in decode_intra_blocks()
227 block[0] = (i == 0 ? *dc_level : level) * quant_matrix[i]; in decode_intra_blocks()
238 const int *quant_matrix, int *skip, in decode_inter_blocks() argument
263 block[0] = level * quant_matrix[i]; in decode_inter_blocks()
274 const int *quant_matrix, int *skip, int *dc_level) in decode_intra_block() argument
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()
314 const int *quant_matrix, AVFrame *frame, in decode_intra_plane() argument
330 ret = decode_intra_blocks(s, gb, quant_matrix, &skip, &dc_level); in decode_intra_plane()
[all …]
Daic.c158 DECLARE_ALIGNED(16, uint8_t, quant_matrix)[64];
297 static void unquant_block(int16_t *block, int q, uint8_t *quant_matrix) in unquant_block() argument
305 block[i] = (((val >> 1) ^ -sign) * q * quant_matrix[i] >> 4) in unquant_block()
356 unquant_block(ctx->block, ctx->quant, ctx->quant_matrix); in aic_decode_slice()
373 unquant_block(ctx->block, ctx->quant, ctx->quant_matrix); in aic_decode_slice()
460 ctx->quant_matrix[ctx->idsp.idct_permutation[i]] = aic_quant_matrix[i]; in aic_decode_init()
Dmpeg12dec.c147 const uint16_t *quant_matrix = s->inter_matrix; in mpeg1_decode_block_inter() local
156 level = (3 * qscale * quant_matrix[0]) >> 5; in mpeg1_decode_block_inter()
176 level = ((level * 2 + 1) * qscale * quant_matrix[j]) >> 5; in mpeg1_decode_block_inter()
201 level = ((level * 2 + 1) * qscale * quant_matrix[j]) >> 5; in mpeg1_decode_block_inter()
205 level = ((level * 2 + 1) * qscale * quant_matrix[j]) >> 5; in mpeg1_decode_block_inter()
321 const uint16_t *quant_matrix; in mpeg2_decode_block_non_intra() local
331 quant_matrix = s->inter_matrix; in mpeg2_decode_block_non_intra()
333 quant_matrix = s->chroma_inter_matrix; in mpeg2_decode_block_non_intra()
338 level = (3 * qscale * quant_matrix[0]) >> 5; in mpeg2_decode_block_non_intra()
359 level = ((level * 2 + 1) * qscale * quant_matrix[j]) >> 5; in mpeg2_decode_block_non_intra()
[all …]
Dspeedhq.c55 int quant_matrix[64]; member
224 const int *quant_matrix = s->quant_matrix; in decode_dct_block() local
269 block[scantable[i]] = (level * quant_matrix[i]) >> 4; in decode_dct_block()
509 compute_quant_matrix(s->quant_matrix, 100 - quality); in speedhq_decode_frame()
Dmpegvideo.c58 const uint16_t *quant_matrix; in dct_unquantize_mpeg1_intra_c() local
64 quant_matrix = s->intra_matrix; in dct_unquantize_mpeg1_intra_c()
71 level = (int)(level * qscale * quant_matrix[j]) >> 3; in dct_unquantize_mpeg1_intra_c()
75 level = (int)(level * qscale * quant_matrix[j]) >> 3; in dct_unquantize_mpeg1_intra_c()
87 const uint16_t *quant_matrix; in dct_unquantize_mpeg1_inter_c() local
91 quant_matrix = s->inter_matrix; in dct_unquantize_mpeg1_inter_c()
99 ((int) (quant_matrix[j]))) >> 4; in dct_unquantize_mpeg1_inter_c()
104 ((int) (quant_matrix[j]))) >> 4; in dct_unquantize_mpeg1_inter_c()
116 const uint16_t *quant_matrix; in dct_unquantize_mpeg2_intra_c() local
125 quant_matrix = s->intra_matrix; in dct_unquantize_mpeg2_intra_c()
[all …]
Dmpeg12.h58 const uint16_t *quant_matrix,
Dmjpegdec.c800 int dc_index, int ac_index, uint16_t *quant_matrix) in decode_block() argument
810 val = val * (unsigned)quant_matrix[0] + s->last_dc[component]; in decode_block()
840 block[j] = level * quant_matrix[i]; in decode_block()
850 uint16_t *quant_matrix, int Al) in decode_dc_progressive() argument
859 val = (val * (quant_matrix[0] << Al)) + s->last_dc[component]; in decode_dc_progressive()
868 uint16_t *quant_matrix, in decode_block_progressive() argument
903 block[j] = level * (quant_matrix[se] << Al); in decode_block_progressive()
910 block[j] = level * (quant_matrix[i] << Al); in decode_block_progressive()
943 ((quant_matrix[i] ^ sign) - sign) << Al; \
967 int ac_index, uint16_t *quant_matrix, in decode_block_refinement() argument
[all …]
Dvc2enc.c176 enum VC2_QM quant_matrix; member
446 if (s->wavelet_depth <= 4 && s->quant_matrix == VC2_QM_DEF) { in init_quant_matrix()
459 if (s->quant_matrix == VC2_QM_DEF) { in init_quant_matrix()
468 } else if (s->quant_matrix == VC2_QM_COL) { in init_quant_matrix()
1204 …{"qm", "Custom quantization matrix", offsetof(VC2EncContext, quant_matrix), AV_OPT_TYPE_INT, {.i64…
Dcbs_mpeg2.h184 MPEG2RawQuantMatrixExtension quant_matrix; member
Dcbs_mpeg2_syntax_template.c369 (ctx, rw, &current->data.quant_matrix); in FUNC()
Dmpegvideo.h737 const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra);
Dmpeg4videodec.c1823 const uint16_t *quant_matrix; in mpeg4_decode_studio_block() local
1836 quant_matrix = s->intra_matrix; in mpeg4_decode_studio_block()
1843 quant_matrix = s->chroma_intra_matrix; in mpeg4_decode_studio_block()
1920 block[j] = ((block[j] * quant_matrix[j] * s->qscale) * (1 << shift)) / 16; in mpeg4_decode_studio_block()
Dmpegvideo_enc.c94 const uint16_t *quant_matrix, in ff_convert_matrix() argument
115 int64_t den = (int64_t) qscale2 * quant_matrix[j]; in ff_convert_matrix()
127 int64_t den = ff_aanscales[i] * (int64_t) qscale2 * quant_matrix[j]; in ff_convert_matrix()
139 int64_t den = (int64_t) qscale2 * quant_matrix[j]; in ff_convert_matrix()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11mpeg2dec.cpp593 if (slice->quant_matrix && in gst_d3d11_mpeg2_dec_start_picture()
597 (slice->quant_matrix->load_intra_quantiser_matrix || in gst_d3d11_mpeg2_dec_start_picture()
598 slice->quant_matrix->load_non_intra_quantiser_matrix)) { in gst_d3d11_mpeg2_dec_start_picture()
599 GstMpegVideoQuantMatrixExt *quant_matrix = slice->quant_matrix; in gst_d3d11_mpeg2_dec_start_picture() local
601 if (quant_matrix->load_intra_quantiser_matrix) { in gst_d3d11_mpeg2_dec_start_picture()
604 iq_matrix->Qmatrix[0][i] = quant_matrix->intra_quantiser_matrix[i]; in gst_d3d11_mpeg2_dec_start_picture()
608 if (quant_matrix->load_non_intra_quantiser_matrix) { in gst_d3d11_mpeg2_dec_start_picture()
611 iq_matrix->Qmatrix[1][i] = quant_matrix->non_intra_quantiser_matrix[i]; in gst_d3d11_mpeg2_dec_start_picture()
615 if (quant_matrix->load_chroma_intra_quantiser_matrix) { in gst_d3d11_mpeg2_dec_start_picture()
619 quant_matrix->chroma_intra_quantiser_matrix[i]; in gst_d3d11_mpeg2_dec_start_picture()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvampeg2dec.c368 GstMpegVideoQuantMatrixExt *const quant_matrix = slice->quant_matrix; in gst_va_mpeg2_dec_add_quant_matrix() local
379 if (quant_matrix) { in gst_va_mpeg2_dec_add_quant_matrix()
380 if (quant_matrix->load_intra_quantiser_matrix) in gst_va_mpeg2_dec_add_quant_matrix()
381 intra_quant_matrix = quant_matrix->intra_quantiser_matrix; in gst_va_mpeg2_dec_add_quant_matrix()
382 if (quant_matrix->load_non_intra_quantiser_matrix) in gst_va_mpeg2_dec_add_quant_matrix()
383 non_intra_quant_matrix = quant_matrix->non_intra_quantiser_matrix; in gst_va_mpeg2_dec_add_quant_matrix()
384 if (quant_matrix->load_chroma_intra_quantiser_matrix) in gst_va_mpeg2_dec_add_quant_matrix()
385 chroma_intra_quant_matrix = quant_matrix->chroma_intra_quantiser_matrix; in gst_va_mpeg2_dec_add_quant_matrix()
386 if (quant_matrix->load_chroma_non_intra_quantiser_matrix) in gst_va_mpeg2_dec_add_quant_matrix()
388 quant_matrix->chroma_non_intra_quantiser_matrix; in gst_va_mpeg2_dec_add_quant_matrix()
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/
Dgstv4l2codecmpeg2dec.c593 if (slice->quant_matrix) { in gst_v4l2_codec_mpeg2_dec_start_picture()
594 if (slice->quant_matrix->load_intra_quantiser_matrix) in gst_v4l2_codec_mpeg2_dec_start_picture()
596 slice->quant_matrix->intra_quantiser_matrix, in gst_v4l2_codec_mpeg2_dec_start_picture()
598 if (slice->quant_matrix->load_non_intra_quantiser_matrix) in gst_v4l2_codec_mpeg2_dec_start_picture()
600 slice->quant_matrix->non_intra_quantiser_matrix, in gst_v4l2_codec_mpeg2_dec_start_picture()
602 if (slice->quant_matrix->load_chroma_intra_quantiser_matrix) in gst_v4l2_codec_mpeg2_dec_start_picture()
604 slice->quant_matrix->chroma_intra_quantiser_matrix, in gst_v4l2_codec_mpeg2_dec_start_picture()
606 if (slice->quant_matrix->load_chroma_non_intra_quantiser_matrix) in gst_v4l2_codec_mpeg2_dec_start_picture()
608 slice->quant_matrix->chroma_non_intra_quantiser_matrix, in gst_v4l2_codec_mpeg2_dec_start_picture()
611 self->need_quantiser |= (slice->quant_matrix->load_intra_quantiser_matrix || in gst_v4l2_codec_mpeg2_dec_start_picture()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv84_video_vp.c262 const uint8_t *quant_matrix = intra ? dec->mpeg12_intra_matrix : in nv84_decoder_vp_mpeg12_mb() local
343 tmp = inverse_quantize(blocks[i], quant_matrix[i], mpeg1); in nv84_decoder_vp_mpeg12_mb()
355 tmp = inverse_quantize(blocks[i], quant_matrix[i], mpeg1); in nv84_decoder_vp_mpeg12_mb()
402 tmp = inverse_quantize(tmp, quant_matrix[i], mpeg1); in nv84_decoder_vp_mpeg12_mb()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/
Dgstmpeg2decoder.c252 GstMpegVideoQuantMatrixExt quant_matrix; member
335 self->priv->quant_matrix = QUANT_MATRIX_EXT_INIT; in gst_mpeg2_decoder_init()
503 priv->quant_matrix = QUANT_MATRIX_EXT_INIT; in gst_mpeg2_decoder_handle_sequence()
665 priv->quant_matrix = matrix_ext; in gst_mpeg2_decoder_handle_quant_matrix_ext()
1015 slice.quant_matrix = _quant_matrix_ext_is_valid (&priv->quant_matrix) ? in gst_mpeg2_decoder_handle_slice()
1016 &priv->quant_matrix : NULL; in gst_mpeg2_decoder_handle_slice()
Dgstmpeg2picture.h60 GstMpegVideoQuantMatrixExt *quant_matrix; /* The parameter set */ member