2009-11-15 63 views

回答

2

檢查這篇文章:http://www.fourcc.org/fccyvrgb.php 轉換是很容易的,所以你也許可以在此基礎上編寫自己的功能:

Y =  (0.257 * R) + (0.504 * G) + (0.098 * B) + 16 

Cr = V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128 

Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128