# Encoding YUV Color Space with Positive Numbers

I got 2 hdr rgb textures/signals. When fetched one gets bicubicly interpolated and the other bilinearly. So I was thinking I can store as YUV and store Y from each texture in the bicubic one and the distribution of the rest of the channels are not as important.

Well another restriction is that the hdr output only accept pos float values.

So what I'm wondering are there some other colour space transform similar to standard YUV but which range is positive only?

Thanks!

So the channels Co, Cg are in the range [-0.5, 0.5].
When you encode them, make sure you encode Co', Cg' where Co' = Co + 0.5 and Cg' = cG + 0.5.
• Do you have the Sensor Data? As even in HDR sensor the data is in some data class (UINT32) hence you can easily infer the maximum required offset. – Royi Mar 24 '19 at 11:05