Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
0c75acb4
Commit
0c75acb4
authored
Mar 12, 2020
by
Stephen Hutchinson
Committed by
Marton Balint
Apr 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat/avisynth: remove avisynth headers
parent
4d9b9c5e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1 addition
and
392 deletions
+1
-392
avisynth_c.h
compat/avisynth/avisynth_c.h
+0
-0
capi.h
compat/avisynth/avs/capi.h
+0
-94
config.h
compat/avisynth/avs/config.h
+0
-70
types.h
compat/avisynth/avs/types.h
+0
-57
avxsynth_c.h
compat/avisynth/avxsynth_c.h
+0
-0
basicDataTypeConversions.h
compat/avisynth/windowsPorts/basicDataTypeConversions.h
+0
-85
windows2linux.h
compat/avisynth/windowsPorts/windows2linux.h
+0
-77
configure
configure
+1
-0
source
tests/ref/fate/source
+0
-9
No files found.
compat/avisynth/avisynth_c.h
deleted
100644 → 0
View file @
4d9b9c5e
This diff is collapsed.
Click to expand it.
compat/avisynth/avs/capi.h
deleted
100644 → 0
View file @
4d9b9c5e
// Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
// http://www.gnu.org/copyleft/gpl.html .
//
// As a special exception, I give you permission to link to the
// Avisynth C interface with independent modules that communicate with
// the Avisynth C interface solely through the interfaces defined in
// avisynth_c.h, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting combined work
// under terms of your choice, provided that every copy of the
// combined work is accompanied by a complete copy of the source code
// of the Avisynth C interface and Avisynth itself (with the version
// used to produce the combined work), being distributed under the
// terms of the GNU General Public License plus this exception. An
// independent module is a module which is not derived from or based
// on Avisynth C Interface, such as 3rd-party filters, import and
// export plugins, or graphical user interfaces.
#ifndef AVS_CAPI_H
#define AVS_CAPI_H
#ifdef __cplusplus
# define EXTERN_C extern "C"
#else
# define EXTERN_C
#endif
#ifdef BUILDING_AVSCORE
# if defined(GCC) && defined(X86_32)
# define AVSC_CC
# else // MSVC builds and 64-bit GCC
# ifndef AVSC_USE_STDCALL
# define AVSC_CC __cdecl
# else
# define AVSC_CC __stdcall
# endif
# endif
#else // needed for programs that talk to AviSynth+
# ifndef AVSC_WIN32_GCC32 // see comment below
# ifndef AVSC_USE_STDCALL
# define AVSC_CC __cdecl
# else
# define AVSC_CC __stdcall
# endif
# else
# define AVSC_CC
# endif
#endif
// On 64-bit Windows, there's only one calling convention,
// so there is no difference between MSVC and GCC. On 32-bit,
// this isn't true. The convention that GCC needs to use to
// even build AviSynth+ as 32-bit makes anything that uses
// it incompatible with 32-bit MSVC builds of AviSynth+.
// The AVSC_WIN32_GCC32 define is meant to provide a user
// switchable way to make builds of FFmpeg to test 32-bit
// GCC builds of AviSynth+ without having to screw around
// with alternate headers, while still default to the usual
// situation of using 32-bit MSVC builds of AviSynth+.
// Hopefully, this situation will eventually be resolved
// and a broadly compatible solution will arise so the
// same 32-bit FFmpeg build can handle either MSVC or GCC
// builds of AviSynth+.
#define AVSC_INLINE static __inline
#ifdef BUILDING_AVSCORE
# define AVSC_EXPORT __declspec(dllexport)
# define AVSC_API(ret, name) EXTERN_C AVSC_EXPORT ret AVSC_CC name
#else
# define AVSC_EXPORT EXTERN_C __declspec(dllexport)
# ifndef AVSC_NO_DECLSPEC
# define AVSC_API(ret, name) EXTERN_C __declspec(dllimport) ret AVSC_CC name
# else
# define AVSC_API(ret, name) typedef ret (AVSC_CC *name##_func)
# endif
#endif
#endif //AVS_CAPI_H
compat/avisynth/avs/config.h
deleted
100644 → 0
View file @
4d9b9c5e
// Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
// http://www.gnu.org/copyleft/gpl.html .
//
// As a special exception, I give you permission to link to the
// Avisynth C interface with independent modules that communicate with
// the Avisynth C interface solely through the interfaces defined in
// avisynth_c.h, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting combined work
// under terms of your choice, provided that every copy of the
// combined work is accompanied by a complete copy of the source code
// of the Avisynth C interface and Avisynth itself (with the version
// used to produce the combined work), being distributed under the
// terms of the GNU General Public License plus this exception. An
// independent module is a module which is not derived from or based
// on Avisynth C Interface, such as 3rd-party filters, import and
// export plugins, or graphical user interfaces.
#ifndef AVS_CONFIG_H
#define AVS_CONFIG_H
// Undefine this to get cdecl calling convention
#define AVSC_USE_STDCALL 1
// NOTE TO PLUGIN AUTHORS:
// Because FRAME_ALIGN can be substantially higher than the alignment
// a plugin actually needs, plugins should not use FRAME_ALIGN to check for
// alignment. They should always request the exact alignment value they need.
// This is to make sure that plugins work over the widest range of AviSynth
// builds possible.
#define FRAME_ALIGN 64
#if defined(_M_AMD64) || defined(__x86_64)
# define X86_64
#elif defined(_M_IX86) || defined(__i386__)
# define X86_32
#else
# error Unsupported CPU architecture.
#endif
#if defined(_MSC_VER)
# define MSVC
#elif defined(__GNUC__)
# define GCC
#elif defined(__clang__)
# define CLANG
#else
# error Unsupported compiler.
#endif
#if defined(GCC)
# undef __forceinline
# define __forceinline inline
#endif
#endif //AVS_CONFIG_H
compat/avisynth/avs/types.h
deleted
100644 → 0
View file @
4d9b9c5e
// Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
// http://www.gnu.org/copyleft/gpl.html .
//
// As a special exception, I give you permission to link to the
// Avisynth C interface with independent modules that communicate with
// the Avisynth C interface solely through the interfaces defined in
// avisynth_c.h, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting combined work
// under terms of your choice, provided that every copy of the
// combined work is accompanied by a complete copy of the source code
// of the Avisynth C interface and Avisynth itself (with the version
// used to produce the combined work), being distributed under the
// terms of the GNU General Public License plus this exception. An
// independent module is a module which is not derived from or based
// on Avisynth C Interface, such as 3rd-party filters, import and
// export plugins, or graphical user interfaces.
#ifndef AVS_TYPES_H
#define AVS_TYPES_H
// Define all types necessary for interfacing with avisynth.dll
#ifdef __cplusplus
#include <cstddef>
#else
#include <stddef.h>
#endif
// Raster types used by VirtualDub & Avisynth
typedef
unsigned
int
Pixel32
;
typedef
unsigned
char
BYTE
;
// Audio Sample information
typedef
float
SFLOAT
;
#ifdef __GNUC__
typedef
long
long
int
INT64
;
#else
typedef
__int64
INT64
;
#endif
#endif //AVS_TYPES_H
compat/avisynth/avxsynth_c.h
deleted
100644 → 0
View file @
4d9b9c5e
This diff is collapsed.
Click to expand it.
compat/avisynth/windowsPorts/basicDataTypeConversions.h
deleted
100644 → 0
View file @
4d9b9c5e
#ifndef __DATA_TYPE_CONVERSIONS_H__
#define __DATA_TYPE_CONVERSIONS_H__
#include <stdint.h>
#include <wchar.h>
#ifdef __cplusplus
namespace
avxsynth
{
#endif // __cplusplus
typedef
int64_t
__int64
;
typedef
int32_t
__int32
;
#ifdef __cplusplus
typedef
bool
BOOL
;
#else
typedef
uint32_t
BOOL
;
#endif // __cplusplus
typedef
void
*
HMODULE
;
typedef
void
*
LPVOID
;
typedef
void
*
PVOID
;
typedef
PVOID
HANDLE
;
typedef
HANDLE
HWND
;
typedef
HANDLE
HINSTANCE
;
typedef
void
*
HDC
;
typedef
void
*
HBITMAP
;
typedef
void
*
HICON
;
typedef
void
*
HFONT
;
typedef
void
*
HGDIOBJ
;
typedef
void
*
HBRUSH
;
typedef
void
*
HMMIO
;
typedef
void
*
HACMSTREAM
;
typedef
void
*
HACMDRIVER
;
typedef
void
*
HIC
;
typedef
void
*
HACMOBJ
;
typedef
HACMSTREAM
*
LPHACMSTREAM
;
typedef
void
*
HACMDRIVERID
;
typedef
void
*
LPHACMDRIVER
;
typedef
unsigned
char
BYTE
;
typedef
BYTE
*
LPBYTE
;
typedef
char
TCHAR
;
typedef
TCHAR
*
LPTSTR
;
typedef
const
TCHAR
*
LPCTSTR
;
typedef
char
*
LPSTR
;
typedef
LPSTR
LPOLESTR
;
typedef
const
char
*
LPCSTR
;
typedef
LPCSTR
LPCOLESTR
;
typedef
wchar_t
WCHAR
;
typedef
unsigned
short
WORD
;
typedef
unsigned
int
UINT
;
typedef
UINT
MMRESULT
;
typedef
uint32_t
DWORD
;
typedef
DWORD
COLORREF
;
typedef
DWORD
FOURCC
;
typedef
DWORD
HRESULT
;
typedef
DWORD
*
LPDWORD
;
typedef
DWORD
*
DWORD_PTR
;
typedef
int32_t
LONG
;
typedef
int32_t
*
LONG_PTR
;
typedef
LONG_PTR
LRESULT
;
typedef
uint32_t
ULONG
;
typedef
uint32_t
*
ULONG_PTR
;
//typedef __int64_t intptr_t;
typedef
uint64_t
_fsize_t
;
//
// Structures
//
typedef
struct
_GUID
{
DWORD
Data1
;
WORD
Data2
;
WORD
Data3
;
BYTE
Data4
[
8
];
}
GUID
;
typedef
GUID
REFIID
;
typedef
GUID
CLSID
;
typedef
CLSID
*
LPCLSID
;
typedef
GUID
IID
;
#ifdef __cplusplus
};
// namespace avxsynth
#endif // __cplusplus
#endif // __DATA_TYPE_CONVERSIONS_H__
compat/avisynth/windowsPorts/windows2linux.h
deleted
100644 → 0
View file @
4d9b9c5e
#ifndef __WINDOWS2LINUX_H__
#define __WINDOWS2LINUX_H__
/*
* LINUX SPECIFIC DEFINITIONS
*/
//
// Data types conversions
//
#include <stdlib.h>
#include <string.h>
#include "basicDataTypeConversions.h"
#ifdef __cplusplus
namespace
avxsynth
{
#endif // __cplusplus
//
// purposefully define the following MSFT definitions
// to mean nothing (as they do not mean anything on Linux)
//
#define __stdcall
#define __cdecl
#define noreturn
#define __declspec(x)
#define STDAPI extern "C" HRESULT
#define STDMETHODIMP HRESULT __stdcall
#define STDMETHODIMP_(x) x __stdcall
#define STDMETHOD(x) virtual HRESULT x
#define STDMETHOD_(a, x) virtual a x
#ifndef TRUE
#define TRUE true
#endif
#ifndef FALSE
#define FALSE false
#endif
#define S_OK (0x00000000)
#define S_FALSE (0x00000001)
#define E_NOINTERFACE (0X80004002)
#define E_POINTER (0x80004003)
#define E_FAIL (0x80004005)
#define E_OUTOFMEMORY (0x8007000E)
#define INVALID_HANDLE_VALUE ((HANDLE)((LONG_PTR)-1))
#define FAILED(hr) ((hr) & 0x80000000)
#define SUCCEEDED(hr) (!FAILED(hr))
//
// Functions
//
#define MAKEDWORD(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
#define MAKEWORD(a,b) (((a) << 8) | (b))
#define lstrlen strlen
#define lstrcpy strcpy
#define lstrcmpi strcasecmp
#define _stricmp strcasecmp
#define InterlockedIncrement(x) __sync_fetch_and_add((x), 1)
#define InterlockedDecrement(x) __sync_fetch_and_sub((x), 1)
// Windows uses (new, old) ordering but GCC has (old, new)
#define InterlockedCompareExchange(x,y,z) __sync_val_compare_and_swap(x,z,y)
#define UInt32x32To64(a, b) ( (uint64_t) ( ((uint64_t)((uint32_t)(a))) * ((uint32_t)(b)) ) )
#define Int64ShrlMod32(a, b) ( (uint64_t) ( (uint64_t)(a) >> (b) ) )
#define Int32x32To64(a, b) ((__int64)(((__int64)((long)(a))) * ((long)(b))))
#define MulDiv(nNumber, nNumerator, nDenominator) (int32_t) (((int64_t) (nNumber) * (int64_t) (nNumerator) + (int64_t) ((nDenominator)/2)) / (int64_t) (nDenominator))
#ifdef __cplusplus
};
// namespace avxsynth
#endif // __cplusplus
#endif // __WINDOWS2LINUX_H__
configure
View file @
0c75acb4
...
@@ -6246,6 +6246,7 @@ for func in $COMPLEX_FUNCS; do
...
@@ -6246,6 +6246,7 @@ for func in $COMPLEX_FUNCS; do
done
done
# these are off by default, so fail if requested and not available
# these are off by default, so fail if requested and not available
enabled avisynth
&&
require_headers
"avisynth/avisynth_c.h"
enabled cuda_nvcc
&&
{
check_nvcc cuda_nvcc
||
die
"ERROR: failed checking for nvcc."
;
}
enabled cuda_nvcc
&&
{
check_nvcc cuda_nvcc
||
die
"ERROR: failed checking for nvcc."
;
}
enabled chromaprint
&&
require chromaprint chromaprint.h chromaprint_get_version
-lchromaprint
enabled chromaprint
&&
require chromaprint chromaprint.h chromaprint_get_version
-lchromaprint
enabled decklink
&&
{
require_headers DeckLinkAPI.h
&&
enabled decklink
&&
{
require_headers DeckLinkAPI.h
&&
...
...
tests/ref/fate/source
View file @
0c75acb4
Files without standard license headers:
Files without standard license headers:
compat/avisynth/windowsPorts/basicDataTypeConversions.h
compat/avisynth/windowsPorts/windows2linux.h
libavcodec/file_open.c
libavcodec/file_open.c
libavcodec/ilbcdata.h
libavcodec/ilbcdata.h
libavcodec/ilbcdec.c
libavcodec/ilbcdec.c
...
@@ -19,13 +17,6 @@ libswscale/log2_tab.c
...
@@ -19,13 +17,6 @@ libswscale/log2_tab.c
tools/uncoded_frame.c
tools/uncoded_frame.c
tools/yuvcmp.c
tools/yuvcmp.c
Headers without standard inclusion guards:
Headers without standard inclusion guards:
compat/avisynth/avisynth_c.h
compat/avisynth/avs/capi.h
compat/avisynth/avs/config.h
compat/avisynth/avs/types.h
compat/avisynth/avxsynth_c.h
compat/avisynth/windowsPorts/basicDataTypeConversions.h
compat/avisynth/windowsPorts/windows2linux.h
compat/djgpp/math.h
compat/djgpp/math.h
compat/float/float.h
compat/float/float.h
compat/float/limits.h
compat/float/limits.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment