Browse Source

Mark functions only used within the test programs as static.

Originally committed as revision 17454 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 16 years ago
parent
commit
6f2162b471
3 changed files with 11 additions and 11 deletions
  1. +1
    -1
      tests/audiogen.c
  2. +5
    -5
      tests/rotozoom.c
  3. +5
    -5
      tests/videogen.c

+ 1
- 1
tests/audiogen.c View File

@@ -94,7 +94,7 @@ static int int_cos(int a)


FILE *outfile; FILE *outfile;


void put_sample(int v)
static void put_sample(int v)
{ {
fputc(v & 0xff, outfile); fputc(v & 0xff, outfile);
fputc((v >> 8) & 0xff, outfile); fputc((v >> 8) & 0xff, outfile);


+ 5
- 5
tests/rotozoom.c View File

@@ -121,8 +121,8 @@ static void rgb24_to_yuv420p(UINT8 *lum, UINT8 *cb, UINT8 *cr,
#define DEFAULT_HEIGHT 288 #define DEFAULT_HEIGHT 288
#define DEFAULT_NB_PICT 50 #define DEFAULT_NB_PICT 50


void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab)
static void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab)
{ {
FILE *f; FILE *f;
int i, h2, w2; int i, h2, w2;
@@ -158,7 +158,7 @@ void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab; unsigned char *rgb_tab;
int width, height, wrap; int width, height, wrap;


void put_pixel(int x, int y, int r, int g, int b)
static void put_pixel(int x, int y, int r, int g, int b)
{ {
unsigned char *p; unsigned char *p;


@@ -195,7 +195,7 @@ static int ipol(uint8_t *src, int x, int y){
return (((1<<16) - frac_y)*s0 + frac_y*s1)>>24; return (((1<<16) - frac_y)*s0 + frac_y*s1)>>24;
} }


void gen_image(int num, int w, int h)
static void gen_image(int num, int w, int h)
{ {
const int c = h_cos [teta]; const int c = h_cos [teta];
const int s = h_sin [teta]; const int s = h_sin [teta];
@@ -240,7 +240,7 @@ void gen_image(int num, int w, int h)
#define W 256 #define W 256
#define H 256 #define H 256


void init_demo(const char *filename) {
static void init_demo(const char *filename) {
int i,j; int i,j;
int h; int h;
int radian; int radian;


+ 5
- 5
tests/videogen.c View File

@@ -97,8 +97,8 @@ static void rgb24_to_yuv420p(uint8_t *lum, uint8_t *cb, uint8_t *cr,
#define DEFAULT_HEIGHT 288 #define DEFAULT_HEIGHT 288
#define DEFAULT_NB_PICT 50 /* 2 seconds */ #define DEFAULT_NB_PICT 50 /* 2 seconds */


void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab)
static void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab)
{ {
FILE *f; FILE *f;
int i, h2, w2; int i, h2, w2;
@@ -134,7 +134,7 @@ void pgmyuv_save(const char *filename, int w, int h,
unsigned char *rgb_tab; unsigned char *rgb_tab;
int width, height, wrap; int width, height, wrap;


void put_pixel(int x, int y, int r, int g, int b)
static void put_pixel(int x, int y, int r, int g, int b)
{ {
unsigned char *p; unsigned char *p;


@@ -171,7 +171,7 @@ static unsigned int myrnd(unsigned int *seed_ptr, int n)
#define FRAC_ONE (1 << FRAC_BITS) #define FRAC_ONE (1 << FRAC_BITS)


/* cosine approximate with 1-x^2 */ /* cosine approximate with 1-x^2 */
int int_cos(int a)
static int int_cos(int a)
{ {
int v, neg; int v, neg;
a = a & (FRAC_ONE - 1); a = a & (FRAC_ONE - 1);
@@ -198,7 +198,7 @@ VObj objs[NB_OBJS];


unsigned int seed = 1; unsigned int seed = 1;


void gen_image(int num, int w, int h)
static void gen_image(int num, int w, int h)
{ {
int r, g, b, x, y, i, dx, dy, x1, y1; int r, g, b, x, y, i, dx, dy, x1, y1;
unsigned int seed1; unsigned int seed1;


Loading…
Cancel
Save