问题描述
我想使用libpng函数解码png图像并将其解码为YUV444数据格式,但我不知道要调用哪个函数,或者如何编写这个自定义回调函数?
我发现一些代码使用libpng来解码png图像,但我不知道如何设置png数据格式(如RGB888,YUV444等)。
我希望能够提供基于libpng的代码,非常感谢。有C ++ / C
我尝试过:
我找到一些使用libpng解码png图像的代码,但我不知道如何设置png数据格式(如RGB888,YUV444等)。
I would like to use function of libpng to decode png image and decode it into YUV444 data format, but I do not know which function to call, or how to write this custom callback function?
I find some code to use libpng to decode png image, but I do not know how to set the png data format (such as RGB888, YUV444, etc.).
I hope to be able to provide code based on libpng, very grateful.With C ++ / C
What I have tried:
I find some code to use libpng to decode png image, but I do not know how to set the png data format (such as RGB888, YUV444, etc.).
推荐答案
这篇关于如何将png转换为yuv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!