summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-01-09 10:27:20 +0100
committerDiego Biurrun <diego@biurrun.de>2014-03-26 04:31:27 -0700
commitaba70bb5387f12dfa5e6cd8cb861c9c7e668151f (patch)
tree0da2638dc7ea343430826b9952cc5fbb71d305b5 /libavcodec/x86
parente7373585f827d4ec05d952daa3877e8decfe3c08 (diff)
Add missing headers to make template files compile (more) standalone
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/dsputil_qns_template.c6
-rw-r--r--libavcodec/x86/hpeldsp_rnd_template.c3
-rw-r--r--libavcodec/x86/mpegvideoenc_template.c6
3 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputil_qns_template.c b/libavcodec/x86/dsputil_qns_template.c
index 14ab425718..321d14ae44 100644
--- a/libavcodec/x86/dsputil_qns_template.c
+++ b/libavcodec/x86/dsputil_qns_template.c
@@ -22,6 +22,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <assert.h>
+#include <stdint.h>
+
+#include "libavutil/common.h"
+#include "libavutil/x86/asm.h"
+
#include "inline_asm.h"
#define MAX_ABS (512 >> (SCALE_OFFSET>0 ? SCALE_OFFSET : 0))
diff --git a/libavcodec/x86/hpeldsp_rnd_template.c b/libavcodec/x86/hpeldsp_rnd_template.c
index b514a8fd4e..d854e8a2fc 100644
--- a/libavcodec/x86/hpeldsp_rnd_template.c
+++ b/libavcodec/x86/hpeldsp_rnd_template.c
@@ -24,6 +24,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
+#include <stdint.h>
+
// put_pixels
static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
{
diff --git a/libavcodec/x86/mpegvideoenc_template.c b/libavcodec/x86/mpegvideoenc_template.c
index ed00e8eea7..d01ff1c0f8 100644
--- a/libavcodec/x86/mpegvideoenc_template.c
+++ b/libavcodec/x86/mpegvideoenc_template.c
@@ -20,6 +20,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdint.h>
+
+#include "libavutil/internal.h"
+#include "libavutil/x86/asm.h"
+#include "libavcodec/mpegvideo.h"
+
#undef MMREG_WIDTH
#undef MM
#undef MOVQ