Quote:
Originally Posted by Asmodian
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).