原文地址:http://www.mingjianhua.com/post/57.html
YUV 与RGB互转的函数
头文件
//colorconvert.h
#ifndef _COLORCONVERT_H
#define _COLORCONVERT_H 1
void InitConvtTbl();
void i420_to_rgb24(unsigned char *src, unsigned char *dst, int width,int height);
void rgb24_to_i420(unsigned char *src,unsigned char *dst,int width,int height);
#endif
CPP文件
本文提供了一段使用C++语言实现的YUV与RGB颜色空间转换的函数代码,包括初始化转换表、从YUV到RGB转换以及从RGB到YUV转换的功能。
840

被折叠的 条评论
为什么被折叠?



