[FFmpeg-devel] [PATCH 1/3] avcodec/qmagedec: Quram Qmage decoder

Michael Niedermayer michael at niedermayer.cc
Thu Nov 21 23:56:07 EET 2024


On Thu, Nov 21, 2024 at 04:45:20PM +1100, Peter Ross wrote:
> ---
>  libavcodec/Makefile     |   1 +
>  libavcodec/allcodecs.c  |   1 +
>  libavcodec/codec_desc.c |   7 +
>  libavcodec/codec_id.h   |   1 +
>  libavcodec/qmagedata.h  | 133 +++++++
>  libavcodec/qmagedec.c   | 836 ++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 979 insertions(+)
>  create mode 100644 libavcodec/qmagedata.h
>  create mode 100644 libavcodec/qmagedec.c

[...]
> diff --git a/libavcodec/qmagedata.h b/libavcodec/qmagedata.h
> new file mode 100644
> index 0000000000..21fc8789f2
> --- /dev/null
> +++ b/libavcodec/qmagedata.h
> @@ -0,0 +1,133 @@
> +/*
> + * Quram Qmage image format decoder
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +#include <stdint.h>
> +
> +static const struct { int8_t x, y; } qmage_dir[3] = {
> +    [0] = {-1, 0},
> +    [1] = {0, -1},
> +    [2] = {-1,-1},
> +};

fate dislikes the header

--- ./tests/ref/fate/source	2024-11-08 01:56:45.440643362 +0100
+++ tests/data/fate/source	2024-11-21 22:19:17.128350299 +0100
@@ -26,6 +26,7 @@
 compat/float/limits.h
 compat/stdbit/stdbit.h
 libavcodec/bitstream_template.h
+libavcodec/qmagedata.h
 tools/decode_simple.h
 Use of av_clip() where av_clip_uintp2() could be used:
 Use of av_clip() where av_clip_intp2() could be used:
TEST    pixfmt-gbrp10-xv30le
patching file tests/ref/fate/source


thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"Nothing to hide" only works if the folks in power share the values of
you and everyone you know entirely and always will -- Tom Scott

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241121/849b3a89/attachment.sig>


More information about the ffmpeg-devel mailing list