Re: [FFmpeg-devel] [PATCH] avcodec: add PhotoCD decoder

2020-09-04 Thread Paul B Mahol
On 8/30/20, Paul B Mahol wrote: > On 8/30/20, Andreas Rheinhardt wrote: > [...] >>> +static int read_hufftable(AVCodecContext *avctx, VLC *vlc) >>> +{ >>> +PhotoCDContext *s = avctx->priv_data; >>> +GetByteContext *gb = &s->gb; >>> +int start = s->streampos; >>> +int count, ret; >

Re: [FFmpeg-devel] [PATCH] avcodec: add PhotoCD decoder

2020-08-30 Thread Paul B Mahol
On 8/30/20, Andreas Rheinhardt wrote: [...] >> +static int read_hufftable(AVCodecContext *avctx, VLC *vlc) >> +{ >> +PhotoCDContext *s = avctx->priv_data; >> +GetByteContext *gb = &s->gb; >> +int start = s->streampos; >> +int count, ret; >> + >> +bytestream2_seek(gb, start, SEE

Re: [FFmpeg-devel] [PATCH] avcodec: add PhotoCD decoder

2020-08-29 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > Probably need to be applied on top of moflex v2 patch set. > --- > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/codec_desc.c | 7 + > libavcodec/codec_id.h | 1 + > libavcodec/photocd.c| 468

Re: [FFmpeg-devel] [PATCH] avcodec: add PhotoCD decoder

2020-08-29 Thread Paul B Mahol
On 8/29/20, Paul B Mahol wrote: > Signed-Goff-by: Paul B Mahol > --- > Probably need to be applied on top of moflex v2 patch set. > --- [...] > + > +static av_cold int photocd_decode_init(AVCodecContext *avctx) > +{ > +avctx->pix_fmt = AV_PIX_FMT_YUV420P; > +avctx->colorspace

[FFmpeg-devel] [PATCH] avcodec: add PhotoCD decoder

2020-08-29 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- Probably need to be applied on top of moflex v2 patch set. --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 + libavcodec/codec_id.h | 1 + libavcodec/photocd.c| 468