How to perform RGB->YUV conversion with ActionScript?

≡放荡痞女 提交于 2019-12-08 11:54:25

问题


How to perform RGB->YUV conversion with ActionScript?

Libs? Tuts? Articles?


回答1:


Check this article: http://www.fourcc.org/fccyvrgb.php Conversion is quite easy so you probably could write your own function based on this:

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


来源:https://stackoverflow.com/questions/1737712/how-to-perform-rgb-yuv-conversion-with-actionscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!