27 uint64_t qscale, uint64_t qadd)
29 uint64_t qmul = qscale << 1;
30 uint64_t correction =
WORD_VEC(qmul * 255 >> 8);
35 for(i = 0; i <= n_coeffs; block += 4, i += 4) {
36 uint64_t levels, negmask, zeros, add, sub;
45 negmask =
maxsw4(levels, -1);
46 negmask =
minsw4(negmask, 0);
49 negmask &= (negmask >> 1) | (1 << 7);
50 negmask =
zap(-1, negmask);
59 levels -= correction & (negmask << 16);
61 add = qadd & ~negmask;
64 add =
zap(add, zeros);
77 int16_t block0 = block[0];
84 qadd = (qscale - 1) | 1;
static void dct_unquantize_h263_inter_axp(MpegEncContext *s, int16_t *block, int n, int qscale)
int h263_aic
Advanded INTRA Coding (AIC)
void(* dct_unquantize_h263_intra)(struct MpegEncContext *s, int16_t *block, int n, int qscale)
Macro definitions for various function/variable attributes.
void(* dct_unquantize_h263_inter)(struct MpegEncContext *s, int16_t *block, int n, int qscale)
av_cold void ff_mpv_common_init_axp(MpegEncContext *s)
int block_last_index[12]
last non zero coefficient in block
static void dct_unquantize_h263_intra_axp(MpegEncContext *s, int16_t *block, int n, int qscale)
static void dct_unquantize_h263_axp(int16_t *block, int n_coeffs, uint64_t qscale, uint64_t qadd)
static uint64_t WORD_VEC(uint64_t x)
ScanTable inter_scantable
if inter == intra then intra should be used to reduce tha cache usage