Current Issue Cover
基于SSE2的YUV与RGB色彩空间转换
摘 要
视频处理中需要完成从YUV色彩空间到RGB色彩空间的转换。通过分析YUV格式与RGB格式间的转换算法,提出使用整形计算替代浮点运算,利用整除256对应右移八位操作,提高运算速度。结合使用Intel单指令多数据扩展指令集SSE2技术进行算法优化后,显著提高格式转换运算的效率。实验结果表明,采用此技术可以提高25倍以上的运算速度,在视频处理中具有很好的应用性。
关键词
Conversion of Color Space Between YUV and RGB on SSE2 Technique
Abstract
The conversion should be completed from the YUV color space to RGB color space in video processing. In this paper, by analyzing the YUV format and RGB format conversion algorithm, floating point operations is replaced by integer operations and divisible by 256 corresponds to eight right shift operation to increase the speed of calculation. Combine intel single instruction, multiple data extension SSE2 instruction set technology optimization algorithm, the efficiency of the different digital video format conversion is significantly improved. Experiments prove that SSE2 technology can increase by 25 times the computational speed and has a good application in the video processing.
Keywords

订阅号|日报