aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-03-30 03:43:55 (GMT)
committervektor <devnull@localhost>2005-03-30 03:43:55 (GMT)
commite1775ae8edba0deec39deb5676bd327c28861575 (patch)
tree083bd45aa03b06d05c60a5fa96101dafbd70f4f4
parent3ff2448dc2b957884d4a72cd3cd777fb933279a4 (diff)
* tvtime/src/expandpng.c: Remove unused code.
-rw-r--r--src/expandpng.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/expandpng.c b/src/expandpng.c
deleted file mode 100644
index d313dbb..0000000
--- a/src/expandpng.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Copyright (c) 2002 Billy Biggs <vektor@dumbterm.net>.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#if defined (__SVR4) && defined (__sun)
-# include <sys/int_types.h>
-#else
-# include <stdint.h>
-#endif
-#include "pnginput.h"
-#include "pngoutput.h"
-
-int main( int argc, char **argv )
-{
- uint8_t *temp;
- pnginput_t *greyimage;
- pngoutput_t *outimage;
- int width, height, i;
-
- greyimage = pnginput_new( argv[ 1 ] );
- width = pnginput_get_width( greyimage );
- height = pnginput_get_height( greyimage );
- temp = malloc( width * 4 );
-
- outimage = pngoutput_new( argv[ 2 ], width, height, 1, 0.45 );
-
- for( i = 0; i < height; i++ ) {
- uint8_t *inscanline = pnginput_get_scanline( greyimage, i );
- int j;
-
- for( j = 0; j < width; j++ ) {
- temp[ (j*4) + 0 ] = 245; /* wheat */
- temp[ (j*4) + 1 ] = 222;
- temp[ (j*4) + 2 ] = 179;
- temp[ (j*4) + 3 ] = 0xff - inscanline[ j ];
- }
- pngoutput_scanline( outimage, temp );
- }
-
- pnginput_delete( greyimage );
- pngoutput_delete( outimage );
- return 0;
-}
-

Privacy Policy