View Single Post
Old 19th December 2011, 16:06   #7  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Asmodian View Post
Well you cannot really assume infinite precision.

But Microsoft agrees with you:
That why I said the transform itself should be lossless, except for rounding errors.

In reality there will be some loss due to the limited precision (rounding errors), but whether these will be visible is a different question.

Also dithering could be used to minimize the problem...

Quote:
YUV to RGB can be lossy, since all possible RGB values can convert to YUV , but the reverse isn't true
Still, if we start with RGB data, we can convert all possible values to YUV (actually YCbCr).

And, as these values originate from RGB values, they should map to the part of the YUV space that represents valid RGB values and thus can be converted back to RGB.

After all, this RGB -> YUV -> RGB transform should be lossless - except for the rounding errors, of course.

I see, however, that squeezing the whole RGB space into a small subset of the YUV space causes more rounding errors than using the whole range would (at fixed bpp).
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 19th December 2011 at 18:24.
LoRd_MuldeR is offline   Reply With Quote