Home
last modified time | relevance | path

Searched refs:qmat (Results 1 – 24 of 24) sorted by relevance

/third_party/ffmpeg/libavcodec/tests/x86/
Ddct.c29 int16_t *block, int16_t *qmat);
33 LOCAL_ALIGNED(16, int16_t, qmat, [64]); \
38 qmat[i]=4; \
41 ff_prores_idct_put_10_##INSN (dst, 16, tmp, qmat); \
52 int16_t *block, int16_t *qmat);
/third_party/ffmpeg/libavcodec/
Dproresdsp.c67 …c void prores_idct_put_10_c(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat) in prores_idct_put_10_c() argument
69 ff_prores_idct_10(block, qmat); in prores_idct_put_10_c()
73 …c void prores_idct_put_12_c(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat) in prores_idct_put_12_c() argument
75 ff_prores_idct_12(block, qmat); in prores_idct_put_12_c()
Dproresenc_kostya.c436 const uint8_t *scan, const int16_t *qmat) in encode_acs() argument
449 level = blocks[idx] / qmat[scan[i]]; in encode_acs()
471 const int16_t *qmat) in encode_slice_plane() argument
478 encode_dcs(pb, blocks, blocks_per_slice, qmat[0]); in encode_slice_plane()
480 ctx->scantable, qmat); in encode_slice_plane()
564 uint16_t *qmat; in encode_slice() local
573 qmat = ctx->quants[0]; in encode_slice()
576 qmat = ctx->quants[quant]; in encode_slice()
579 qmat = ctx->custom_q; in encode_slice()
582 qmat[i] = ctx->quant_mat[i] * quant; in encode_slice()
[all …]
Dmss34dsp.c48 void ff_mss34_gen_quant_mat(uint16_t *qmat, int quality, int luma) in ff_mss34_gen_quant_mat() argument
57 qmat[i] = (qsrc[i] * scale + 50) / 100; in ff_mss34_gen_quant_mat()
60 qmat[i] = (5000 * qsrc[i] / quality + 50) / 100; in ff_mss34_gen_quant_mat()
Dsimple_idct.c240 void ff_prores_idct_10(int16_t *block, const int16_t *qmat) in ff_prores_idct_10() argument
245 block[i] *= qmat[i]; in ff_prores_idct_10()
256 void ff_prores_idct_12(int16_t *block, const int16_t *qmat) in ff_prores_idct_12() argument
261 block[i] *= qmat[i]; in ff_prores_idct_12()
Dsimple_idct.h55 void ff_prores_idct_10(int16_t *block, const int16_t *qmat);
56 void ff_prores_idct_12(int16_t *block, const int16_t *qmat);
Dproresenc_anatoliy.c228 #define QSCALE(qmat,ind,val) ((val) / ((qmat)[ind])) argument
245 int blocks_per_slice, int *qmat) in encode_dc_coeffs() argument
251 prev_dc = QSCALE(qmat, 0, in[0] - 16384); in encode_dc_coeffs()
257 new_dc = QSCALE(qmat, 0, in[idx] - 16384); in encode_dc_coeffs()
276 int16_t *in, int blocks_per_slice, int *qmat, const uint8_t ff_prores_scan[64]) in encode_ac_coeffs() argument
285 int val = QSCALE(qmat, indp, in[(j << 6) + indp]); in encode_ac_coeffs()
361 …lane(int16_t *blocks, int mb_count, uint8_t *buf, unsigned buf_size, int *qmat, int sub_sample_chr… in encode_slice_plane() argument
370 encode_dc_coeffs(&pb, blocks, blocks_per_slice, qmat); in encode_slice_plane()
371 encode_ac_coeffs(&pb, blocks, blocks_per_slice, qmat, ff_prores_scan); in encode_slice_plane()
Dproresdec2.c520 const int16_t *qmat) in decode_slice_luma() argument
541 ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat); in decode_slice_luma()
542 ctx->prodsp.idct_put(dst +8, dst_stride, block+(1<<6), qmat); in decode_slice_luma()
543 ctx->prodsp.idct_put(dst+4*dst_stride , dst_stride, block+(2<<6), qmat); in decode_slice_luma()
544 ctx->prodsp.idct_put(dst+4*dst_stride+8, dst_stride, block+(3<<6), qmat); in decode_slice_luma()
554 const int16_t *qmat, int log2_blocks_per_mb) in decode_slice_chroma() argument
576 ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat); in decode_slice_chroma()
577 ctx->prodsp.idct_put(dst+4*dst_stride, dst_stride, block+(1<<6), qmat); in decode_slice_chroma()
Dmss34dsp.h35 void ff_mss34_gen_quant_mat(uint16_t *qmat, int quality, int luma);
Dproresdsp.h33 void (*idct_put)(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat);
Dvp8.c352 s->qmat[0].luma_qmul[0] = vp7_ydc_qlookup[ydc_qi]; in vp7_get_quants()
353 s->qmat[0].luma_qmul[1] = vp7_yac_qlookup[yac_qi]; in vp7_get_quants()
354 s->qmat[0].luma_dc_qmul[0] = vp7_y2dc_qlookup[y2dc_qi]; in vp7_get_quants()
355 s->qmat[0].luma_dc_qmul[1] = vp7_y2ac_qlookup[y2ac_qi]; in vp7_get_quants()
356 s->qmat[0].chroma_qmul[0] = FFMIN(vp7_ydc_qlookup[uvdc_qi], 132); in vp7_get_quants()
357 s->qmat[0].chroma_qmul[1] = vp7_yac_qlookup[uvac_qi]; in vp7_get_quants()
380 … s->qmat[i].luma_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.ydc_delta, 7)]; in vp8_get_quants()
381 s->qmat[i].luma_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi, 7)]; in vp8_get_quants()
382 … s->qmat[i].luma_dc_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.y2dc_delta, 7)] * 2; in vp8_get_quants()
384 …s->qmat[i].luma_dc_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi + s->quant.y2ac_delta, 7)] * 10… in vp8_get_quants()
[all …]
Dfic.c50 const uint8_t *qmat; member
163 ctx->qmat[ff_zigzag_direct[i]]; in fic_decode_block()
311 ctx->qmat = src[23] ? fic_qmat_hq : fic_qmat_lq; in fic_decode_frame()
Dmss3.c97 uint16_t qmat[64]; member
531 block[0] = dc * bc->qmat[0]; in decode_dct()
558 block[zz_pos] = val * bc->qmat[zz_pos]; in decode_dct()
646 ff_mss34_gen_quant_mat(ctx->dct_coder[i].qmat, quality, !i); in reset_coders()
Dvp8.h208 } qmat[4]; member
Ddnxhdenc.c120 const int *qmat; in dnxhd_10bit_dct_quantize_444() local
131 qmat = n < 4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale]; in dnxhd_10bit_dct_quantize_444()
138 level = block[j] * qmat[j]; in dnxhd_10bit_dct_quantize_444()
150 level = block[j] * qmat[j]; in dnxhd_10bit_dct_quantize_444()
179 const int *qmat = n<4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale]; in dnxhd_10bit_dct_quantize() local
192 level = level * qmat[j] >> DNX10BIT_QMAT_SHIFT; in dnxhd_10bit_dct_quantize()
Dvp3.c287 DECLARE_ALIGNED(16, int16_t, qmat)[3][2][3][64]; ///< qmat[qpi][is_inter][plane]
442 s->qmat[qpi][inter][plane][s->idct_permutation[i]] = in init_dequantizer()
448 s->qmat[qpi][inter][plane][0] = s->qmat[0][inter][plane][0]; in init_dequantizer()
1862 int16_t *dequantizer = s->qmat[frag->qpi][inter][plane]; in vp3_dequant()
1897 block[0] = frag->dc * s->qmat[0][inter][plane][0]; in vp3_dequant()
2572 memcpy(&s->qmat[i], &s1->qmat[i], sizeof(s->qmat[i])); in vp3_update_thread_context()
Dmpegvideo_enc.c92 void ff_convert_matrix(MpegEncContext *s, int (*qmat)[64], in ff_convert_matrix()
122 qmat[qscale][i] = (int)((UINT64_C(2) << QMAT_SHIFT) / den); in ff_convert_matrix()
134 qmat[qscale][i] = (int)((UINT64_C(2) << (QMAT_SHIFT + 14)) / den); in ff_convert_matrix()
145 qmat[qscale][i] = (int)((UINT64_C(2) << QMAT_SHIFT) / den); in ff_convert_matrix()
164 while (((max * qmat[qscale][i]) >> shift) > INT_MAX) { in ff_convert_matrix()
4013 const int *qmat; in dct_quantize_trellis_c() local
4068 qmat = n < 4 ? s->q_intra_matrix[qscale] : s->q_chroma_intra_matrix[qscale]; in dct_quantize_trellis_c()
4085 qmat = s->q_inter_matrix[qscale]; in dct_quantize_trellis_c()
4097 int level = block[j] * qmat[j]; in dct_quantize_trellis_c()
4107 int level = block[j] * qmat[j]; in dct_quantize_trellis_c()
[all …]
Dg2meet.c226 const uint8_t *qmat = is_chroma ? chroma_quant : luma_quant; in jpg_decode_block() local
237 dc = dc * qmat[0] + c->prev_dc[plane]; in jpg_decode_block()
254 val *= qmat[ff_zigzag_direct[pos]]; in jpg_decode_block()
Dmpegvideo.h736 void ff_convert_matrix(MpegEncContext *s, int (*qmat)[64], uint16_t (*qmat16)[2][64],
/third_party/ffmpeg/libavcodec/x86/
Dproresdsp_init.c29 int16_t *block, const int16_t *qmat);
31 int16_t *block, const int16_t *qmat);
Dmpegvideoenc_template.c109 const uint16_t *qmat, *bias; in RENAME() local
125 qmat = s->q_intra_matrix16[qscale][0]; in RENAME()
129 qmat = s->q_chroma_intra_matrix16[qscale][0]; in RENAME()
148 qmat = s->q_inter_matrix16[qscale][0]; in RENAME()
182 : "r" (block+64), "r" (qmat), "r" (bias), in RENAME()
216 : "r" (block+64), "r" (qmat+64), "r" (bias+64), in RENAME()
Dsimple_idct10_template.asm73 ; %3 = qmat (for prores)
234 ; int16_t *block, const int16_t *qmat);
243 ; %8 = qmat (for prores)
Dproresdsp.asm56 cglobal prores_idct_put_10, 4, 4, 15, pixels, lsize, block, qmat
/third_party/ffmpeg/libavcodec/tests/
Ddct.c71 LOCAL_ALIGNED(16, int16_t, qmat, [64]); in ff_prores_idct_wrap()
75 qmat[i]=4; in ff_prores_idct_wrap()
77 ff_prores_idct_10(dst, qmat); in ff_prores_idct_wrap()