diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-02-17 13:36:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-02-17 13:36:38 +0000 |
| commit | 22e28216336da876e1fd17f380ce42eaf1446769 (patch) | |
| tree | 444dad3dc7e2656992d29f34f7bce31970c122a5 /ffmpeg-fas/test/test_support.h | |
| parent | ae5e8541f6e06e64c28719467cdf366ac57aff31 (diff) | |
chasing indexing error
Diffstat (limited to 'ffmpeg-fas/test/test_support.h')
| -rw-r--r-- | ffmpeg-fas/test/test_support.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/ffmpeg-fas/test/test_support.h b/ffmpeg-fas/test/test_support.h deleted file mode 100644 index 5b91a1a..0000000 --- a/ffmpeg-fas/test/test_support.h +++ /dev/null @@ -1,67 +0,0 @@ -/***************************************************************************** - * Copyright 2008. Pittsburgh Pattern Recognition, Inc. - * - * This file is part of the Frame Accurate Seeking extension library to - * ffmpeg (ffmpeg-fas). - * - * ffmpeg-fas is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 3 of the License, or (at your - * option) any later version. - * - * The ffmpeg-fas library 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 Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with the ffmpeg-fas library. If not, see <http://www.gnu.org/licenses/>. - * - ******************************************************************************/ - -#ifndef FAS_TEST_SUPPORT -#define FAS_TEST_SUPPORT - -#include <stdio.h> -#include <stdlib.h> - -#define fail(x) { fprintf(stderr, "fail : "); fprintf(stderr, x); exit(EXIT_FAILURE); } -#define success() { fprintf(stderr, "success\n"); exit(EXIT_SUCCESS); } - -/* - * static void pgm_save(ppt_raw_image_type *image, char *filename) - * { - * FILE *f; - * int i; - * - * f=fopen(filename,"w"); - * fprintf(f,"P5\n%d\n%d\n%d\n", image->width, image->height, 255); - * - * for(i=0; i<image->height; i++) { - * fwrite(image->data + i * image->bytes_per_line, 1, image->width, f); - * } - * - * fclose(f); - * } - */ - -static void ppm_save(fas_raw_image_type *image, char *filename) -{ - FILE *f; - int i; - - if (image->color_space != FAS_RGB24) { - return; - } - - f=fopen(filename,"wb"); - fprintf(f,"P6\n%d %d\n%d\n", image->width, image->height, 255); - - for(i=0; i<image->height; i++) { - fwrite(image->data + i * image->bytes_per_line, 1, image->width * 3, f); - } - - fclose(f); -} - -#endif |
