Home
last modified time | relevance | path

Searched refs:qmat (Results 1 - 23 of 23) sorted by relevance

/third_party/ffmpeg/libavcodec/tests/x86/
H A Ddct.c31 int16_t *block, int16_t *qmat);
35 LOCAL_ALIGNED(16, int16_t, qmat, [64]); \
40 qmat[i]=4; \
43 ff_prores_idct_put_10_##INSN (dst, 16, tmp, qmat); \
54 int16_t *block, int16_t *qmat);
/third_party/ffmpeg/libavcodec/
H A Dproresdsp.c67 static 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 static 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()
H A 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()
H A Dsimple_idct.c239 void ff_prores_idct_10(int16_t *block, const int16_t *qmat) in ff_prores_idct_10() argument
244 block[i] *= qmat[i]; in ff_prores_idct_10()
255 void ff_prores_idct_12(int16_t *block, const int16_t *qmat) in ff_prores_idct_12() argument
260 block[i] *= qmat[i]; in ff_prores_idct_12()
H A Dproresenc_kostya.c437 const uint8_t *scan, const int16_t *qmat) in encode_acs()
450 level = blocks[idx] / qmat[scan[i]]; in encode_acs()
472 const int16_t *qmat) in encode_slice_plane()
476 encode_dcs(pb, blocks, blocks_per_slice, qmat[0]); in encode_slice_plane()
478 ctx->scantable, qmat); in encode_slice_plane()
556 uint16_t *qmat; in encode_slice() local
565 qmat = ctx->quants[0]; in encode_slice()
568 qmat = ctx->quants[quant]; in encode_slice()
571 qmat = ctx->custom_q; in encode_slice()
574 qmat[ in encode_slice()
434 encode_acs(PutBitContext *pb, int16_t *blocks, int blocks_per_slice, int plane_size_factor, const uint8_t *scan, const int16_t *qmat) encode_acs() argument
468 encode_slice_plane(ProresContext *ctx, PutBitContext *pb, const uint16_t *src, ptrdiff_t linesize, int mbs_per_slice, int16_t *blocks, int blocks_per_mb, int plane_size_factor, const int16_t *qmat) encode_slice_plane() argument
680 estimate_acs(int *error, int16_t *blocks, int blocks_per_slice, int plane_size_factor, const uint8_t *scan, const int16_t *qmat) estimate_acs() argument
716 estimate_slice_plane(ProresContext *ctx, int *error, int plane, const uint16_t *src, ptrdiff_t linesize, int mbs_per_slice, int blocks_per_mb, int plane_size_factor, const int16_t *qmat, ProresThreadData *td) estimate_slice_plane() argument
807 uint16_t *qmat; find_slice_quant() local
[all...]
H A 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);
H A Dproresdec2.c546 const int16_t *qmat) in decode_slice_luma()
567 ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat); in decode_slice_luma()
568 ctx->prodsp.idct_put(dst +8, dst_stride, block+(1<<6), qmat); in decode_slice_luma()
569 ctx->prodsp.idct_put(dst+4*dst_stride , dst_stride, block+(2<<6), qmat); in decode_slice_luma()
570 ctx->prodsp.idct_put(dst+4*dst_stride+8, dst_stride, block+(3<<6), qmat); in decode_slice_luma()
580 const int16_t *qmat, int log2_blocks_per_mb) in decode_slice_chroma()
602 ctx->prodsp.idct_put(dst, dst_stride, block+(0<<6), qmat); in decode_slice_chroma()
603 ctx->prodsp.idct_put(dst+4*dst_stride, dst_stride, block+(1<<6), qmat); in decode_slice_chroma()
543 decode_slice_luma(AVCodecContext *avctx, SliceContext *slice, uint16_t *dst, int dst_stride, const uint8_t *buf, unsigned buf_size, const int16_t *qmat) decode_slice_luma() argument
577 decode_slice_chroma(AVCodecContext *avctx, SliceContext *slice, uint16_t *dst, int dst_stride, const uint8_t *buf, unsigned buf_size, const int16_t *qmat, int log2_blocks_per_mb) decode_slice_chroma() argument
H A Dproresenc_anatoliy.c230 #define QSCALE(qmat,ind,val) ((val) / ((qmat)[ind]))
247 int blocks_per_slice, int *qmat) in encode_dc_coeffs()
253 prev_dc = QSCALE(qmat, 0, in[0] - 16384); in encode_dc_coeffs()
259 new_dc = QSCALE(qmat, 0, in[idx] - 16384); in encode_dc_coeffs()
278 int16_t *in, int blocks_per_slice, int *qmat, const uint8_t ff_prores_scan[64]) in encode_ac_coeffs()
287 int val = QSCALE(qmat, indp, in[(j << 6) + indp]); in encode_ac_coeffs()
363 static int encode_slice_plane(int16_t *blocks, int mb_count, uint8_t *buf, unsigned buf_size, int *qmat, int sub_sample_chroma, in encode_slice_plane() argument
372 encode_dc_coeffs(&pb, blocks, blocks_per_slice, qmat); in encode_slice_plane()
373 encode_ac_coeffs(&pb, blocks, blocks_per_slice, qmat, ff_prores_sca in encode_slice_plane()
246 encode_dc_coeffs(PutBitContext *pb, int16_t *in, int blocks_per_slice, int *qmat) encode_dc_coeffs() argument
277 encode_ac_coeffs(PutBitContext *pb, int16_t *in, int blocks_per_slice, int *qmat, const uint8_t ff_prores_scan[64]) encode_ac_coeffs() argument
[all...]
H A Dmss34dsp.h31 * @param qmat destination matrix
35 void ff_mss34_gen_quant_mat(uint16_t *qmat, int quality, int luma);
H A Dproresdsp.h33 void (*idct_put)(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat);
H A Dvp8.c356 s->qmat[0].luma_qmul[0] = vp7_ydc_qlookup[ydc_qi]; in vp7_get_quants()
357 s->qmat[0].luma_qmul[1] = vp7_yac_qlookup[yac_qi]; in vp7_get_quants()
358 s->qmat[0].luma_dc_qmul[0] = vp7_y2dc_qlookup[y2dc_qi]; in vp7_get_quants()
359 s->qmat[0].luma_dc_qmul[1] = vp7_y2ac_qlookup[y2ac_qi]; in vp7_get_quants()
360 s->qmat[0].chroma_qmul[0] = FFMIN(vp7_ydc_qlookup[uvdc_qi], 132); in vp7_get_quants()
361 s->qmat[0].chroma_qmul[1] = vp7_yac_qlookup[uvac_qi]; in vp7_get_quants()
384 s->qmat[i].luma_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.ydc_delta, 7)]; in vp8_get_quants()
385 s->qmat[i].luma_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi, 7)]; in vp8_get_quants()
386 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()
388 s->qmat[ in vp8_get_quants()
[all...]
H A Dfic.c51 const uint8_t *qmat; member
164 ctx->qmat[ff_zigzag_direct[i]]; in fic_decode_block()
312 ctx->qmat = src[23] ? fic_qmat_hq : fic_qmat_lq; in fic_decode_frame()
H A Dmss3.c98 uint16_t qmat[64]; member
532 block[0] = dc * bc->qmat[0]; in decode_dct()
559 block[zz_pos] = val * bc->qmat[zz_pos]; in decode_dct()
647 ff_mss34_gen_quant_mat(ctx->dct_coder[i].qmat, quality, !i); in reset_coders()
H A Dvp8.h208 } qmat[4]; member
H A Dmpegvideo_enc.c108 void ff_convert_matrix(MpegEncContext *s, int (*qmat)[64], in ff_convert_matrix() argument
138 qmat[qscale][i] = (int)((UINT64_C(2) << QMAT_SHIFT) / den); in ff_convert_matrix()
150 qmat[qscale][i] = (int)((UINT64_C(2) << (QMAT_SHIFT + 14)) / den); in ff_convert_matrix()
161 qmat[qscale][i] = (int)((UINT64_C(2) << QMAT_SHIFT) / den); in ff_convert_matrix()
162 //qmat [qscale][i] = (1 << QMAT_SHIFT_MMX) / in ff_convert_matrix()
180 while (((max * qmat[qscale][i]) >> shift) > INT_MAX) { in ff_convert_matrix()
3789 const int *qmat; in dct_quantize_trellis_c() local
3844 qmat = n < 4 ? s->q_intra_matrix[qscale] : s->q_chroma_intra_matrix[qscale]; in dct_quantize_trellis_c()
3861 qmat = s->q_inter_matrix[qscale]; in dct_quantize_trellis_c()
3873 int level = block[j] * qmat[ in dct_quantize_trellis_c()
4477 const int *qmat; ff_dct_quantize_c() local
[all...]
H A Ddnxhdenc.c123 const int *qmat; in dnxhd_10bit_dct_quantize_444() local
134 qmat = n < 4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale]; in dnxhd_10bit_dct_quantize_444()
141 level = block[j] * qmat[j]; in dnxhd_10bit_dct_quantize_444()
153 level = block[j] * qmat[j]; in dnxhd_10bit_dct_quantize_444()
182 const int *qmat = n<4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale]; in dnxhd_10bit_dct_quantize() local
195 level = level * qmat[j] >> DNX10BIT_QMAT_SHIFT; in dnxhd_10bit_dct_quantize()
H A Dmpegvideoenc.h133 void ff_convert_matrix(MpegEncContext *s, int (*qmat)[64], uint16_t (*qmat16)[2][64],
H A Dvp3.c291 DECLARE_ALIGNED(16, int16_t, qmat)[3][2][3][64]; ///< qmat[qpi][is_inter][plane]
446 s->qmat[qpi][inter][plane][s->idct_permutation[i]] = in init_dequantizer()
452 s->qmat[qpi][inter][plane][0] = s->qmat[0][inter][plane][0]; in init_dequantizer()
1866 int16_t *dequantizer = s->qmat[frag->qpi][inter][plane]; in vp3_dequant()
1901 block[0] = frag->dc * s->qmat[0][inter][plane][0]; in vp3_dequant()
2572 memcpy(&s->qmat[i], &s1->qmat[i], sizeof(s->qmat[ in vp3_update_thread_context()
[all...]
H A Dg2meet.c228 const uint8_t *qmat = is_chroma ? chroma_quant : luma_quant; in jpg_decode_block() local
239 dc = dc * qmat[0] + c->prev_dc[plane]; in jpg_decode_block()
256 val *= qmat[ff_zigzag_direct[pos]]; in jpg_decode_block()
/third_party/ffmpeg/libavcodec/x86/
H A Dproresdsp_init.c29 int16_t *block, const int16_t *qmat);
31 int16_t *block, const int16_t *qmat);
H A Dmpegvideoenc_template.c90 "psubw "a", "b" \n\t" // out=((ABS(block[i])*qmat[0] - bias[0]*qmat[0])>>16)*sign(block[i])
99 const uint16_t *qmat, *bias; in dct_quantize() local
115 qmat = s->q_intra_matrix16[qscale][0]; in dct_quantize()
119 qmat = s->q_chroma_intra_matrix16[qscale][0]; in dct_quantize()
138 qmat = s->q_inter_matrix16[qscale][0]; in dct_quantize()
148 MOVQ" (%2), "MM"5 \n\t" // qmat[0] in dct_quantize()
157 "pmulhw "MM"5, "MM"0 \n\t" // (ABS(block[i])*qmat[0] - bias[0]*qmat[0])>>16 in dct_quantize()
159 RESTORE_SIGN(MM"1", MM"0") // out=((ABS(block[i])*qmat[ in dct_quantize()
[all...]
H A Dproresdsp.asm56 cglobal prores_idct_put_10, 4, 4, 15, pixels, lsize, block, qmat
/third_party/ffmpeg/libavcodec/tests/
H A Ddct.c72 LOCAL_ALIGNED(16, int16_t, qmat, [64]); in ff_prores_idct_wrap()
76 qmat[i]=4; in ff_prores_idct_wrap()
78 ff_prores_idct_10(dst, qmat); in ff_prores_idct_wrap()

Completed in 27 milliseconds