[FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

Tomas Härdin tjoppen at acc.umu.se
Fri Jun 3 12:22:06 EEST 2022


> +    bytestream_put_buffer(&buf, "qoif", 4);
> +    bytestream_put_be32(&buf, avctx->width);
> +    bytestream_put_be32(&buf, avctx->height);
> +    bytestream_put_byte(&buf, channels);
> +    bytestream_put_byte(&buf, 0);

bytestream_put_byte(&buf, avctx->color_trc == AVCOL_TRC_LINEAR);

Looks good otherwise

/Tomas



More information about the ffmpeg-devel mailing list