Lines Matching +full:jpeg +full:- +full:codec

3  * THIS FILE IS PART OF THE 'ZYWRLE' VNC CODEC SOURCE CODE.         *
6 * GOVERNED BY A FOLLOWING BSD-STYLE SOURCE LICENSE. *
9 * THE 'ZYWRLE' VNC CODEC SOURCE CODE IS (C) COPYRIGHT 2006 *
19 - Redistributions of source code must retain the above copyright
22 - Redistributions in binary form must reproduce the above copyright
26 - Neither the name of the Hitachi Systems & Services, Ltd. nor
112 0, -120, -120, -120, -120, -120, -120, -120,
113 -120, -120, -120, -112, -112, -112, -112, -112,
114 -112, -112, -112, -112, -104, -104, -104, -104,
115 -104, -104, -104, -104, -104, -104, -96, -96,
116 -96, -96, -96, -88, -88, -88, -88, -88,
117 -88, -88, -88, -88, -88, -88, -88, -80,
118 -80, -80, -80, -80, -80, -72, -72, -72,
119 -72, -72, -72, -72, -72, -64, -64, -64,
120 -64, -64, -64, -64, -64, -56, -56, -56,
121 -56, -56, -56, -56, -56, -56, -48, -48,
122 -48, -48, -48, -48, -48, -48, -48, -48,
123 -48, -32, -32, -32, -32, -32, -32, -32,
124 -32, -32, -32, -32, -32, -32, -32, -32,
125 -32, -32, 0, 0, 0, 0, 0, 0,
146 0, -120, -120, -120, -120, -120, -120, -120,
147 -120, -120, -120, -120, -120, -112, -112, -112,
148 -112, -112, -112, -112, -112, -112, -104, -104,
149 -104, -104, -104, -104, -104, -104, -104, -104,
150 -104, -88, -88, -88, -88, -88, -88, -88,
151 -88, -88, -88, -88, -80, -80, -80, -80,
152 -80, -80, -80, -80, -80, -80, -80, -80,
153 -80, -64, -64, -64, -64, -64, -64, -64,
154 -64, -64, -64, -64, -64, -64, -64, -64,
155 -64, -48, -48, -48, -48, -48, -48, -48,
156 -48, -48, -48, -48, -48, -48, -48, -48,
157 -48, -48, -48, -48, -48, -48, -48, -48,
158 -48, 0, 0, 0, 0, 0, 0, 0,
180 0, -88, -88, -88, -88, -88, -88, -88,
181 -88, -88, -88, -88, -88, -88, -88, -88,
182 -88, -88, -88, -88, -88, -88, -88, -88,
183 -88, -88, -88, -88, -88, -88, -88, -88,
184 -88, -88, -88, -88, -88, -88, -88, -88,
185 -88, -88, -88, -88, -88, -88, -88, -88,
186 -88, -88, -88, -88, -88, -88, -88, -88,
187 -88, -88, -88, -88, -88, -88, -88, -88,
188 -88, 0, 0, 0, 0, 0, 0, 0,
268 /* Piecewise-Linear Harr(PLHarr) */ in harr()
277 x0 -= x1; /* H = -B */ in harr()
281 x0 -= x1; in harr()
292 1D-Wavelet transform.
321 s -= 2; in wavelet_level()
344 m = &(zywrle_param[level - 1][l]); in filter_wavelet_square()
376 h += (s-1)*width; in filter_wavelet_square()
389 y=f(x) = sign(x)*round( ((abs(x)/(2^7))^ r )* 2^(bo-1) )*2^(8-bo)
390 x=f-1(y) = sign(y)*round( ((abs(y)/(2^7))^(1/r))* 2^(bi-1) )*2^(8-bi)
397 r = 0.75 is famous non liner quantization used in MP3 audio codec.
406 We need only quantized-dequantized(filtered) value rather than quantized value
407 itself because all values are packed or palette-lized in later ZRLE section.
420 m = zywrle_param[level - 1][l]; in filter_wavelet_square()
438 h += (s - 1) * width; in filter_wavelet_square()
471 Coefficients manages as 24 bits little-endian pixel. */
490 U = -0.169R - 0.331G + 0.500B (-128<=U<=127)
491 V = 0.500R - 0.419G - 0.081B (-128<=V<=127)
494 in JPEG-2000 specification.
496 U = B-G (-256<=U<=255)
497 V = R-G (-256<=V<=255)
500 /* RCT is N-bit RGB to N-bit Y and N+1-bit UV.
501 For make Same N-bit, UV is lossy.
502 More exact PLHarr, we reduce to odd range(-127<=x<=127). */
506 u = b - g; \
507 v = r - g; \
508 y -= 128; \
514 if (y == -128) { \
515 y += (0xFFFFFFFF - ymask + 1); \
517 if (u == -128) { \
518 u += (0xFFFFFFFF - uvmask + 1); \
520 if (v == -128) { \
521 v += (0xFFFFFFFF - uvmask + 1); \
531 +------+------+
535 +------+------+
539 +------+------+
544 (Strictly saying, transfer order is reverse(Hxy->Hy->Hx->L)
547 +------+------+
549 +------+------+
551 +------+------+
553 +------+------+
555 +------+------+
560 if( data - p >= (w + uw) ) { \
561 data += scanline-(w + uw); \
584 ph += (s - 1) * w; \
622 p += scanline - uw; \
635 p += scanline - w; \
648 p += scanline-uw; \
655 *w &= ~((1 << level) - 1); in zywrle_calc_size()
656 *h &= ~((1 << level) - 1); in zywrle_calc_size()