/CSConvertKit

CSConvertKit is a series of tools for converting YUV colorspace, such as YUV420P(I420,YV12),YUV420SP(NV21,NV12), NV16, RGB24, BGR24, YUV422P, YUV444 and so on.

Primary LanguageC++Apache License 2.0Apache-2.0

CSConvertKit

CSConvertKit is a series of tools for converting YUV colorspace, such as YUV420P(I420,YV12),YUV420SP(NV21,NV12), NV16, RGB24, BGR24,YUV422P, YUV444 and so on.

0、支持平台

Windows, Linux, macOS(Apple Silicon)

1、参考

【Codecs系列】颜色空间转换CSConvert系列汇总: https://blog.csdn.net/SoaringLee_fighting/article/details/95213543

2、支持功能

说明:当前支持下面6大类(14种)颜色空间转换功能。

2.1、YUV420与YUV400相互转换

功能: 实现YUV420P转换成亮度分量Y。

Usage:YUV420PtoMonoY.exe input.yuv output.yuv width height

2.2、YUV420P与YUV420SP相互转换

(1) I420toNV12

Usage:I420toNV12.exe input.yuv width height

(2) I420toNV21

Usage:I420toNV21.exe input.yuv width height

(3) I420toYV12

Usage:I420toYV12.exe input.yuv width height

(4) NV12toI420

Usage: NV12toI420.exe input.yuv width height

(5) NV12toYV12

Usage:NV12toYV12.exe input.yuv width height

(6) NV12toYVYU

Usage: NV12toYVYU.exe infile outfile width height

(7) NV21toYV12

Usage: NV21toYV12.exe input.yuv width height

2.3、YUV420与RGB24相互转换

(1) yuv420ptoRGB24

Usage: yuv420ptoRGB24.exe yuv420_file rgb24_filename width height

(2) NV21toBGR24

Usage: NV21toBGR24.exe inputYUV outputYUV width height framenum

(3) BGR24toYUV420P

Usage: ./BGR24toYUV420P.exe inputYUV outputYUV width height

2.4、YUV420与YUV422相互转换

(1) YUV420PtoYUV422

Usage:YUV420PtoYUV422.exe inputfile outputfile width height

2.5、YUV420与YUV444相互转换

(1) YUV420toYUV444

Usage:YUV420toYUV444.exe inputfile outputfile width height

2.6、YUV422P与YUV422SP相互转换

(1) YUV422PtoNV16

Usage: YUV422PtoNV16.exe input.yuv width height

3、目录结构说明

├── LICENSE :License文件
├── Projects :颜色空间转换工具的windows平台vs2013工程
├── README.md :本文件
├── bin :各平台的可执行文件
└── build :Linux平台和macOS平台编译脚本

4、Revision History

  • v1.0(2020.7.1):
    Feature:
    1、颜色空间转换工具集:YUV420P(I420/YV12),YUV420SP(NV12/NV21),YUV422P,YUV422SP(NV16),YUV444,RGB24。
    2、平台支持:Windows平台。

  • v1.1(2021.7.3):
    Feature:
    1、颜色空间转换工具集支持Linux平台和macOS平台。