如何将RGB转换为YUV然后将其保存为YUV文件? [英] How conver RGB to YUV and then save it as YUV file?

查看:405
本文介绍了如何将RGB转换为YUV然后将其保存为YUV文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我尝试学习如何将rgb转换为yuv,然后通过c ++保存yuv文件,但无法找到任何示例或文档如何执行此操作。 Convertin rgb to yuv主要在WIKI中描述(btw哪个公式需要使用?)。但我无法找到如何将其打包成yuv格式以及如何将这些数据保存到yuv文件中。



我尝试了什么:



i已经有rgb图像数据。需要示例如何将rgb保存为yuv文件,然后通过任何图像查看器进行检查

Hello, i try to learn how to convert rgb to yuv and then save yuv file by c++, but cant find any examples or documentation how to do that. Convertin rgb to yuv is mostly described in WIKI (btw wich formula need to use?). but i cant find how to pack it into yuv format and how to save this data into yuv file.

What I have tried:

i have already rgb data of image. need examples how to save rgb as yuv file and then check it by any image viewer

推荐答案

看看,例如,在此在YUV和RGB之间转换(Windows CE .NET 4.2) [ ^ ]。
Have a look, for instance, at this Converting Between YUV and RGB (Windows CE .NET 4.2)[^].


这篇关于如何将RGB转换为YUV然后将其保存为YUV文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆