Quote:
Originally Posted by vcmohan
I am looking for a color conversion code using template for all uint and float formats. Something like
Code:
template <typename T>
void RGB_YUV( T*YUV, T* RGB)
and
template <typename T>
void YUV_RGB(T* RGB, T* YUV)
can you guide me? I tried to code but became messy and needed more inputs like nbits, min, max, int/float
|
It will be complex, plus you'll need the YUV-RGB conversion matrix as well (e.g. bt.601, bt.709 etc..)
edit: one can dig into avsresize which is not only a resizer but a most powerful format and color space converter as well.
It's parameter set is quite complex.
http://avisynth.nl/index.php/Avsresize