[FFmpeg-devel] [PATCH] avcodec: add PHM decoder and encoder

Anton Khirnov anton at khirnov.net
Sat Jul 2 12:13:56 EEST 2022


Quoting Paul B Mahol (2022-07-01 11:23:20)
> Hello,
> 
> patch attached.
> 
> From cec6259e75fa56a4b064f7d5a0823449d19f3b47 Mon Sep 17 00:00:00 2001
> From: Paul B Mahol <onemda at gmail.com>
> Date: Fri, 1 Jul 2022 10:06:15 +0200
> Subject: [PATCH] avcodec: add PHM decoder and encoder
> 
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavcodec/Makefile     |   2 +
>  libavcodec/allcodecs.c  |   2 +
>  libavcodec/codec_desc.c |   7 +++
>  libavcodec/codec_id.h   |   1 +
>  libavcodec/pnm.c        |  10 +++-
>  libavcodec/pnm.h        |   5 ++
>  libavcodec/pnm_parser.c |   3 +-
>  libavcodec/pnmdec.c     | 114 ++++++++++++++++++++++++++++++++++++++++
>  libavcodec/pnmenc.c     |  75 +++++++++++++++++++++++++-
>  libavformat/img2.c      |   1 +
>  libavformat/img2enc.c   |   2 +-
>  11 files changed, 217 insertions(+), 5 deletions(-)

Please add tests, decoders are useless without them.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list