Home
last modified time | relevance | path

Searched refs:DESCALE (Results 1 – 10 of 10) sorted by relevance

/utopia/UTPA2-700.0.x/modules/ojpd_vdec_v2/api/jpeg_ex/cmodel/src/
H A Didct.c139 #define DESCALE(x,n) (((x) + (SCALEDONE << ((n)-1))) >> (n)) macro
222 wsptr[0] = ( S16 )DESCALE( tmp10 + tmp3, CONST_BITS - PASS1_BITS ); in idct()
223 wsptr[7] = ( S16 )DESCALE( tmp10 - tmp3, CONST_BITS - PASS1_BITS ); in idct()
224 wsptr[1] = ( S16 )DESCALE( tmp11 + tmp2, CONST_BITS - PASS1_BITS ); in idct()
225 wsptr[6] = ( S16 )DESCALE( tmp11 - tmp2, CONST_BITS - PASS1_BITS ); in idct()
226 wsptr[2] = ( S16 )DESCALE( tmp12 + tmp1, CONST_BITS - PASS1_BITS ); in idct()
227 wsptr[5] = ( S16 )DESCALE( tmp12 - tmp1, CONST_BITS - PASS1_BITS ); in idct()
228 wsptr[3] = ( S16 )DESCALE( tmp13 + tmp0, CONST_BITS - PASS1_BITS ); in idct()
229 wsptr[4] = ( S16 )DESCALE( tmp13 - tmp0, CONST_BITS - PASS1_BITS ); in idct()
242 S16 dcval = ( S16 )DESCALE( ( S32 )dataptr[0], PASS1_BITS + 3 ) + 128; in idct()
[all …]
H A Djidctint.c230 #define DESCALE(x,n) (((x) + (SCALEDONE << ((n)-1))) >> (n)) macro
354 wsptr[DCTSIZE * 0] = ( int )DESCALE( tmp10 + tmp3, CONST_BITS - PASS1_BITS );
355 wsptr[DCTSIZE * 7] = ( int )DESCALE( tmp10 - tmp3, CONST_BITS - PASS1_BITS );
356 wsptr[DCTSIZE * 1] = ( int )DESCALE( tmp11 + tmp2, CONST_BITS - PASS1_BITS );
357 wsptr[DCTSIZE * 6] = ( int )DESCALE( tmp11 - tmp2, CONST_BITS - PASS1_BITS );
358 wsptr[DCTSIZE * 2] = ( int )DESCALE( tmp12 + tmp1, CONST_BITS - PASS1_BITS );
359 wsptr[DCTSIZE * 5] = ( int )DESCALE( tmp12 - tmp1, CONST_BITS - PASS1_BITS );
360 wsptr[DCTSIZE * 3] = ( int )DESCALE( tmp13 + tmp0, CONST_BITS - PASS1_BITS );
361 wsptr[DCTSIZE * 4] = ( int )DESCALE( tmp13 - tmp0, CONST_BITS - PASS1_BITS );
388 …int dcval = ( int )DESCALE( ( INT32 )wsptr[DCTSIZE*0], PASS1_BITS + 3 ) + 128; ///range_limit[(int…
[all …]
H A Djidctfst.c192 #undef DESCALE
194 #define DESCALE(x,n) ((x) >> (n)) //=> speed a little with a compromise in accuracy macro
204 #define MULTIPLY(var,cnst) ((DCTELEM) DESCALE((var) * (cnst), CONST_BITS))
218 DESCALE((coef)*(quantval), IFAST_SCALE_BITS-PASS1_BITS)
/utopia/UTPA2-700.0.x/modules/ojpd_vdec_v1/api/jpeg/cmodel/src/
H A Didct.c139 #define DESCALE(x,n) (((x) + (SCALEDONE << ((n)-1))) >> (n)) macro
222 wsptr[0] = ( S16 )DESCALE( tmp10 + tmp3, CONST_BITS - PASS1_BITS ); in idct()
223 wsptr[7] = ( S16 )DESCALE( tmp10 - tmp3, CONST_BITS - PASS1_BITS ); in idct()
224 wsptr[1] = ( S16 )DESCALE( tmp11 + tmp2, CONST_BITS - PASS1_BITS ); in idct()
225 wsptr[6] = ( S16 )DESCALE( tmp11 - tmp2, CONST_BITS - PASS1_BITS ); in idct()
226 wsptr[2] = ( S16 )DESCALE( tmp12 + tmp1, CONST_BITS - PASS1_BITS ); in idct()
227 wsptr[5] = ( S16 )DESCALE( tmp12 - tmp1, CONST_BITS - PASS1_BITS ); in idct()
228 wsptr[3] = ( S16 )DESCALE( tmp13 + tmp0, CONST_BITS - PASS1_BITS ); in idct()
229 wsptr[4] = ( S16 )DESCALE( tmp13 - tmp0, CONST_BITS - PASS1_BITS ); in idct()
242 S16 dcval = ( S16 )DESCALE( ( S32 )dataptr[0], PASS1_BITS + 3 ) + 128; in idct()
[all …]
H A Djidctint.c230 #define DESCALE(x,n) (((x) + (SCALEDONE << ((n)-1))) >> (n)) macro
354 wsptr[DCTSIZE * 0] = ( int )DESCALE( tmp10 + tmp3, CONST_BITS - PASS1_BITS );
355 wsptr[DCTSIZE * 7] = ( int )DESCALE( tmp10 - tmp3, CONST_BITS - PASS1_BITS );
356 wsptr[DCTSIZE * 1] = ( int )DESCALE( tmp11 + tmp2, CONST_BITS - PASS1_BITS );
357 wsptr[DCTSIZE * 6] = ( int )DESCALE( tmp11 - tmp2, CONST_BITS - PASS1_BITS );
358 wsptr[DCTSIZE * 2] = ( int )DESCALE( tmp12 + tmp1, CONST_BITS - PASS1_BITS );
359 wsptr[DCTSIZE * 5] = ( int )DESCALE( tmp12 - tmp1, CONST_BITS - PASS1_BITS );
360 wsptr[DCTSIZE * 3] = ( int )DESCALE( tmp13 + tmp0, CONST_BITS - PASS1_BITS );
361 wsptr[DCTSIZE * 4] = ( int )DESCALE( tmp13 - tmp0, CONST_BITS - PASS1_BITS );
388 …int dcval = ( int )DESCALE( ( INT32 )wsptr[DCTSIZE*0], PASS1_BITS + 3 ) + 128; ///range_limit[(int…
[all …]
H A Djidctfst.c192 #undef DESCALE
194 #define DESCALE(x,n) ((x) >> (n)) //=> speed a little with a compromise in accuracy macro
204 #define MULTIPLY(var,cnst) ((DCTELEM) DESCALE((var) * (cnst), CONST_BITS))
218 DESCALE((coef)*(quantval), IFAST_SCALE_BITS-PASS1_BITS)
/utopia/UTPA2-700.0.x/modules/njpd/api/njpeg_ex/
H A DapiJPEG_OJPD.c265 #define DESCALE(a,m) (((a) + (SCALE_DONE << ((m)-1))) >> (m)) macro
9320 wsptr[0] = ( MS_S16 )DESCALE( t10 + t3, 13 - 2 ); in msAPI_JPEG_idct()
9321 wsptr[1] = ( MS_S16 )DESCALE( t11 + t2, 13 - 2 ); in msAPI_JPEG_idct()
9322 wsptr[2] = ( MS_S16 )DESCALE( t12 + t1, 13 - 2 ); in msAPI_JPEG_idct()
9323 wsptr[3] = ( MS_S16 )DESCALE( t13 + t0, 13 - 2 ); in msAPI_JPEG_idct()
9324 wsptr[4] = ( MS_S16 )DESCALE( t13 - t0, 13 - 2 ); in msAPI_JPEG_idct()
9325 wsptr[5] = ( MS_S16 )DESCALE( t12 - t1, 13 - 2 ); in msAPI_JPEG_idct()
9326 wsptr[6] = ( MS_S16 )DESCALE( t11 - t2, 13 - 2 ); in msAPI_JPEG_idct()
9327 wsptr[7] = ( MS_S16 )DESCALE( t10 - t3, 13 - 2 ); in msAPI_JPEG_idct()
9340 MS_S16 dc_val = ( MS_S16 )DESCALE( ( MS_S32 )pdata[0], 2 + 3 ) + 128; in msAPI_JPEG_idct()
[all …]
H A DapiJPEG.c288 #define DESCALE(a,m) (((a) + (SCALE_DONE << ((m)-1))) >> (m)) macro
9903 wsptr[0] = ( MS_S16 )DESCALE( t10 + t3, 13 - 2 ); in msAPI_JPEG_idct()
9904 wsptr[1] = ( MS_S16 )DESCALE( t11 + t2, 13 - 2 ); in msAPI_JPEG_idct()
9905 wsptr[2] = ( MS_S16 )DESCALE( t12 + t1, 13 - 2 ); in msAPI_JPEG_idct()
9906 wsptr[3] = ( MS_S16 )DESCALE( t13 + t0, 13 - 2 ); in msAPI_JPEG_idct()
9907 wsptr[4] = ( MS_S16 )DESCALE( t13 - t0, 13 - 2 ); in msAPI_JPEG_idct()
9908 wsptr[5] = ( MS_S16 )DESCALE( t12 - t1, 13 - 2 ); in msAPI_JPEG_idct()
9909 wsptr[6] = ( MS_S16 )DESCALE( t11 - t2, 13 - 2 ); in msAPI_JPEG_idct()
9910 wsptr[7] = ( MS_S16 )DESCALE( t10 - t3, 13 - 2 ); in msAPI_JPEG_idct()
9923 MS_S16 dc_val = ( MS_S16 )DESCALE( ( MS_S32 )pdata[0], 2 + 3 ) + 128; in msAPI_JPEG_idct()
[all …]
/utopia/UTPA2-700.0.x/modules/ojpd_vdec_v1/api/jpeg/
H A DapiJPEG.c263 #define DESCALE(a,m) (((a) + (SCALE_DONE << ((m)-1))) >> (m)) macro
9291 wsptr[0] = ( MS_S16 )DESCALE( t10 + t3, 13 - 2 ); in msAPI_JPEG_idct()
9292 wsptr[1] = ( MS_S16 )DESCALE( t11 + t2, 13 - 2 ); in msAPI_JPEG_idct()
9293 wsptr[2] = ( MS_S16 )DESCALE( t12 + t1, 13 - 2 ); in msAPI_JPEG_idct()
9294 wsptr[3] = ( MS_S16 )DESCALE( t13 + t0, 13 - 2 ); in msAPI_JPEG_idct()
9295 wsptr[4] = ( MS_S16 )DESCALE( t13 - t0, 13 - 2 ); in msAPI_JPEG_idct()
9296 wsptr[5] = ( MS_S16 )DESCALE( t12 - t1, 13 - 2 ); in msAPI_JPEG_idct()
9297 wsptr[6] = ( MS_S16 )DESCALE( t11 - t2, 13 - 2 ); in msAPI_JPEG_idct()
9298 wsptr[7] = ( MS_S16 )DESCALE( t10 - t3, 13 - 2 ); in msAPI_JPEG_idct()
9311 MS_S16 dc_val = ( MS_S16 )DESCALE( ( MS_S32 )pdata[0], 2 + 3 ) + 128; in msAPI_JPEG_idct()
[all …]
/utopia/UTPA2-700.0.x/modules/ojpd_vdec_v2/api/jpeg_ex/
H A DapiJPEG.c270 #define DESCALE(a,m) (((a) + (SCALE_DONE << ((m)-1))) >> (m)) macro
9278 wsptr[0] = ( MS_S16 )DESCALE( t10 + t3, 13 - 2 ); in msAPI_JPEG_idct()
9279 wsptr[1] = ( MS_S16 )DESCALE( t11 + t2, 13 - 2 ); in msAPI_JPEG_idct()
9280 wsptr[2] = ( MS_S16 )DESCALE( t12 + t1, 13 - 2 ); in msAPI_JPEG_idct()
9281 wsptr[3] = ( MS_S16 )DESCALE( t13 + t0, 13 - 2 ); in msAPI_JPEG_idct()
9282 wsptr[4] = ( MS_S16 )DESCALE( t13 - t0, 13 - 2 ); in msAPI_JPEG_idct()
9283 wsptr[5] = ( MS_S16 )DESCALE( t12 - t1, 13 - 2 ); in msAPI_JPEG_idct()
9284 wsptr[6] = ( MS_S16 )DESCALE( t11 - t2, 13 - 2 ); in msAPI_JPEG_idct()
9285 wsptr[7] = ( MS_S16 )DESCALE( t10 - t3, 13 - 2 ); in msAPI_JPEG_idct()
9298 MS_S16 dc_val = ( MS_S16 )DESCALE( ( MS_S32 )pdata[0], 2 + 3 ) + 128; in msAPI_JPEG_idct()
[all …]