summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/sparc/hpeldsp_vis.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/sparc/hpeldsp_vis.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/sparc/hpeldsp_vis.c')
-rw-r--r--ffmpeg/libavcodec/sparc/hpeldsp_vis.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/ffmpeg/libavcodec/sparc/hpeldsp_vis.c b/ffmpeg/libavcodec/sparc/hpeldsp_vis.c
index da2d47e..be2a85d 100644
--- a/ffmpeg/libavcodec/sparc/hpeldsp_vis.c
+++ b/ffmpeg/libavcodec/sparc/hpeldsp_vis.c
@@ -22,13 +22,12 @@
The vis code from libmpeg2 was adapted for libavcodec by James A. Morrison.
*/
-#include "config.h"
+#include <stddef.h>
+#include <stdint.h>
-#include <inttypes.h>
-
-#include "libavcodec/hpeldsp.h"
+#include "libavutil/attributes.h"
#include "libavutil/mem.h"
-
+#include "libavcodec/hpeldsp.h"
#include "vis.h"
/* The trick used in some of this file is the formula from the MMX
@@ -3481,19 +3480,7 @@ static void MC_avg_no_round_xy_16_vis (uint8_t * dest, const uint8_t * ref,
/* End of no rounding code */
-#define ACCEL_SPARC_VIS 1
-#define ACCEL_SPARC_VIS2 2
-
-static int vis_level(void)
-{
- int accel = 0;
- accel |= ACCEL_SPARC_VIS;
- accel |= ACCEL_SPARC_VIS2;
- return accel;
-}
-
-/* libavcodec initialization code */
-void ff_hpeldsp_init_vis(HpelDSPContext* c, int flags)
+av_cold void ff_hpeldsp_init_vis(HpelDSPContext *c, int flags)
{
/* VIS-specific optimizations */
int accel = vis_level ();