Skip to content

Instantly share code, notes, and snippets.

@qyot27
Last active December 18, 2015 13:59

Revisions

  1. qyot27 revised this gist Jun 17, 2013. 1 changed file with 13 additions and 24 deletions.
    37 changes: 13 additions & 24 deletions L-SMASH-Works-0001-Add-AvxSynth-plugin-support.patch
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    From cfcaec8e003afdff560b59f26233a7dd4a9e4e2d Mon Sep 17 00:00:00 2001
    From b60d96ed08a71966f3e78fde7568c1eebf121e8d Mon Sep 17 00:00:00 2001
    From: Stephen Hutchinson <qyot27@gmail.com>
    Date: Wed, 24 Apr 2013 10:04:56 -0400
    Subject: [PATCH 1/3] Add AvxSynth plugin support.

    ---
    AvxSynth/GNUmakefile | 62 ++
    AvxSynth/GNUmakefile | 63 ++
    AvxSynth/LICENSE | 49 ++
    AvxSynth/README | 181 ++++++
    AvxSynth/audio_output.cpp | 137 ++++
    AvxSynth/audio_output.h | 35 ++
    AvxSynth/avxplugin.h | 763 +++++++++++++++++++++++
    AvxSynth/configure | 326 ++++++++++
    AvxSynth/configure | 314 ++++++++++
    AvxSynth/libavsmash_source.cpp | 538 ++++++++++++++++
    AvxSynth/libavsmash_source.h | 117 ++++
    AvxSynth/lsmashsource.cpp | 88 +++
    @@ -24,7 +24,7 @@ Subject: [PATCH 1/3] Add AvxSynth plugin support.
    AvxSynth/windowsPorts/basicDataTypeConversions.h | 85 +++
    AvxSynth/windowsPorts/excptLinux.h | 21 +
    AvxSynth/windowsPorts/windows2linux.h | 77 +++
    20 files changed, 3771 insertions(+)
    20 files changed, 3760 insertions(+)
    create mode 100644 AvxSynth/GNUmakefile
    create mode 100644 AvxSynth/LICENSE
    create mode 100644 AvxSynth/README
    @@ -48,10 +48,10 @@ Subject: [PATCH 1/3] Add AvxSynth plugin support.

    diff --git a/AvxSynth/GNUmakefile b/AvxSynth/GNUmakefile
    new file mode 100644
    index 0000000..b50df44
    index 0000000..1c71099
    --- /dev/null
    +++ b/AvxSynth/GNUmakefile
    @@ -0,0 +1,62 @@
    @@ -0,0 +1,63 @@
    +#----------------------------------------------------------------------------------------------
    +# Makefile for AvxSynth plugins
    +#----------------------------------------------------------------------------------------------
    @@ -66,8 +66,9 @@ index 0000000..b50df44
    + lwlibav_source.o
    +
    +OBJ_SOURCE_C = ../common/utils.o ../common/libavsmash.o ../common/libavsmash_video.o \
    + ../common/lwlibav_dec.o ../common/lwlibav_video.o \
    + ../common/lwlibav_audio.o ../common/lwindex.o ../common/video_output.o
    + ../common/libavsmash_audio.o ../common/lwlibav_dec.o \
    + ../common/lwlibav_video.o ../common/resample.o ../common/lwlibav_audio.o \
    + ../common/lwindex.o ../common/video_output.o ../common/audio_output.o
    +
    +SRC_ALL = $(SRC_SOURCE)
    +
    @@ -80,14 +81,14 @@ index 0000000..b50df44
    +all: $(SONAME)
    +
    +$(SONAME): $(OBJ_SOURCE_CXX) $(OBJ_SOURCE_C)
    + $(LD) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
    + $(LD) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
    + -@ $(if $(STRIP), $(STRIP) -x $@)
    +
    +%.o: %.cpp %.c .depend
    + $(CC) -c $(CFLAGS) -o $@ $<
    +
    +install: all
    + mkdir -p $(DESTDIR)$(libdir)
    + install -d $(DESTDIR)$(libdir)
    + install -m 755 $(SONAME) $(DESTDIR)$(libdir)/$(SONAME)
    + $(if $(SONAME), ln -f -s $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/avxsynth/$(SONAME_LN))
    +
    @@ -1312,10 +1313,10 @@ index 0000000..fd32d5f
    +#endif //__AVXPLUGIN_H__
    diff --git a/AvxSynth/configure b/AvxSynth/configure
    new file mode 100755
    index 0000000..fb26c87
    index 0000000..570438d
    --- /dev/null
    +++ b/AvxSynth/configure
    @@ -0,0 +1,326 @@
    @@ -0,0 +1,314 @@
    +#!/bin/bash
    +
    +#----------------------------------------------------------------------------------------------
    @@ -1333,9 +1334,7 @@ index 0000000..fb26c87
    + PREFIX [/usr/local]
    + --exec-prefix=EPREFIX install architecture-dependent files into
    + EPREFIX [PREFIX]
    + --bindir=DIR install binaries in DIR [EPREFIX/bin]
    + --libdir=DIR install libs in DIR [EPREFIX/lib]
    + --includedir=DIR install headers in DIR [PREFIX/include]
    +
    + --extra-cppflags=XCPPFLAGS add XCPPFLAGS to CPPFLAGS
    + --extra-cflags=XCFLAGS add XCFLAGS to CFLAGS
    @@ -1410,9 +1409,7 @@ index 0000000..fb26c87
    +
    +prefix=""
    +exec_prefix=""
    +bindir=""
    +libdir=""
    +includedir=""
    +DESTDIR=""
    +
    +CPPFLAGS="-D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64"
    @@ -1437,9 +1434,6 @@ index 0000000..fb26c87
    + --libdir=*)
    + libdir="$optarg"
    + ;;
    + --includedir=*)
    + includedir="$optarg"
    + ;;
    + --destdir=*)
    + DESTDIR="$optarg"
    + ;;
    @@ -1476,9 +1470,7 @@ index 0000000..fb26c87
    +
    +test -n "$prefix" || prefix="/usr/local"
    +test -n "$exec_prefix" || exec_prefix='${prefix}'
    +test -n "$bindir" || bindir='${exec_prefix}/bin'
    +test -n "$libdir" || libdir='${exec_prefix}/lib'
    +test -n "$includedir" || includedir='${prefix}/include'
    +
    +BASENAME="libavxlsmashsource"
    +
    @@ -1508,7 +1500,6 @@ index 0000000..fb26c87
    + CFLAGS="$CFLAGS -I$prefix/include"
    + LDFLAGS="$LDFLAGS -L$prefix/lib"
    +fi
    +test -n "$includedir" && CFLAGS="$CFLAGS -I$includedir"
    +test -n "$libdir" && LDFLAGS="$LDFLAGS -L$libdir"
    +
    +CPPFLAGS="$CPPFLAGS $XCPPFLAGS"
    @@ -1598,9 +1589,7 @@ index 0000000..fb26c87
    +DESTDIR = $DESTDIR
    +prefix = $prefix
    +exec_prefix = $exec_prefix
    +bindir = $bindir
    +libdir = $libdir
    +includedir = $includedir
    +SRC_SOURCE = $SRC_SOURCE
    +BASENAME=$BASENAME
    +SONAME=$SONAME
  2. qyot27 created this gist Jun 17, 2013.
    3,943 changes: 3,943 additions & 0 deletions L-SMASH-Works-0001-Add-AvxSynth-plugin-support.patch
    3,943 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.