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
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".