Browse Source

Merge commit 'aba70bb5387f12dfa5e6cd8cb861c9c7e668151f'

* commit 'aba70bb5387f12dfa5e6cd8cb861c9c7e668151f':
  Add missing headers to make template files compile (more) standalone

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
0371eaebcd
15 changed files with 50 additions and 0 deletions
  1. +4
    -0
      libavcodec/ac3enc_template.c
  2. +2
    -0
      libavcodec/h264_mb_template.c
  3. +2
    -0
      libavcodec/h264_mc_template.c
  4. +1
    -0
      libavcodec/h264idct_template.c
  5. +2
    -0
      libavcodec/hpel_template.c
  6. +2
    -0
      libavcodec/motion_est_template.c
  7. +2
    -0
      libavcodec/simple_idct_template.c
  8. +2
    -0
      libavcodec/videodsp_template.c
  9. +6
    -0
      libavcodec/x86/dsputil_qns_template.c
  10. +3
    -0
      libavcodec/x86/hpeldsp_rnd_template.c
  11. +6
    -0
      libavcodec/x86/mpegvideoenc_template.c
  12. +6
    -0
      libavresample/resample_template.c
  13. +2
    -0
      libswscale/x86/rgb2rgb_template.c
  14. +5
    -0
      libswscale/x86/swscale_template.c
  15. +5
    -0
      libswscale/x86/yuv2rgb_template.c

+ 4
- 0
libavcodec/ac3enc_template.c View File

@@ -28,7 +28,11 @@


#include <stdint.h> #include <stdint.h>


#include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "internal.h"
#include "ac3enc.h"
#include "eac3enc.h"


/* prototypes for static functions in ac3enc_fixed.c and ac3enc_float.c */ /* prototypes for static functions in ac3enc_fixed.c and ac3enc_float.c */




+ 2
- 0
libavcodec/h264_mb_template.c View File

@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "svq3.h"

#undef FUNC #undef FUNC
#undef PIXEL_SHIFT #undef PIXEL_SHIFT




+ 2
- 0
libavcodec/h264_mc_template.c View File

@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "h264.h"

#undef MCFUNC #undef MCFUNC


#if CHROMA_IDC == 1 #if CHROMA_IDC == 1


+ 1
- 0
libavcodec/h264idct_template.c View File

@@ -28,6 +28,7 @@
#include "bit_depth_template.c" #include "bit_depth_template.c"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "h264.h" #include "h264.h"
#include "h264idct.h"


void FUNCC(ff_h264_idct_add)(uint8_t *_dst, int16_t *_block, int stride) void FUNCC(ff_h264_idct_add)(uint8_t *_dst, int16_t *_block, int stride)
{ {


+ 2
- 0
libavcodec/hpel_template.c View File

@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "libavutil/intreadwrite.h"

#include "pixels.h" #include "pixels.h"


#include "bit_depth_template.c" #include "bit_depth_template.c"


+ 2
- 0
libavcodec/motion_est_template.c View File

@@ -24,6 +24,8 @@
* Motion estimation template. * Motion estimation template.
*/ */


#include "mpegvideo.h"

//Let us hope gcc will remove the unused vars ...(gcc 3.2.2 seems to do it ...) //Let us hope gcc will remove the unused vars ...(gcc 3.2.2 seems to do it ...)
#define LOAD_COMMON\ #define LOAD_COMMON\
uint32_t av_unused * const score_map= c->score_map;\ uint32_t av_unused * const score_map= c->score_map;\


+ 2
- 0
libavcodec/simple_idct_template.c View File

@@ -30,6 +30,8 @@
written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>) written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>)
*/ */


#include "simple_idct.h"

#include "bit_depth_template.c" #include "bit_depth_template.c"


#undef W1 #undef W1


+ 2
- 0
libavcodec/videodsp_template.c View File

@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include <assert.h>

#include "bit_depth_template.c" #include "bit_depth_template.c"
void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src,
ptrdiff_t buf_linesize, ptrdiff_t buf_linesize,


+ 6
- 0
libavcodec/x86/dsputil_qns_template.c View File

@@ -22,6 +22,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 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" #include "inline_asm.h"


#define MAX_ABS (512 >> (SCALE_OFFSET>0 ? SCALE_OFFSET : 0)) #define MAX_ABS (512 >> (SCALE_OFFSET>0 ? SCALE_OFFSET : 0))


+ 3
- 0
libavcodec/x86/hpeldsp_rnd_template.c View File

@@ -24,6 +24,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include <stddef.h>
#include <stdint.h>

// put_pixels // put_pixels
static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
{ {


+ 6
- 0
libavcodec/x86/mpegvideoenc_template.c View File

@@ -20,6 +20,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 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 MMREG_WIDTH
#undef MM #undef MM
#undef MOVQ #undef MOVQ


+ 6
- 0
libavresample/resample_template.c View File

@@ -18,6 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include <math.h>
#include <stdint.h>

#include "libavutil/common.h"
#include "internal.h"

#if defined(CONFIG_RESAMPLE_DBL) #if defined(CONFIG_RESAMPLE_DBL)
#define SET_TYPE(func) func ## _dbl #define SET_TYPE(func) func ## _dbl
#define FELEM double #define FELEM double


+ 2
- 0
libswscale/x86/rgb2rgb_template.c View File

@@ -25,8 +25,10 @@
*/ */


#include <stddef.h> #include <stddef.h>
#include <stdint.h>


#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/x86/asm.h"


#undef PREFETCH #undef PREFETCH
#undef MOVNTQ #undef MOVNTQ


+ 5
- 0
libswscale/x86/swscale_template.c View File

@@ -18,6 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include <stdint.h>

#include "libavutil/x86/asm.h"
#include "libswscale/swscale_internal.h"

#undef REAL_MOVNTQ #undef REAL_MOVNTQ
#undef MOVNTQ #undef MOVNTQ
#undef MOVNTQ2 #undef MOVNTQ2


+ 5
- 0
libswscale/x86/yuv2rgb_template.c View File

@@ -21,6 +21,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include <stdint.h>

#include "libavutil/x86/asm.h"
#include "libswscale/swscale_internal.h"

#undef MOVNTQ #undef MOVNTQ
#undef EMMS #undef EMMS
#undef SFENCE #undef SFENCE


Loading…
Cancel
Save