/third_party/ffmpeg/libavcodec/arm/ |
D | mpegvideo_armv5te.c | 28 void ff_dct_unquantize_h263_armv5te(int16_t *block, int qmul, int qadd, int count); 36 static inline void dct_unquantize_h263_helper_c(int16_t *block, int qmul, int qadd, int count) in dct_unquantize_h263_helper_c() argument 43 level = level * qmul - qadd; in dct_unquantize_h263_helper_c() 45 level = level * qmul + qadd; in dct_unquantize_h263_helper_c() 56 int level, qmul, qadd; in dct_unquantize_h263_intra_armv5te() local 61 qmul = qscale << 1; in dct_unquantize_h263_intra_armv5te() 78 ff_dct_unquantize_h263_armv5te(block, qmul, qadd, nCoeffs + 1); in dct_unquantize_h263_intra_armv5te() 85 int qmul, qadd; in dct_unquantize_h263_inter_armv5te() local 91 qmul = qscale << 1; in dct_unquantize_h263_inter_armv5te() 95 ff_dct_unquantize_h263_armv5te(block, qmul, qadd, nCoeffs + 1); in dct_unquantize_h263_inter_armv5te()
|
D | vp8.h | 32 int i, uint8_t *token_prob, int16_t qmul[2]);
|
D | mpegvideo_neon.S | 36 vdup.16 q15, r0 @ qmul
|
/third_party/ffmpeg/libavcodec/mips/ |
D | mpegvideo_msa.c | 24 static void h263_dct_unquantize_msa(int16_t *block, int16_t qmul, in h263_dct_unquantize_msa() argument 33 qmul_vec = __msa_fill_h(qmul); in h263_dct_unquantize_msa() 55 level = level * qmul - qadd; in h263_dct_unquantize_msa() 57 level = level * qmul + qadd; in h263_dct_unquantize_msa() 200 int32_t qmul, qadd; in ff_dct_unquantize_h263_intra_msa() local 205 qmul = qscale << 1; in ff_dct_unquantize_h263_intra_msa() 218 h263_dct_unquantize_msa(block, qmul, qadd, nCoeffs, 1); in ff_dct_unquantize_h263_intra_msa() 225 int32_t qmul, qadd; in ff_dct_unquantize_h263_inter_msa() local 231 qmul = qscale << 1; in ff_dct_unquantize_h263_inter_msa() 235 h263_dct_unquantize_msa(block, qmul, qadd, nCoeffs, 0); in ff_dct_unquantize_h263_inter_msa()
|
D | mpegvideo_mmi.c | 31 int64_t level, qmul, qadd, nCoeffs; in ff_dct_unquantize_h263_intra_mmi() local 36 qmul = qscale << 1; in ff_dct_unquantize_h263_intra_mmi() 96 [qmul]"f"(qmul), [qadd]"f"(qadd) in ff_dct_unquantize_h263_intra_mmi() 106 int64_t qmul, qadd, nCoeffs; in ff_dct_unquantize_h263_inter_mmi() local 111 qmul = qscale << 1; in ff_dct_unquantize_h263_inter_mmi() 156 [qmul]"f"(qmul), [qadd]"f"(qadd) in ff_dct_unquantize_h263_inter_mmi()
|
D | h264dsp_mmi.c | 860 int qmul) in ff_h264_luma_dc_dequant_idct_8_mmi() argument 1080 [qmul]"+&r"(qmul) in ff_h264_luma_dc_dequant_idct_8_mmi() 1086 void ff_h264_chroma422_dc_dequant_idct_8_mmi(int16_t *block, int qmul) in ff_h264_chroma422_dc_dequant_idct_8_mmi() argument 1109 block[ 0]= (t[0]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1110 block[ 32]= (t[1]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1111 block[ 64]= (t[2]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1112 block[ 96]= (t[3]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1113 block[ 16]= (t[4]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1114 block[ 48]= (t[5]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() 1115 block[ 80]= (t[6]*qmul + 128) >> 8; in ff_h264_chroma422_dc_dequant_idct_8_mmi() [all …]
|
D | h264dsp_mips.h | 338 int qmul); 339 void ff_h264_chroma_dc_dequant_idct_8_mmi(int16_t *block, int qmul); 340 void ff_h264_chroma422_dc_dequant_idct_8_mmi(int16_t *block, int qmul);
|
/third_party/ffmpeg/libavcodec/ppc/ |
D | mpegvideo_altivec.c | 44 int i, level, qmul, qadd; in dct_unquantize_h263_altivec() local 48 qmul = qscale << 1; in dct_unquantize_h263_altivec() 68 DECLARE_ALIGNED(16, short, qmul8) = qmul; in dct_unquantize_h263_altivec() 102 level = level * qmul - qadd; in dct_unquantize_h263_altivec() 104 level = level * qmul + qadd; in dct_unquantize_h263_altivec()
|
/third_party/ffmpeg/libavcodec/ |
D | h264idct_template.c | 242 void FUNCC(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){ in FUNCC() 269 output[stride* 0+offset]= (int)((z0 + z3)*qmul + 128 ) >> 8; in FUNCC() 270 output[stride* 1+offset]= (int)((z1 + z2)*qmul + 128 ) >> 8; in FUNCC() 271 output[stride* 4+offset]= (int)((z1 - z2)*qmul + 128 ) >> 8; in FUNCC() 272 output[stride* 5+offset]= (int)((z0 - z3)*qmul + 128 ) >> 8; in FUNCC() 277 void FUNCC(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul){ in FUNCC() 297 block[stride*0+offset]= (int)((z0 + z3)*qmul + 128) >> 8; in FUNCC() 298 block[stride*1+offset]= (int)((z1 + z2)*qmul + 128) >> 8; in FUNCC() 299 block[stride*2+offset]= (int)((z1 - z2)*qmul + 128) >> 8; in FUNCC() 300 block[stride*3+offset]= (int)((z0 - z3)*qmul + 128) >> 8; in FUNCC() [all …]
|
D | h264idct.h | 34 void ff_h264_luma_dc_dequant_idct_ ## depth ## _c(int16_t *output, int16_t *input, int qmul);\ 35 void ff_h264_chroma422_dc_dequant_idct_ ## depth ## _c(int16_t *block, int qmul);\ 36 void ff_h264_chroma_dc_dequant_idct_ ## depth ## _c(int16_t *block, int qmul);
|
D | rl.c | 80 int qmul = q * 2; in ff_rl_init_vlc() local 87 qmul = 1; in ff_rl_init_vlc() 107 level = rl->table_level[code] * qmul + qadd; in ff_rl_init_vlc()
|
D | vaapi_vp9.c | 151 .luma_dc_quant_scale = h->h.segmentation.feat[i].qmul[0][0], in vaapi_vp9_decode_slice() 152 .luma_ac_quant_scale = h->h.segmentation.feat[i].qmul[0][1], in vaapi_vp9_decode_slice() 153 .chroma_dc_quant_scale = h->h.segmentation.feat[i].qmul[1][0], in vaapi_vp9_decode_slice() 154 .chroma_ac_quant_scale = h->h.segmentation.feat[i].qmul[1][1], in vaapi_vp9_decode_slice()
|
D | h264_cabac.c | 1585 const uint32_t *qmul, int max_coeff, in decode_cabac_residual_internal() argument 1724 ((type*)block)[j] = (get_cabac_bypass_sign( CC, -qmul[j]) + 32) >> 6; \ in decode_cabac_residual_internal() 1751 … ((type*)block)[j] = ((int)(get_cabac_bypass_sign( CC, -coeff_abs ) * qmul[j] + 32)) >> 6; \ in decode_cabac_residual_internal() 1794 const uint32_t *qmul, 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() 1846 const uint32_t *qmul, in decode_cabac_residual_nondc() argument 1858 decode_cabac_residual_nondc_internal(h, sl, block, cat, n, scantable, qmul, max_coeff); in decode_cabac_residual_nondc() 1866 const uint32_t *qmul; in decode_cabac_luma_residual() local 1877 qmul = h->ps.pps->dequant4_coeff[p][qscale]; in decode_cabac_luma_residual() 1880 …esidual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[1][p], index, scan + 1, qmul, 15); in decode_cabac_luma_residual() [all …]
|
D | msmpeg4dec.c | 651 int qmul, qadd; in ff_msmpeg4_decode_block() local 654 qmul=1; in ff_msmpeg4_decode_block() 694 qmul = s->qscale << 1; in ff_msmpeg4_decode_block() 768 if (level>0) level= level * qmul + qadd; in ff_msmpeg4_decode_block() 769 else level= level * qmul - qadd; in ff_msmpeg4_decode_block() 776 i+= run + rl->max_run[run>>7][level/qmul] + run_diff; //FIXME opt indexing in ff_msmpeg4_decode_block() 785 level = level + rl->max_level[run>>7][(run-1)&63] * qmul;//FIXME opt indexing in ff_msmpeg4_decode_block() 798 if (((i + 192 == 64 && level / qmul == -1) || in ff_msmpeg4_decode_block()
|
D | h264dsp.h | 103 int16_t *input /*align 16*/, int qmul); 104 void (*h264_chroma_dc_dequant_idct)(int16_t *block, int qmul);
|
D | snowdec.c | 121 int qmul= ff_qexp[qlog&(QROOT-1)]<<(qlog>>QSHIFT); in decode_subband_slice_buffered() local 122 int qadd= (s->qbias*qmul)>>QBIAS_SHIFT; in decode_subband_slice_buffered() 127 qmul= 1<<QEXPSHIFT; in decode_subband_slice_buffered() 143 register int t= (int)( (v>>1)*(unsigned)qmul + qadd)>>QEXPSHIFT; in decode_subband_slice_buffered() 228 const int qmul= ff_qexp[qlog&(QROOT-1)]<<(qlog>>QSHIFT); in dequantize_slice_buffered() local 229 const int qadd= (s->qbias*qmul)>>QBIAS_SHIFT; in dequantize_slice_buffered() 240 line[x]= -((-i*(unsigned)qmul + qadd)>>(QEXPSHIFT)); //FIXME try different bias in dequantize_slice_buffered() 242 line[x]= (( i*(unsigned)qmul + qadd)>>(QEXPSHIFT)); in dequantize_slice_buffered()
|
D | vp9block.c | 809 const int16_t *band_counts, int16_t *qmul) in decode_coeffs_b_generic() argument 914 STORE_COEF(coef, rc, (int)((vp8_rac_get(c) ? -val : val) * (unsigned)qmul[!!i]) / 2); in decode_coeffs_b_generic() 916 STORE_COEF(coef, rc, (vp8_rac_get(c) ? -val : val) * (unsigned)qmul[!!i]); in decode_coeffs_b_generic() 928 int16_t *qmul) in decode_coeffs_b_8bpp() argument 931 nnz, scan, nb, band_counts, qmul); in decode_coeffs_b_8bpp() 938 int16_t *qmul) in decode_coeffs_b32_8bpp() argument 941 nnz, scan, nb, band_counts, qmul); in decode_coeffs_b32_8bpp() 948 int16_t *qmul) in decode_coeffs_b_16bpp() argument 951 nnz, scan, nb, band_counts, qmul); in decode_coeffs_b_16bpp() 958 int16_t *qmul) in decode_coeffs_b32_16bpp() argument [all …]
|
D | svq3.c | 223 const unsigned qmul = svq3_dequant_coeff[qp]; in svq3_luma_dc_dequant_idct_c() local 248 output[stride * 0 + offset] = (int)((z0 + z3) * qmul + 0x80000) >> 20; in svq3_luma_dc_dequant_idct_c() 249 output[stride * 2 + offset] = (int)((z1 + z2) * qmul + 0x80000) >> 20; in svq3_luma_dc_dequant_idct_c() 250 output[stride * 8 + offset] = (int)((z1 - z2) * qmul + 0x80000) >> 20; in svq3_luma_dc_dequant_idct_c() 251 output[stride * 10 + offset] = (int)((z0 - z3) * qmul + 0x80000) >> 20; in svq3_luma_dc_dequant_idct_c() 259 const int qmul = svq3_dequant_coeff[qp]; in svq3_add_idct_c() local 264 : qmul * (block[0] >> 3) / 2); in svq3_add_idct_c() 287 … dst[i + stride * 0] = av_clip_uint8(dst[i + stride * 0] + ((int)((z0 + z3) * qmul + rr) >> 20)); in svq3_add_idct_c() 288 … dst[i + stride * 1] = av_clip_uint8(dst[i + stride * 1] + ((int)((z1 + z2) * qmul + rr) >> 20)); in svq3_add_idct_c() 289 … dst[i + stride * 2] = av_clip_uint8(dst[i + stride * 2] + ((int)((z1 - z2) * qmul + rr) >> 20)); in svq3_add_idct_c() [all …]
|
D | h264_cavlc.c | 436 const uint8_t *scantable, const uint32_t *qmul, in decode_residual() argument 596 ((type*)block)[*scantable] = ((int)(level[0] * qmul[*scantable] + 32))>>6; \ in decode_residual() 604 ((type*)block)[*scantable]= ((int)(level[i] * qmul[*scantable] + 32))>>6; \ in decode_residual() 608 ((type*)block)[*scantable]= ((int)(level[i] * qmul[*scantable] + 32))>>6; \ in decode_residual() 1157 …const uint32_t *qmul = h->ps.pps->dequant4_coeff[chroma_idx+1+(IS_INTRA( mb_type ) ? 0:3)][sl->chr… in ff_h264_decode_mb_cavlc() local 1162 if (decode_residual(h, sl, gb, mb, index, scan + 1, qmul, 15) < 0) in ff_h264_decode_mb_cavlc()
|
D | vp9shared.h | 144 int16_t qmul[2][2]; member
|
D | snowenc.c | 1251 const int qmul= ff_qexp[qlog&(QROOT-1)]<<((qlog>>QSHIFT) + ENCODER_EXTRA_BITS); in quantize() local 1261 bias= bias ? 0 : (3*qmul)>>3; in quantize() 1262 thres1= ((qmul - bias)>>QEXPSHIFT) - 1; in quantize() 1273 i/= qmul; //FIXME optimize in quantize() 1278 i/= qmul; //FIXME optimize in quantize() 1293 i= (i + bias) / qmul; //FIXME optimize in quantize() 1298 i= (i + bias) / qmul; //FIXME optimize in quantize() 1312 const int qmul= ff_qexp[qlog&(QROOT-1)]<<(qlog>>QSHIFT); in dequantize() local 1313 const int qadd= (s->qbias*qmul)>>QBIAS_SHIFT; in dequantize() 1322 src[x + y*stride]= -((-i*qmul + qadd)>>(QEXPSHIFT)); //FIXME try different bias in dequantize() [all …]
|
D | mpegvideo.c | 213 int i, level, qmul, qadd; in dct_unquantize_h263_intra_c() local 218 qmul = qscale << 1; in dct_unquantize_h263_intra_c() 235 level = level * qmul - qadd; in dct_unquantize_h263_intra_c() 237 level = level * qmul + qadd; in dct_unquantize_h263_intra_c() 247 int i, level, qmul, qadd; in dct_unquantize_h263_inter_c() local 253 qmul = qscale << 1; in dct_unquantize_h263_inter_c() 261 level = level * qmul - qadd; in dct_unquantize_h263_inter_c() 263 level = level * qmul + qadd; in dct_unquantize_h263_inter_c()
|
/third_party/ffmpeg/libavcodec/x86/ |
D | mpegvideo.c | 35 x86_reg level, qmul, qadd, nCoeffs; in dct_unquantize_h263_intra_mmx() local 37 qmul = qscale << 1; in dct_unquantize_h263_intra_mmx() 100 ::"r" (block+nCoeffs), "rm"(qmul), "rm" (qadd), "r" (2*(-nCoeffs)) in dct_unquantize_h263_intra_mmx() 110 x86_reg qmul, qadd, nCoeffs; in dct_unquantize_h263_inter_mmx() local 112 qmul = qscale << 1; in dct_unquantize_h263_inter_mmx() 163 ::"r" (block+nCoeffs), "rm"(qmul), "rm" (qadd), "r" (2*(-nCoeffs)) in dct_unquantize_h263_inter_mmx()
|
D | h264dsp_init.c | 90 void ff_h264_luma_dc_dequant_idct_mmx(int16_t *output, int16_t *input, int qmul); 91 void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul);
|
/third_party/ffmpeg/libavcodec/alpha/ |
D | mpegvideo_alpha.c | 29 uint64_t qmul = qscale << 1; in dct_unquantize_h263_axp() local 30 uint64_t correction = WORD_VEC(qmul * 255 >> 8); in dct_unquantize_h263_axp() 58 levels *= qmul; in dct_unquantize_h263_axp()
|