diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-02-18 13:20:01 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-07-19 02:33:36 -0700 |
commit | 5dcc201505f71b1e73e9eef12ce89d4eed252ad0 (patch) | |
tree | 81dffc1053248f66fea7d6a416d3e9f26df862aa /libavcodec/x86 | |
parent | 85cabb8d002f2cd100ced5cc17d87bfc9460d314 (diff) | |
download | ffmpeg-streaming-5dcc201505f71b1e73e9eef12ce89d4eed252ad0.zip ffmpeg-streaming-5dcc201505f71b1e73e9eef12ce89d4eed252ad0.tar.gz |
simple_idct: Move x86-specific declarations to a header in the x86 directory
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/idctdsp_init.c | 2 | ||||
-rw-r--r-- | libavcodec/x86/simple_idct.c | 3 | ||||
-rw-r--r-- | libavcodec/x86/simple_idct.h | 28 |
3 files changed, 31 insertions, 2 deletions
diff --git a/libavcodec/x86/idctdsp_init.c b/libavcodec/x86/idctdsp_init.c index 40ed0ac..f0511f5 100644 --- a/libavcodec/x86/idctdsp_init.c +++ b/libavcodec/x86/idctdsp_init.c @@ -22,9 +22,9 @@ #include "libavutil/x86/cpu.h" #include "libavcodec/avcodec.h" #include "libavcodec/idctdsp.h" -#include "libavcodec/simple_idct.h" #include "idct_xvid.h" #include "idctdsp.h" +#include "simple_idct.h" /* Input permutation for the simple_idct_mmx */ static const uint8_t simple_mmx_permutation[64] = { diff --git a/libavcodec/x86/simple_idct.c b/libavcodec/x86/simple_idct.c index bbe5a67..1002a78 100644 --- a/libavcodec/x86/simple_idct.c +++ b/libavcodec/x86/simple_idct.c @@ -19,11 +19,12 @@ * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavcodec/simple_idct.h" + #include "libavutil/internal.h" #include "libavutil/mem.h" #include "libavutil/x86/asm.h" #include "idctdsp.h" +#include "simple_idct.h" #if HAVE_INLINE_ASM diff --git a/libavcodec/x86/simple_idct.h b/libavcodec/x86/simple_idct.h new file mode 100644 index 0000000..4fc2914 --- /dev/null +++ b/libavcodec/x86/simple_idct.h @@ -0,0 +1,28 @@ +/* + * This file is part of Libav. + * + * Libav 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. + * + * Libav 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 Libav; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_X86_SIMPLE_IDCT_H +#define AVCODEC_X86_SIMPLE_IDCT_H + +#include <stdint.h> + +void ff_simple_idct_mmx(int16_t *block); +void ff_simple_idct_add_mmx(uint8_t *dest, int line_size, int16_t *block); +void ff_simple_idct_put_mmx(uint8_t *dest, int line_size, int16_t *block); + +#endif /* AVCODEC_X86_SIMPLE_IDCT_H */ |