[FFmpeg-devel] [PATCH] libavformat/riffenc: handle gray8 format for uncompressed avi

2021-08-19 Thread rui.jiang
add palette data in avi header when the input data is raw gray8 pixel data and the output data is 8bit uncompressed avi video Signed-off-by: rui.jiang <229135...@qq.com> --- libavformat/riffenc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavformat/riffenc.c b/libav

[FFmpeg-devel] [PATCH] libavformat/riffenc: support raw avi for raw PAL8 or Gray8 pixel data

2021-08-16 Thread rui.jiang
add palette data in avi header when the input data is raw PAL8 or Gray8 pixel data and the output data is 8bit raw avi video; Signed-off-by: rui.jiang <229135...@qq.com> --- libavformat/riffenc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libavformat/rif

[FFmpeg-devel] [PATCH] support raw avi for raw PAL8 or Gray8 pixel data

2021-08-16 Thread rui.jiang
add palette data in avi header when the input data is raw PAL8 or Gray8 pixel data and the output data is 8bit raw avi video; Here is a sample: the codec params like: st->codecpar->bits_per_raw_sample=8; st->codecpar->bits_per_coded_sample=8; st->codecpar->format = AV_PIX_