[FFmpeg-cvslog] r17454 - in trunk/tests: audiogen.c rotozoom.c videogen.c
diego
subversion
Thu Feb 19 11:09:47 CET 2009
Author: diego
Date: Thu Feb 19 11:09:46 2009
New Revision: 17454
Log:
Mark functions only used within the test programs as static.
Modified:
trunk/tests/audiogen.c
trunk/tests/rotozoom.c
trunk/tests/videogen.c
Modified: trunk/tests/audiogen.c
==============================================================================
--- trunk/tests/audiogen.c Thu Feb 19 10:55:52 2009 (r17453)
+++ trunk/tests/audiogen.c Thu Feb 19 11:09:46 2009 (r17454)
@@ -94,7 +94,7 @@ static int int_cos(int a)
FILE *outfile;
-void put_sample(int v)
+static void put_sample(int v)
{
fputc(v & 0xff, outfile);
fputc((v >> 8) & 0xff, outfile);
Modified: trunk/tests/rotozoom.c
==============================================================================
--- trunk/tests/rotozoom.c Thu Feb 19 10:55:52 2009 (r17453)
+++ trunk/tests/rotozoom.c Thu Feb 19 11:09:46 2009 (r17454)
@@ -121,8 +121,8 @@ static void rgb24_to_yuv420p(UINT8 *lum,
#define DEFAULT_HEIGHT 288
#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;
int i, h2, w2;
@@ -158,7 +158,7 @@ void pgmyuv_save(const char *filename, i
unsigned char *rgb_tab;
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;
@@ -195,7 +195,7 @@ static int ipol(uint8_t *src, int x, int
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 s = h_sin [teta];
@@ -240,7 +240,7 @@ void gen_image(int num, int w, int h)
#define W 256
#define H 256
-void init_demo(const char *filename) {
+static void init_demo(const char *filename) {
int i,j;
int h;
int radian;
Modified: trunk/tests/videogen.c
==============================================================================
--- trunk/tests/videogen.c Thu Feb 19 10:55:52 2009 (r17453)
+++ trunk/tests/videogen.c Thu Feb 19 11:09:46 2009 (r17454)
@@ -97,8 +97,8 @@ static void rgb24_to_yuv420p(uint8_t *lu
#define DEFAULT_HEIGHT 288
#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;
int i, h2, w2;
@@ -134,7 +134,7 @@ void pgmyuv_save(const char *filename, i
unsigned char *rgb_tab;
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;
@@ -171,7 +171,7 @@ static unsigned int myrnd(unsigned int *
#define FRAC_ONE (1 << FRAC_BITS)
/* cosine approximate with 1-x^2 */
-int int_cos(int a)
+static int int_cos(int a)
{
int v, neg;
a = a & (FRAC_ONE - 1);
@@ -198,7 +198,7 @@ VObj objs[NB_OBJS];
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;
unsigned int seed1;
More information about the ffmpeg-cvslog
mailing list