[FFmpeg-devel] [PATCH] Add FITS Encoder

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Jul 21 00:57:45 EEST 2017


2017-07-20 21:46 GMT+02:00 Paras Chadha <paraschadha18 at gmail.com>:

> +            case AV_PIX_FMT_RGB24:
> +            case AV_PIX_FMT_RGBA:
> +                for (k = 0; k < naxis3; k++) {
> +                    for (i = 0; i < avctx->height; i++) {
> +                        ptr = p->data[0] + (avctx->height - i - 1) * p->linesize[0] + k;
> +                        for (j = 0; j < avctx->width; j++) {
> +                            bytestream_put_byte(&bytestream, ptr[0]);
> +                            ptr += naxis3;

(Sorry if this is nonsense:)
Shouldn't you be using PIX_FMT_GBRP and PIX_FMT_GBRAP?

Carl Eugen


More information about the ffmpeg-devel mailing list