diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-11 11:07:56 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-11 11:07:56 +0100 |
commit | 3a243e4fb738283b7954cbd6ab9a3856cd3edee0 (patch) | |
tree | 8e2a1ea4ecc92b9b9f5d769cfe2be8ad15001fc2 | |
parent | 65143233de5f23264721ad167ceefbdd757b4042 (diff) | |
download | econ-3a243e4fb738283b7954cbd6ab9a3856cd3edee0.tar.gz econ-3a243e4fb738283b7954cbd6ab9a3856cd3edee0.tar.bz2 econ-3a243e4fb738283b7954cbd6ab9a3856cd3edee0.zip |
econproxy: No need to save first frame as ppm anymore
Was just for debugging purposes..
-rw-r--r-- | econproxy.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/econproxy.c b/econproxy.c index 17b4970..398ddd9 100644 --- a/econproxy.c +++ b/econproxy.c @@ -172,21 +172,6 @@ read_packet(struct ep *ep) return 0; } -static void -write_ppm(FILE *img, int width, int height, int bpp, uint8_t *buf) -{ - int i; - - fprintf(img, "P6\n"); - fprintf(img, "%d %d\n255\n", width, height); - - for (i = 0; i < width * height; ++i) { - fwrite(&buf[i*bpp+2], 1, 1, img); - fwrite(&buf[i*bpp+1], 1, 1, img); - fwrite(&buf[i*bpp+0], 1, 1, img); - } -} - static int ep_keepalive(struct ep *ep) { @@ -657,12 +642,6 @@ main(int argc, char *argv[]) if (rfb_retrieve_framebuffer_update(&ep, &iov, &iovcnt, &datasize) < 0) exit(EXIT_FAILURE); -#if 1 - FILE *img = fopen("/tmp/out.ppm", "w"); - write_ppm(img, 1024, 768, 4, iov[2].iov_base); - fclose(img); -#endif - if (create_beamer_sockets(&ep, beamer) < 0) exit(EXIT_FAILURE); |