Skip to content
Snippets Groups Projects
Commit f38468a8 authored by Monty's avatar Monty
Browse files

Correct Cb plane bug in conversion from RGB->YCbCr; the upper-right pixel was...

Correct Cb plane bug in conversion from RGB->YCbCr; the upper-right pixel was ignored by mistake and the upper-left pixel used twice.


svn path=/trunk/theora/; revision=19154
parent c55c7841
No related branches found
No related tags found
No related merge requests found
......@@ -331,7 +331,7 @@ rgb_to_yuv(png_bytep *png,
yuv_u[(x >> 1) + (y >> 1) * ycbcr[1].stride] =
clamp( ((-33488*r0-65744*g0+99232*b0+29032005)/4 +
(-33488*r0-65744*g0+99232*b0+29032005)/4 +
(-33488*r1-65744*g1+99232*b1+29032005)/4 +
(-33488*r2-65744*g2+99232*b2+29032005)/4 +
(-33488*r3-65744*g3+99232*b3+29032005)/4)/225930);
yuv_v[(x >> 1) + (y >> 1) * ycbcr[2].stride] =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment