提交 7b07e674 编写于 作者: B bernard.xiong@gmail.com

remove FILE using in jpeg.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1328 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 936d6035
......@@ -2,7 +2,7 @@ Import('RTT_ROOT')
Import('rtconfig')
from building import *
src = Split('''
s = '''
jaricom.c
jcomapi.c
jutils.c
......@@ -30,7 +30,68 @@ jquant1.c
jquant2.c
jdmerge.c
jmemnobs.c
'''
j62 = '''
jcomapi.c
jdapimin.c
jdapistd.c
jdcoefct.c
jdcolor.c
jddctmgr.c
jdhuff.c
jdinput.c
jdmainct.c
jdmarker.c
jdmaster.c
jdmerge.c
jdphuff.c
jdpostct.c
jdsample.c
jdtrans.c
jerror.c
jfdctflt.c
jfdctfst.c
jfdctint.c
jidctflt.c
jidctfst.c
jidctint.c
jidctred.c
jmemmgr.c
jquant1.c
jquant2.c
jutils.c
'''
src = Split('''
jaricom.c
jcomapi.c
jutils.c
jerror.c
jmemmgr.c
jdapimin.c
jdapistd.c
jdarith.c
jdtrans.c
jdmaster.c
jdinput.c
jdmarker.c
jdhuff.c
jdmainct.c
jdcoefct.c
jdpostct.c
jddctmgr.c
jidctfst.c
jidctflt.c
jidctint.c
jdsample.c
jdcolor.c
jquant1.c
jquant2.c
jdmerge.c
jmemnobs.c
''')
CPPPATH = [RTT_ROOT + '/components/external/jpeg']
group = DefineGroup('jpeg', src, depend = ['RTGUI_IMAGE_JPEG'], CPPPATH = CPPPATH)
......
/* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */
/* see jconfig.txt for explanations */
#define NO_GETENV
#define HAVE_PROTOTYPES
#define HAVE_UNSIGNED_CHAR
......
......@@ -75,7 +75,7 @@ error_exit (j_common_ptr cinfo)
/* Let the memory manager delete any temp files before we die */
jpeg_destroy(cinfo);
exit(EXIT_FAILURE);
// exit(EXIT_FAILURE);
}
......@@ -108,7 +108,7 @@ output_message (j_common_ptr cinfo)
MB_OK | MB_ICONERROR);
#else
/* Send it to stderr, adding a newline */
fprintf(stderr, "%s\n", buffer);
// fprintf(stderr, "%s\n", buffer);
#endif
}
......
......@@ -162,7 +162,7 @@ typedef struct backing_store_struct {
char temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */
#else
/* For a typical implementation with temp files, we need: */
FILE * temp_file; /* stdio reference to temp file */
// FILE * temp_file; /* stdio reference to temp file */
char temp_name[TEMP_NAME_LENGTH]; /* name of temp file */
#endif
#endif
......
......@@ -935,8 +935,8 @@ EXTERN(void) jpeg_destroy_decompress JPP((j_decompress_ptr cinfo));
/* Standard data source and destination managers: stdio streams. */
/* Caller is responsible for opening the file before and closing after. */
EXTERN(void) jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile));
EXTERN(void) jpeg_stdio_src JPP((j_decompress_ptr cinfo, FILE * infile));
// EXTERN(void) jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile));
// EXTERN(void) jpeg_stdio_src JPP((j_decompress_ptr cinfo, FILE * infile));
/* Default parameter setup for compression */
EXTERN(void) jpeg_set_defaults JPP((j_compress_ptr cinfo));
......
......@@ -7,7 +7,6 @@ adler32.c
compress.c
crc32.c
deflate.c
gzio.c
infback.c
inffast.c
inflate.c
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册