[02/13] bfin: Make vp3 functions static

Message ID 1364995179-98359-2-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö April 3, 2013, 1:19 p.m.
---
 libavcodec/bfin/vp3_bfin.c |    8 ++++----
 libavcodec/bfin/vp3_bfin.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)

Comments

Luca Barbato April 3, 2013, 1:31 p.m. | #1
On 03/04/13 15:19, Martin Storsjö wrote:
> ---
>  libavcodec/bfin/vp3_bfin.c |    8 ++++----
>  libavcodec/bfin/vp3_bfin.h |    2 --
>  2 files changed, 4 insertions(+), 6 deletions(-)
> 

Sounds ok, I'll send a patch to cleanup the style later.

lu

Patch

diff --git a/libavcodec/bfin/vp3_bfin.c b/libavcodec/bfin/vp3_bfin.c
index ee45e3c..431ab58 100644
--- a/libavcodec/bfin/vp3_bfin.c
+++ b/libavcodec/bfin/vp3_bfin.c
@@ -28,7 +28,7 @@ 
 #include "vp3_bfin.h"
 
 /* Intra iDCT offset 128 */
-void ff_bfin_vp3_idct_put (uint8_t *dest, int line_size, int16_t *block)
+static void bfin_vp3_idct_put (uint8_t *dest, int line_size, int16_t *block)
 {
     uint8_t *cm = ff_cropTbl + MAX_NEG_CROP + 128;
     int i,j;
@@ -43,7 +43,7 @@  void ff_bfin_vp3_idct_put (uint8_t *dest, int line_size, int16_t *block)
 }
 
 /* Inter iDCT */
-void ff_bfin_vp3_idct_add (uint8_t *dest, int line_size, int16_t *block)
+static void bfin_vp3_idct_add (uint8_t *dest, int line_size, int16_t *block)
 {
     ff_bfin_vp3_idct (block);
     ff_bfin_add_pixels_clamped (block, dest, line_size);
@@ -54,7 +54,7 @@  void ff_bfin_vp3_idct_add (uint8_t *dest, int line_size, int16_t *block)
 av_cold void ff_vp3dsp_init_bfin(VP3DSPContext *c, int flags)
 {
     if (!(flags & CODEC_FLAG_BITEXACT)) {
-        c->idct_add = ff_bfin_vp3_idct_add;
-        c->idct_put = ff_bfin_vp3_idct_put;
+        c->idct_add = bfin_vp3_idct_add;
+        c->idct_put = bfin_vp3_idct_put;
     }
 }
diff --git a/libavcodec/bfin/vp3_bfin.h b/libavcodec/bfin/vp3_bfin.h
index 08b050e..5a2c5a4 100644
--- a/libavcodec/bfin/vp3_bfin.h
+++ b/libavcodec/bfin/vp3_bfin.h
@@ -23,7 +23,5 @@ 
 #include <stdint.h>
 
 void ff_bfin_vp3_idct(int16_t *block);
-void ff_bfin_vp3_idct_put(uint8_t *dest, int line_size, int16_t *block);
-void ff_bfin_vp3_idct_add(uint8_t *dest, int line_size, int16_t *block);
 
 #endif /* AVCODEC_BFIN_VP3_BFIN_H */