[Swfed-svn] swfed-svn [312] - gif_size, png_size の関数エントリだけ作成

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 10月 28日 (木) 16:25:54 JST


Revision: 312
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=312
Author:   yoya
Date:     2010-10-28 16:25:54 +0900 (Thu, 28 Oct 2010)

Log Message:
-----------
- gif_size, png_size の関数エントリだけ作成
- コピー元の JPEG_SIZE, JPEG_SEGMENT の文字を BITMAP_UTIL に修正

Modified Paths:
--------------
    trunk/src/bitmap_util.c
    trunk/src/bitmap_util.h


-------------- next part --------------
Modified: trunk/src/bitmap_util.c
===================================================================
--- trunk/src/bitmap_util.c	2010-10-28 07:20:25 UTC (rev 311)
+++ trunk/src/bitmap_util.c	2010-10-28 07:25:54 UTC (rev 312)
@@ -1,5 +1,5 @@
 /*
-  gcc -W -Wall -D__JPEG_SIZE_DEBUG__ jpeg_size.c jpeg_segment.c  bitstream.c
+  gcc -W -Wall -D__BITMAP_UTIL_DEBUG__ bitmap_util.c jpeg_segment.c bitstream.c
 */
 
 #include <stdio.h>
@@ -36,7 +36,7 @@
     return ret;
 }
 
-#ifdef __JPEG_SIZE_DEBUG__  /* for component debug */
+#ifdef __BITMAP_UTIL_DEBUG__  /* for component debug */
 
 #include <sys/stat.h>
 
@@ -82,4 +82,17 @@
     return EXIT_SUCCESS;
 }
 
-#endif /* __JPEG_SIZE_DEBUG__ */
+int
+png_size(unsigned char *data, unsigned long data_len,
+         int *width, int *height) {
+    return 0;
+}
+
+int
+gif_size(unsigned char *data, unsigned long data_len,
+                    int *width, int *height) {
+    return 0;
+}
+
+
+#endif /* __BITMAP_UTIL_DEBUG__ */

Modified: trunk/src/bitmap_util.h
===================================================================
--- trunk/src/bitmap_util.h	2010-10-28 07:20:25 UTC (rev 311)
+++ trunk/src/bitmap_util.h	2010-10-28 07:25:54 UTC (rev 312)
@@ -5,8 +5,8 @@
 */
 
 
-#ifndef __JPEG_SIZE_H__
-#define __JPEG_SIZE_H__
+#ifndef __BITMAP_UTIL_H__
+#define __BITMAP_UTIL_H__
 
 #include "jpeg_segment.h"
 
@@ -14,4 +14,10 @@
 extern int jpeg_size(unsigned char *data, unsigned long data_len,
                      int *width, int *height);
 
-#endif /* __JPEG_SEGMENT_H__ */
+extern int png_size(unsigned char *data, unsigned long data_len,
+                    int *width, int *height);
+
+extern int gif_size(unsigned char *data, unsigned long data_len,
+                    int *width, int *height);
+
+#endif /* __BITMAP_UTIL_H__ */



Swfed-svn メーリングリストの案内
Back to archive index