| Index: source/patched-ffmpeg-mt/libavcodec/avcodec.h
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavcodec/avcodec.h (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavcodec/avcodec.h (working copy)
|
| @@ -28,9 +28,10 @@
|
|
|
| #include <errno.h>
|
| #include "libavutil/avutil.h"
|
| +#include "libavutil/cpu.h"
|
|
|
| #define LIBAVCODEC_VERSION_MAJOR 52
|
| -#define LIBAVCODEC_VERSION_MINOR 85
|
| +#define LIBAVCODEC_VERSION_MINOR 89
|
| #define LIBAVCODEC_VERSION_MICRO 0
|
|
|
| #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
| @@ -43,6 +44,17 @@
|
|
|
| #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
|
|
|
| +/**
|
| + * Those FF_API_* defines are not part of public API.
|
| + * They may change, break or disappear at any time.
|
| + */
|
| +#ifndef FF_API_PALETTE_CONTROL
|
| +#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54)
|
| +#endif
|
| +#ifndef FF_API_MM_FLAGS
|
| +#define FF_API_MM_FLAGS (LIBAVCODEC_VERSION_MAJOR < 53)
|
| +#endif
|
| +
|
| #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
|
| #define AV_TIME_BASE 1000000
|
| #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
|
| @@ -213,6 +225,8 @@
|
| CODEC_ID_VP8,
|
| CODEC_ID_PICTOR,
|
| CODEC_ID_ANSI,
|
| + CODEC_ID_A64_MULTI,
|
| + CODEC_ID_A64_MULTI5,
|
|
|
| /* various PCM "codecs" */
|
| CODEC_ID_PCM_S16LE= 0x10000,
|
| @@ -270,6 +284,7 @@
|
| CODEC_ID_ADPCM_EA_XAS,
|
| CODEC_ID_ADPCM_EA_MAXIS_XA,
|
| CODEC_ID_ADPCM_IMA_ISS,
|
| + CODEC_ID_ADPCM_G722,
|
|
|
| /* AMR */
|
| CODEC_ID_AMR_NB= 0x12000,
|
| @@ -1667,27 +1682,25 @@
|
| * result into program crash.)
|
| */
|
| unsigned dsp_mask;
|
| -#define FF_MM_FORCE 0x80000000 /* Force usage of selected flags (OR) */
|
| - /* lower 16 bits - CPU features */
|
| -#define FF_MM_MMX 0x0001 ///< standard MMX
|
| -#define FF_MM_3DNOW 0x0004 ///< AMD 3DNOW
|
| -#if LIBAVCODEC_VERSION_MAJOR < 53
|
| -#define FF_MM_MMXEXT 0x0002 ///< SSE integer functions or AMD MMX ext
|
| +
|
| +#if FF_API_MM_FLAGS
|
| +#define FF_MM_FORCE AV_CPU_FLAG_FORCE
|
| +#define FF_MM_MMX AV_CPU_FLAG_MMX
|
| +#define FF_MM_3DNOW AV_CPU_FLAG_3DNOW
|
| +#define FF_MM_MMXEXT AV_CPU_FLAG_MMX2
|
| +#define FF_MM_MMX2 AV_CPU_FLAG_MMX2
|
| +#define FF_MM_SSE AV_CPU_FLAG_SSE
|
| +#define FF_MM_SSE2 AV_CPU_FLAG_SSE2
|
| +#define FF_MM_SSE2SLOW AV_CPU_FLAG_SSE2SLOW
|
| +#define FF_MM_3DNOWEXT AV_CPU_FLAG_3DNOWEXT
|
| +#define FF_MM_SSE3 AV_CPU_FLAG_SSE3
|
| +#define FF_MM_SSE3SLOW AV_CPU_FLAG_SSE3SLOW
|
| +#define FF_MM_SSSE3 AV_CPU_FLAG_SSSE3
|
| +#define FF_MM_SSE4 AV_CPU_FLAG_SSE4
|
| +#define FF_MM_SSE42 AV_CPU_FLAG_SSE42
|
| +#define FF_MM_IWMMXT AV_CPU_FLAG_IWMMXT
|
| +#define FF_MM_ALTIVEC AV_CPU_FLAG_ALTIVEC
|
| #endif
|
| -#define FF_MM_MMX2 0x0002 ///< SSE integer functions or AMD MMX ext
|
| -#define FF_MM_SSE 0x0008 ///< SSE functions
|
| -#define FF_MM_SSE2 0x0010 ///< PIV SSE2 functions
|
| -#define FF_MM_SSE2SLOW 0x40000000 ///< SSE2 supported, but usually not faster
|
| - ///< than regular MMX/SSE (e.g. Core1)
|
| -#define FF_MM_3DNOWEXT 0x0020 ///< AMD 3DNowExt
|
| -#define FF_MM_SSE3 0x0040 ///< Prescott SSE3 functions
|
| -#define FF_MM_SSE3SLOW 0x20000000 ///< SSE3 supported, but usually not faster
|
| - ///< than regular MMX/SSE (e.g. Core1)
|
| -#define FF_MM_SSSE3 0x0080 ///< Conroe SSSE3 functions
|
| -#define FF_MM_SSE4 0x0100 ///< Penryn SSE4.1 functions
|
| -#define FF_MM_SSE42 0x0200 ///< Nehalem SSE4.2 functions
|
| -#define FF_MM_IWMMXT 0x0100 ///< XScale IWMMXT
|
| -#define FF_MM_ALTIVEC 0x0001 ///< standard AltiVec
|
|
|
| /**
|
| * bits per sample/pixel from the demuxer (needed for huffyuv).
|
| @@ -2044,12 +2057,14 @@
|
| */
|
| int lmax;
|
|
|
| +#if FF_API_PALETTE_CONTROL
|
| /**
|
| * palette control structure
|
| * - encoding: ??? (no palette-enabled encoder yet)
|
| * - decoding: Set by user.
|
| */
|
| struct AVPaletteControl *palctrl;
|
| +#endif
|
|
|
| /**
|
| * noise reduction strength
|
| @@ -2919,7 +2934,7 @@
|
| int linesize[4]; ///< number of bytes per line
|
| } AVPicture;
|
|
|
| -#if LIBAVCODEC_VERSION_MAJOR < 53
|
| +#if FF_API_PALETTE_CONTROL
|
| /**
|
| * AVPaletteControl
|
| * This structure defines a method for communicating palette changes
|
| @@ -4005,9 +4020,19 @@
|
| */
|
| void av_fast_malloc(void *ptr, unsigned int *size, unsigned int min_size);
|
|
|
| +#if LIBAVCODEC_VERSION_MAJOR < 53
|
| /**
|
| - * Copy image 'src' to 'dst'.
|
| + * @deprecated Deprecated in favor of av_image_copy().
|
| */
|
| +attribute_deprecated
|
| +void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
|
| + uint8_t *src_data[4], int src_linesize[4],
|
| + enum PixelFormat pix_fmt, int width, int height);
|
| +#endif
|
| +
|
| +/**
|
| + * Copy image src to dst. Wraps av_picture_data_copy() above.
|
| + */
|
| void av_picture_copy(AVPicture *dst, const AVPicture *src,
|
| enum PixelFormat pix_fmt, int width, int height);
|
|
|
|
|