Displaying 3 results from an estimated 3 matches for "dump_pgm".
Did you mean:
dump_page
2007 Mar 19
0
7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
...nsigned char *jpeg_decoder_get_argb_image (JpegDecoder *dec);
diff --git a/libswfdec/jpeg/test.c b/libswfdec/jpeg/test.c
index 0ebdae0..c5614ec 100644
--- a/libswfdec/jpeg/test.c
+++ b/libswfdec/jpeg/test.c
@@ -10,7 +10,7 @@
/* getfile */
void *getfile (char *path, int *n_bytes);
-static void dump_pgm (unsigned char *ptr, int rowstride, int width, int height);
+static void dump_pgm (const unsigned char *ptr, int rowstride, int width, int height);
int
@@ -20,7 +20,7 @@ main (int argc, char *argv[])
int len;
JpegDecoder *dec;
char *fn = "biglebowski.jpg";
- unsigned char *...
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...a/libswfdec/jpeg/test.c
+++ /dev/null
@@ -1,109 +0,0 @@
-
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-
-#include "jpeg.h"
-
-/* getfile */
-
-void *getfile (char *path, int *n_bytes);
-static void dump_pgm (const unsigned char *ptr, int rowstride, int width, int height);
-
-
-int
-main (int argc, char *argv[])
-{
- unsigned char *data;
- int len;
- JpegDecoder *dec;
- char *fn = "biglebowski.jpg";
- const unsigned char *ptr;
- int rowstride;
- int width;
- int height;
-
- dec = jpe...
2007 Feb 13
0
libswfdec/jpeg libswfdec/swfdec_image.c
...);
+ ptr = malloc (st.st_size);
if (!ptr) {
close (fd);
return NULL;
@@ -75,7 +74,7 @@ getfile (char *path, int *n_bytes)
ret = read (fd, ptr, st.st_size);
if (ret != st.st_size) {
- g_free (ptr);
+ free (ptr);
close (fd);
return NULL;
}
@@ -107,10 +106,3 @@ dump_pgm (unsigned char *ptr, int rowstr
ptr += rowstride;
}
}
-
-void
-swfdec_debug_log (int level, const char *file, const char *function,
- int line, const char *format, ...)
-{
-
-}
diff --git a/libswfdec/jpeg/test_rgb.c b/libswfdec/jpeg/test_rgb.c
index dde2c00..c74c4de 100644
--- a/libswfd...