Gif native capability has been completely upgraded to allow for reading and writing the gif format in singles, sequences or lists.
diff --git a/cinelerra-5.1/cinelerra/filegif.C b/cinelerra-5.1/cinelerra/filegif.C
index 6f4e3e43d800a28dd4cf57b1b45231b73d04df77..bb26762bef07094251db75deeaea1b000230bcc6 100644 (file)
--- a/cinelerra-5.1/cinelerra/filegif.C
+++ b/cinelerra-5.1/cinelerra/filegif.C
@@ -32,6 +32,14 @@
#include <fcntl.h>
#include <string.h>
+//from "getarg.h"
+extern "C"
+int GifQuantizeBuffer(unsigned int Width, unsigned int Height,
+ int *ColorMapSize, GifByteType * RedInput,
+ GifByteType * GreenInput, GifByteType * BlueInput,
+ GifByteType * OutputBuffer,
+ GifColorType * OutputColorMap);
+
FileGIF::FileGIF(Asset *asset, File *file)
: FileBase(asset, file)
On Tue, Nov 18, 2025 at 8:19 PM Rob Prowel <rprowel@comcast.net> wrote:
>
> Please help me to understand why.
>
> This is my make-config and I'm building from scratch on
> Debian-13(trixie). I've re-run autoconf and aclocal to support the
> newer macros/features. Also note that I'm leveraging the distro
> libraries over the in-source thirdparty ones. I have sucessfully built
> this way several years ago.
>
>
> -----------------------------------------------
> #! /bin/bash
>
> CUDA_PATH=/usr \
> ./configure \
> --prefix=/sharebin/cingg2511 \
> --with-cuda \
> --with-nv \
> --with-gl \
> --with-xv \
> --with-jobs=8 \
> --with-alsa \
> --enable-audiofile \
> --with-thirdparty=no
> -----------------------------------------------
>
> build fails due to function redeclaration of
>
> int GifQuantizeBuffer(unsigned int Width,
> unsigned int Height,
> int *ColorMapSize,
> GifByteType * RedInput,
> GifByteType * GreenInput,
> GifByteType * BlueInput,
> GifByteType * OutputBuffer,
> GifColorType * OutputColorMap);
>
> in filegif.h and filegif.C...but this method also exists in the
> thirdparty library giflib. The reason it fails is that in the library
> the pointers are const (as they should be) but in the duplicated code
> under cinelerra directory they are not...and simply adding const in the
> included code is not a fix, IMHO. Lets please evaluate why the library
> code was duplicated within the project source in the first place.
> giflib is not only available under the thirdparty directory, but is a
> common library on most linux distros. It seems odd that it's both
> referenced from the library AND duplicated in-source.
Because this function at some point disappeared from official giflib ....
I guess adding version defines around this piece of code will be
correct course of action.
>
> So far the only dependency I've had to use from the thirdparty directory
> is libdpx since it is quite obscure and not a standard part of Debian.
>
> -Rob
>
>
>
>
> _______________________________________________
> Cin mailing list -- cin@lists.cinelerra-gg.org
> To unsubscribe send an email to cin-leave@lists.cinelerra-gg.org
_______________________________________________
Cin mailing list -- cin@lists.cinelerra-gg.org
To unsubscribe send an email to cin-leave@lists.cinelerra-gg.org