|
@@ -485,7 +485,7 @@ static inline void wavelet(int *buf, int width, int height, int level)
|
|
|
|
|
|
/*
|
|
|
RGB <=> YUV conversion stuffs.
|
|
|
- YUV coversion is explained as following formula in strict meaning:
|
|
|
+ YUV conversion is explained as following formula in strict meaning:
|
|
|
Y = 0.299R + 0.587G + 0.114B ( 0<=Y<=255)
|
|
|
U = -0.169R - 0.331G + 0.500B (-128<=U<=127)
|
|
|
V = 0.500R - 0.419G - 0.081B (-128<=V<=127)
|
|
@@ -539,7 +539,7 @@ static inline void wavelet(int *buf, int width, int height, int level)
|
|
|
+------+------+
|
|
|
|
|
|
So, we must transfer each sub images individually in strict meaning.
|
|
|
- But at least ZRLE meaning, following one decompositon image is same as
|
|
|
+ But at least ZRLE meaning, following one decomposition image is same as
|
|
|
avobe individual sub image. I use this format.
|
|
|
(Strictly saying, transfer order is reverse(Hxy->Hy->Hx->L)
|
|
|
for simplified procedure for any wavelet level.)
|