41 int16_t *
block,
int n,
int qscale)
46 qadd = (qscale - 1) | 1;
62 nCoeffs=
s->intra_scantable.raster_end[
s->block_last_index[
n] ];
66 register const vector
signed short vczero = (
const vector
signed short)vec_splat_s16(0);
69 register vector
signed short blockv, qmulv, qaddv, nqaddv, temp1;
70 register vector
bool short blockv_null, blockv_neg;
71 register short backup_0 =
block[0];
74 qmulv = vec_splat((
vec_s16)vec_lde(0, &qmul8), 0);
75 qaddv = vec_splat((
vec_s16)vec_lde(0, &qadd8), 0);
76 nqaddv = vec_sub(vczero, qaddv);
80 for(; (j + 7) <= nCoeffs ; j+=8) {
81 blockv = vec_ld(j << 1,
block);
82 blockv_neg = vec_cmplt(blockv, vczero);
83 blockv_null = vec_cmpeq(blockv, vczero);
85 temp1 = vec_sel(qaddv, nqaddv, blockv_neg);
87 temp1 = vec_mladd(blockv, qmulv, temp1);
89 blockv = vec_sel(temp1, blockv, blockv_null);
90 vec_st(blockv, j << 1,
block);
97 for(; j <= nCoeffs ; j++) {
126 s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
127 s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;