[FFmpeg-devel] [PATCH]Support 1bpp and 4bpp palettized sunrast images

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jan 9 22:41:12 CET 2012


Paul B Mahol <onemda <at> gmail.com> writes:

> >      switch (depth) {
> >          case 1:
> > -            avctx->pix_fmt = PIX_FMT_MONOWHITE;
> > +            avctx->pix_fmt = maplength ? PIX_FMT_PAL8 : PIX_FMT_MONOWHITE;
> > +            break;
> > +        case 4:
> > +            avctx->pix_fmt = maplength ? PIX_FMT_PAL8 : PIX_FMT_NONE;
> 
> Hmm, if maplength is 0 then pix_fmt is not-implemented PIX_FMT_GRAY4 ?

GRAY4?
Do you have a sample (or a useful specification, what I found did not help much)?

Carl Eugen



More information about the ffmpeg-devel mailing list