12 |
13 |
14 |
--------------------------------------------------------------------------------
/cximage702_full/index.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CxImage
5 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/cximage702_full/jasper/jasper.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "jasper"=".\jasper.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/jasper/jasper.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/jasper/jpg/README:
--------------------------------------------------------------------------------
1 | This directory contains code to support the JPEG image format. In order
2 | for the code in this directory to be useful, the free JPEG library from
3 | the Independent JPEG Group (IJG) is needed. For legal reasons, the
4 | IJG JPEG software is not included in the JasPer software distribution.
5 | The IJG JPEG software can be obtained, however, from:
6 | http://www.ijg.org
7 |
--------------------------------------------------------------------------------
/cximage702_full/jasper/mif/README:
--------------------------------------------------------------------------------
1 | This directory contains the code for support of the MIF format.
2 |
--------------------------------------------------------------------------------
/cximage702_full/jbig/Makefile:
--------------------------------------------------------------------------------
1 | # Unix makefile for the JBIG-KIT library
2 | # $Id: Makefile,v 1.9 2004-06-08 15:40:06+01 mgk25 Exp $
3 |
4 | # Select an ANSI/ISO C compiler here, GNU gcc is recommended
5 | CC = gcc
6 |
7 | # Options for the compiler: A high optimization level is suggested
8 | CFLAGS = -O -Wall -ansi -pedantic
9 |
10 | all: libjbig.a tstcodec
11 |
12 | tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
13 | $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
14 | jbig_tab.o
15 |
16 | libjbig.a: jbig.o jbig_tab.o
17 | rm -f libjbig.a
18 | ar rc libjbig.a jbig.o jbig_tab.o
19 | -ranlib libjbig.a
20 |
21 | jbig.o: jbig.c jbig.h
22 |
23 | test: tstcodec
24 | ./tstcodec
25 |
26 | t82test.pbm: tstcodec
27 | ./tstcodec $@
28 |
29 | clean:
30 | rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm
31 |
--------------------------------------------------------------------------------
/cximage702_full/jbig/jbig.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/jbig/jbig.doc
--------------------------------------------------------------------------------
/cximage702_full/jbig/jbig.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "jbig"=.\jbig.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/jbig/jbig.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/jbig/patents.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/jbig/patents.htm
--------------------------------------------------------------------------------
/cximage702_full/jpeg/Jpeg.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 5.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "jpeg"=.\jpeg.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/jpeg/jdosaobj.txt:
--------------------------------------------------------------------------------
1 | This archive contains already-assembled object files for JMEMDOSA.ASM
2 | of the Independent JPEG Group's JPEG package. These files will be helpful
3 | if you want to compile the IJG code for DOS, but don't have an assembler.
4 |
5 | These files were prepared from the 3/13/1992 version of JMEMDOSA.ASM,
6 | which is still unchanged as of mid-1998. You can use these files with
7 | releases 3 through 6 of the IJG code, and probably future releases too.
8 |
9 | To use these files, copy the proper version to JMEMDOSA.OBJ. Make sure
10 | this file has a newer date than JMEMDOSA.ASM. Then compile the code as
11 | usual.
12 |
13 | Object files included:
14 |
15 | JDOSAMSC.OBJ For Microsoft C version 5 or later.
16 | JDOSABCC.OBJ For Borland C version 3.0 or later.
17 |
--------------------------------------------------------------------------------
/cximage702_full/jpeg/jpeg.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/jpeg/jversion.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jversion.h
3 | *
4 | * Copyright (C) 1991-2011, Thomas G. Lane, Guido Vollbeding.
5 | * This file is part of the Independent JPEG Group's software.
6 | * For conditions of distribution and use, see the accompanying README file.
7 | *
8 | * This file contains software version identification.
9 | */
10 |
11 |
12 | #define JVERSION "8c 16-Jan-2011"
13 |
14 | #define JCOPYRIGHT "Copyright (C) 2011, Thomas G. Lane, Guido Vollbeding"
15 |
--------------------------------------------------------------------------------
/cximage702_full/jpeg/rdgif.c:
--------------------------------------------------------------------------------
1 | /*
2 | * rdgif.c
3 | *
4 | * Copyright (C) 1991-1997, Thomas G. Lane.
5 | * This file is part of the Independent JPEG Group's software.
6 | * For conditions of distribution and use, see the accompanying README file.
7 | *
8 | * This file contains routines to read input images in GIF format.
9 | *
10 | *****************************************************************************
11 | * NOTE: to avoid entanglements with Unisys' patent on LZW compression, *
12 | * the ability to read GIF files has been removed from the IJG distribution. *
13 | * Sorry about that. *
14 | *****************************************************************************
15 | *
16 | * We are required to state that
17 | * "The Graphics Interchange Format(c) is the Copyright property of
18 | * CompuServe Incorporated. GIF(sm) is a Service Mark property of
19 | * CompuServe Incorporated."
20 | */
21 |
22 | #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
23 |
24 | #ifdef GIF_SUPPORTED
25 |
26 | /*
27 | * The module selection routine for GIF format input.
28 | */
29 |
30 | GLOBAL(cjpeg_source_ptr)
31 | jinit_read_gif (j_compress_ptr cinfo)
32 | {
33 | fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n");
34 | exit(EXIT_FAILURE);
35 | return NULL; /* keep compiler happy */
36 | }
37 |
38 | #endif /* GIF_SUPPORTED */
39 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/AUTHORS:
--------------------------------------------------------------------------------
1 | Patrick Wang
2 | libpsd@graphest.com
--------------------------------------------------------------------------------
/cximage702_full/libpsd/CUSTOMIZE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/CUSTOMIZE
--------------------------------------------------------------------------------
/cximage702_full/libpsd/ChangeLog:
--------------------------------------------------------------------------------
1 | V0.9 (24 February 2007)
2 | First public release.
3 |
4 |
5 | Notice about this file
6 | ======================
7 |
8 | Libpsd is the product of Graphest Software, copyright 2004-2007, www.graphest.com
9 |
10 | This file is the part of Libpsd project, Libpsd is under the terms of the GNU Library
11 | General Public License as published by the Free Software Foundation; either version 2
12 | of the License, or (at your option) any later version. See the GNU General Public
13 | License for more details.
--------------------------------------------------------------------------------
/cximage702_full/libpsd/INSTALL:
--------------------------------------------------------------------------------
1 | Basic Installation
2 | ==================
3 |
4 | This file only mentions the compilation, not the installation.
5 |
6 | 1. create compilation project
7 |
8 | Include all the *.c files in 'src' folder to your empty project, and set the
9 | 'include' folder as the include path.
10 |
11 |
12 | 2. Customize
13 | Read the COSTOMIZE document, according to the document, modify the options and
14 | parameters of your project. Be sure the file 'psd_system.c' is correct.
15 |
16 |
17 | 3. Compile
18 |
19 |
20 | Notice about this file
21 | ======================
22 |
23 | Libpsd is the product of Graphest Software, copyright 2004-2007, www.graphest.com
24 |
25 | This file is the part of Libpsd project, Libpsd is under the terms of the GNU Library
26 | General Public License as published by the Free Software Foundation; either version 2
27 | of the License, or (at your option) any later version. See the GNU General Public
28 | License for more details.
--------------------------------------------------------------------------------
/cximage702_full/libpsd/README:
--------------------------------------------------------------------------------
1 | Graphest Libpsd is a open source library which mainly decodes and blends *.psd files.
2 | There are many ways to read the psd files, however, they cannot decode all the
3 | information you want, and they don't provide the functions to blend psd again when
4 | changed the parameters or hided the layers. Libpsd can read the header, thumbnail,
5 | layer, mask, image resource, channel, path, pattern, adjustment layer, layer effect,
6 | etc. It converts 1, 8, 16 bit colors formats in Bitmap, Grayscale, Index, RGB, CMYK,
7 | LAB and multi-channel color spaces to 8 bit RGB color. All the features include in
8 | Photoshop sdk documents are implemented. After changed the parameters of layer, mask,
9 | channel and layer effect, Libpsd can blend the file again. It supports for Adobe
10 | Photoshop CS version, and is compatible with the previous versions of Photoshop. All
11 | the source code is C language, it's easy to run on many platforms such as Windows,
12 | Linux, OS2, Mac, etc.
13 |
14 |
15 | Notice about this file
16 | ======================
17 |
18 | Libpsd is the product of Graphest Software, copyright 2004-2007, www.graphest.com
19 |
20 | This file is the part of Libpsd project, Libpsd is under the terms of the GNU Library
21 | General Public License as published by the Free Software Foundation; either version 2
22 | of the License, or (at your option) any later version. See the GNU General Public
23 | License for more details.
--------------------------------------------------------------------------------
/cximage702_full/libpsd/channel_image.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/channel_image.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/hue_saturation.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/hue_saturation.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/image_data.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/image_data.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/image_resource.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/image_resource.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/layer_mask.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/layer_mask.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/libpsd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/libpsd.h
--------------------------------------------------------------------------------
/cximage702_full/libpsd/libpsd.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/pattern.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/pattern.c
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_descriptor.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_DESCRIPTOR_H__
2 | #define __PSD_DESCRIPTOR_H__
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | #include "libpsd.h"
9 |
10 |
11 | void psd_stream_get_object_null(psd_uint type, psd_context * context);
12 | psd_argb_color psd_stream_get_object_color(psd_context * context);
13 | void psd_stream_get_object_contour(psd_uchar * lookup_table, psd_context * context);
14 | psd_blend_mode psd_stream_get_object_blend_mode(psd_context * context);
15 | psd_technique_type psd_stream_get_object_technique(psd_context * context);
16 | psd_gradient_style psd_stream_get_object_gradient_style(psd_context * context);
17 | void psd_stream_get_object_gradient_color(psd_gradient_color * gradient_color, psd_context * context);
18 | void psd_stream_get_object_pattern_info(psd_pattern_info * pattern_info, psd_context * context);
19 | void psd_stream_get_object_point(psd_int * horz, psd_int * vert, psd_context * context);
20 |
21 |
22 | #ifdef __cplusplus
23 | }
24 | #endif
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_gradient.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_GRADIENT_H__
2 | #define __PSD_GRADIENT_H__
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | #include "libpsd.h"
9 |
10 |
11 | #define PSD_TAN(angle) ((angle) <= 45 ? (angle) / 45.0 : 45.0 / (90 - (angle)))
12 |
13 |
14 | psd_status psd_gradient_fill_linear(psd_bitmap * bitmap, psd_gradient_color * gradient_color, psd_bool reverse,
15 | psd_int start_x, psd_int start_y, psd_int end_x, psd_int end_y);
16 | psd_status psd_gradient_fill_radial(psd_bitmap * bitmap, psd_gradient_color * gradient_color, psd_bool reverse,
17 | psd_int center_x, psd_int center_y, psd_int radius);
18 | psd_status psd_gradient_fill_angle(psd_bitmap * bitmap, psd_gradient_color * gradient_color, psd_bool reverse,
19 | psd_int center_x, psd_int center_y, psd_int angle);
20 | psd_status psd_gradient_fill_reflected(psd_bitmap * bitmap, psd_gradient_color * gradient_color, psd_bool reverse,
21 | psd_int start_x, psd_int start_y, psd_int end_x, psd_int end_y);
22 | psd_status psd_gradient_fill_diamond(psd_bitmap * bitmap, psd_gradient_color * gradient_color, psd_bool reverse,
23 | psd_int center_x, psd_int center_y, psd_int radius, psd_int angle);
24 | psd_float psd_carm_sqrt(psd_float x);
25 |
26 |
27 | #ifdef __cplusplus
28 | }
29 | #endif
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_math.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_MATH_H__
2 | #define __PSD_MATH_H__
3 |
4 |
5 | #define PSD_MIN(a, b) (((a) < (b)) ? (a) : (b))
6 | #define PSD_MAX(a, b) (((a) > (b)) ? (a) : (b))
7 | #define PSD_CONSTRAIN(value, lo, hi) (PSD_MIN(PSD_MAX((value), (lo)), (hi)))
8 | #define PSD_ABS(a) ((a) > 0 ? (a) : -(a))
9 | #define PSD_SIGN(a) ((a) == 0 ? 0 : ((a) > 0 ? 1 : -1))
10 |
11 | #define PSD_PI 3.1415927f
12 | #define PSD_PI_4 (3.1415927f / 4)
13 |
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_rect.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_RECT_H__
2 | #define __PSD_RECT_H__
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | #include "libpsd.h"
9 |
10 |
11 | typedef struct _psd_rect
12 | {
13 | psd_int left;
14 | psd_int top;
15 | psd_int right;
16 | psd_int bottom;
17 | } psd_rect;
18 |
19 |
20 | psd_bool psd_incept_rect(psd_rect * r1, psd_rect * r2, psd_rect * dst_rect);
21 | psd_bool psd_equal_rect(psd_rect * r1, psd_rect * r2);
22 | psd_bool psd_subtract_rect(psd_rect * r1, psd_rect * r2, psd_rect * dst_rect);
23 | void psd_make_rect(psd_rect * rc, psd_int left, psd_int top, psd_int right, psd_int bottom);
24 | void psd_dup_rect(psd_rect * dst, psd_rect * src);
25 | psd_int psd_rect_width(psd_rect * rc);
26 | psd_int psd_rect_height(psd_rect * rc);
27 | void psd_offset_rect(psd_rect * rc, psd_int dlt_x, psd_int dlt_y);
28 | void psd_inflate_rect(psd_rect * rc, psd_int dlt_x, psd_int dlt_y);
29 | psd_bool psd_point_in_rect(psd_rect * rc, psd_int x, psd_int y);
30 | psd_bool psd_is_empty_rect(psd_rect * rc);
31 |
32 |
33 |
34 | #ifdef __cplusplus
35 | }
36 | #endif
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_stream.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_STREAM_H__
2 | #define __PSD_STREAM_H__
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 |
9 | #define PSD_STREAM_MAX_READ_LENGTH 4096
10 |
11 | #define PSD_CHAR_TO_SHORT(str) (short)((*(str) << 8) | *((str) + 1))
12 | #define PSD_CHAR_TO_INT(str) (int)((*(str) << 24) | (*((str) + 1) << 16) | (*((str) + 2) << 8) | *((str) + 3))
13 |
14 |
15 | psd_int psd_stream_get(psd_context * context, psd_uchar * buffer, psd_int length);
16 | psd_int psd_stream_get_null(psd_context * context, psd_int length);
17 | psd_bool psd_stream_get_bool(psd_context * context);
18 | psd_uchar psd_stream_get_char(psd_context * context);
19 | psd_short psd_stream_get_short(psd_context * context);
20 | psd_int psd_stream_get_int(psd_context * context);
21 | psd_float psd_stream_get_float(psd_context * context);
22 | psd_double psd_stream_get_double(psd_context * context);
23 | psd_argb_color psd_stream_get_space_color(psd_context * context);
24 | psd_blend_mode psd_stream_get_blend_mode(psd_context * context);
25 | void psd_stream_free(psd_context * context);
26 |
27 |
28 | #ifdef __cplusplus
29 | }
30 | #endif
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_system.c:
--------------------------------------------------------------------------------
1 | // created: 2007-01-27
2 | #include
3 | #include
4 | #include "libpsd.h"
5 | #include "psd_system.h"
6 |
7 |
8 | void * psd_malloc(psd_int size)
9 | {
10 | return malloc(size);
11 | }
12 |
13 | void * psd_realloc(void * block, psd_int size)
14 | {
15 | return realloc(block, size);
16 | }
17 |
18 | void psd_free(void * block)
19 | {
20 | free(block);
21 | }
22 |
23 | void psd_freeif(void * block)
24 | {
25 | if (block != NULL)
26 | psd_free(block);
27 | }
28 |
29 | void * psd_fopen(psd_char * file_name)
30 | {
31 | return (void *)fopen(file_name, "rb");
32 | }
33 |
34 | void psd_fclose(void * file)
35 | {
36 | fclose((FILE *)file);
37 | }
38 |
39 | psd_int psd_std_size(void *obj)
40 | {
41 | psd_int offset, size;
42 |
43 | offset = ftell((FILE *)obj);
44 | fseek((FILE *)obj, 0, SEEK_END);
45 | size = ftell(obj);
46 | fseek((FILE *)obj, 0, SEEK_SET);
47 | fseek((FILE *)obj, offset, SEEK_CUR);
48 |
49 | return size;
50 | }
51 |
52 | psd_int psd_std_seek(void *obj, int offset, int origin)
53 | {
54 | return fseek((FILE *)obj, offset, origin/*SEEK_CUR*/);
55 | }
56 |
57 | psd_int psd_std_read(void *obj, void *buf, int size, int cnt)
58 | {
59 | return fread(buf, size/*1*/, cnt, (FILE *)obj);
60 | }
61 |
62 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_system.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_SYSTEM_H__
2 | #define __PSD_SYSTEM_H__
3 |
4 | #include
5 | #include
6 | #include "psd_types.h"
7 |
8 | #ifdef __cplusplus
9 | extern "C" {
10 | #endif
11 |
12 |
13 | #if 1
14 | #define psd_assert(x) assert(x)
15 | #else
16 | #define psd_assert(x) do {} while(0)
17 | // or
18 | // #define psd_assert(x) return psd_status_unkown_error
19 | #endif
20 |
21 |
22 | void * psd_malloc(psd_int size);
23 | void * psd_realloc(void * block, psd_int size);
24 |
25 | void psd_free(void * block);
26 | void psd_freeif(void * block);
27 |
28 | void * psd_fopen(psd_char * file_name);
29 | void psd_fclose(void * file);
30 |
31 | //psd_int psd_fsize(void * file);
32 | //psd_int psd_fread(psd_uchar * buffer, psd_int count, void * file);
33 | //psd_int psd_fseek(void * file, psd_int length);
34 |
35 | psd_int psd_std_size(void *obj);
36 | psd_int psd_std_seek(void *obj, int offset, int origin);
37 | psd_int psd_std_read(void *obj, void *buf, int size, int cnt);
38 | //psd_int psd_std_write(void *obj, void *buf, int size, int cnt);
39 | //psd_int psd_std_close(void *obj);
40 | //psd_char* psd_std_gets(void *obj, char *string, int n);
41 | //psd_int psd_std_eof(void *obj);
42 | //psd_int psd_std_tell(void *obj);
43 | //psd_int psd_std_getc(void *obj);
44 | //psd_int psd_std_scanf(void *obj,const char *format, void* output);
45 |
46 |
47 | #ifdef __cplusplus
48 | }
49 | #endif
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/psd_types.h:
--------------------------------------------------------------------------------
1 | #ifndef __PSD_TYPES_H__
2 | #define __PSD_TYPES_H__
3 |
4 | #include
5 |
6 |
7 | typedef unsigned char psd_bool;
8 | #define psd_true 1
9 | #define psd_false 0
10 |
11 |
12 | typedef char psd_char;
13 | typedef unsigned char psd_uchar;
14 | typedef short psd_short;
15 | typedef unsigned short psd_ushort;
16 | typedef int psd_int;
17 | typedef unsigned int psd_uint;
18 | typedef float psd_float;
19 | typedef double psd_double;
20 |
21 |
22 | typedef unsigned char psd_color_component;
23 | typedef unsigned int psd_argb_color;
24 |
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/cximage702_full/libpsd/selective_color.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/libpsd/selective_color.c
--------------------------------------------------------------------------------
/cximage702_full/mng/README.txt:
--------------------------------------------------------------------------------
1 | libmng 1.0.10
2 | -------------
3 |
4 | Added provisional ANG and anIM support, and made some minor bugfixes.
5 |
6 | libmng 1.0.9
7 | ------------
8 |
9 | A number of optimizations in the chunk handling and reader/writer code.
10 | This saves over 20KB on binary footprint!
11 |
12 | Also several bugfixes and a couple of patches bring it another step
13 | closer to perfection.... :-)
14 |
15 | See CHANGELOG for details.
16 |
17 |
18 | Y.T.
19 |
20 | Gerard
21 |
22 |
23 | For more information please visit:
24 |
25 | The official libmng web-site:
26 | http://www.libmng.com/
27 |
28 | Libmng's community on SourceForge:
29 | https://sourceforge.net/project/?group_id=5635
30 |
31 | The official MNG homepage:
32 | http://www.libpng.org/pub/mng/
33 |
34 | The official PNG homepage:
35 | http://www.libpng.org/pub/png/
36 |
37 |
--------------------------------------------------------------------------------
/cximage702_full/mng/mng.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "mng"=.\mng.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/mng/mng.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/png/TODO:
--------------------------------------------------------------------------------
1 | /*
2 | TODO - list of things to do for libpng:
3 |
4 | Final bug fixes.
5 | Better C++ wrapper/full C++ implementation?
6 | Fix problem with C++ and EXTERN "C".
7 | cHRM transformation.
8 | Remove setjmp/longjmp usage in favor of returning error codes.
9 | Add "grayscale->palette" transformation and "palette->grayscale" detection.
10 | Improved dithering.
11 | Multi-lingual error and warning message support.
12 | Complete sRGB transformation (presently it simply uses gamma=0.45455).
13 | Man pages for function calls.
14 | Better documentation.
15 | Better filter selection
16 | (counting huffman bits/precompression? filter inertia? filter costs?).
17 | Histogram creation.
18 | Text conversion between different code pages (Latin-1 -> Mac and DOS).
19 | Avoid building gamma tables whenever possible.
20 | Use greater precision when changing to linear gamma for compositing against
21 | background and doing rgb-to-gray transformation.
22 | Investigate pre-incremented loop counters and other loop constructions.
23 | Add interpolated method of handling interlacing.
24 | Switch to the simpler zlib (zlib/libpng) license if legally possible.
25 | Extend pngvalid.c to validate more of the libpng transformations.
26 |
27 | */
28 |
--------------------------------------------------------------------------------
/cximage702_full/png/configure:
--------------------------------------------------------------------------------
1 |
2 | echo "
3 | There is no \"configure\" script in this distribution of
4 | libpng-1.5.1.
5 |
6 | Instead, please copy the appropriate makefile for your system from the
7 | \"scripts\" directory. Read the INSTALL file for more details.
8 |
9 | Update, July 2004: you can get a \"configure\" based distribution
10 | from the libpng distribution sites. Download the file
11 | libpng-1.5.1.tar.gz, libpng-1.5.1.tar.xz, or libpng-1.5.1.tar.bz2
12 |
13 | If the line endings in the files look funny, which is likely to be the
14 | case if you were trying to run \"configure\" on a Linux machine, you may
15 | wish to get the other distribution of libpng. It is available in both
16 | tar.gz/tar.xz (UNIX style line endings) and .7z/.zip (DOS style line
17 | endings) formats.
18 | "
19 |
20 |
--------------------------------------------------------------------------------
/cximage702_full/png/libpng.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | includedir=@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
5 |
6 | Name: libpng
7 | Description: Loads and saves PNG files
8 | Version: @PNGLIB_VERSION@
9 | Libs: -L${libdir} -lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
10 | Libs.private: @LIBS@
11 | Cflags: -I${includedir}
12 |
--------------------------------------------------------------------------------
/cximage702_full/png/libpngpf.3:
--------------------------------------------------------------------------------
1 | .TH LIBPNGPF 3 "February 3, 2011"
2 | .SH NAME
3 | libpng \- Portable Network Graphics (PNG) Reference Library 1.5.1
4 | (private functions)
5 | .SH SYNOPSIS
6 | \fB#include \fI"pngpriv.h"
7 |
8 | \fI\fB
9 |
10 | \fBAs of libpng version \fP\fI1.5.1\fP\fB, this section is no longer \fP\fImaintained\fP\fB, now \fIthat
11 |
12 | \fBthe private function prototypes are hidden in pngpriv.h and not \fIaccessible
13 |
14 | \fBto applications. Look in pngpriv.h for the prototypes and a short \fIdescription
15 |
16 | \fBof each \fIfunction.
17 |
18 | \fI\fB
19 |
20 | .SH DESCRIPTION
21 | The functions previously listed here are used privately by libpng
22 | and are not recommended for use by applications. They are
23 | not "exported" to applications using shared libraries. They
24 | are listed alphabetically here as an aid to libpng maintainers.
25 | See pngpriv.h for more information on these functions.
26 |
27 | .SH SEE ALSO
28 | .BR "png"(5), " libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5)
29 | .SH AUTHOR
30 | Glenn Randers-Pehrson
31 |
--------------------------------------------------------------------------------
/cximage702_full/png/png.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "png"=.\png.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/png/png.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/png/pngbar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/png/pngbar.jpg
--------------------------------------------------------------------------------
/cximage702_full/png/pngbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/png/pngbar.png
--------------------------------------------------------------------------------
/cximage702_full/png/pngnow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/png/pngnow.png
--------------------------------------------------------------------------------
/cximage702_full/png/pngtest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/png/pngtest.png
--------------------------------------------------------------------------------
/cximage702_full/raw/dcr.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "dcr"=.\dcr.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name libdcr
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "libdcr"=.\libdcr.dsp - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Global:
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<3>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 |
--------------------------------------------------------------------------------
/cximage702_full/raw/libdcr.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/tiff/Tiff.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "tiff"=.\tiff.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/tiff/tiff.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/cximage702_full/tiff/tiffvers.h:
--------------------------------------------------------------------------------
1 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 3.9.4\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
2 | /*
3 | * This define can be used in code that requires
4 | * compilation-related definitions specific to a
5 | * version or versions of the library. Runtime
6 | * version checking should be done based on the
7 | * string returned by TIFFGetVersion.
8 | */
9 | #define TIFFLIB_VERSION 20100615
10 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/assert.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__ASSERT_H__
23 | #define __wcecompat__ASSERT_H__
24 |
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 |
31 | #ifdef NDEBUG
32 | #define assert(exp) ((void)0)
33 | #else
34 | void _assert(void*, void*, unsigned);
35 | #define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) )
36 | #endif
37 |
38 |
39 | #ifdef __cplusplus
40 | }
41 | #endif
42 |
43 |
44 | #endif // __wcecompat__ASSERT_H__
45 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/conio.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__CONIO_H__
23 | #define __wcecompat__CONIO_H__
24 |
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 |
31 | int __cdecl _kbhit(void);
32 | #define kbhit _kbhit
33 |
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
39 |
40 | #endif // __wcecompat__CONIO_H__
41 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/process.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__PROCESS_H__
23 | #define __wcecompat__PROCESS_H__
24 |
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 |
31 | int __cdecl _getpid(void);
32 | #define getpid _getpid
33 |
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
39 |
40 | #endif // __wcecompat__PROCESS_H__
41 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/signal.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__SIGNAL_H__
23 | #define __wcecompat__SIGNAL_H__
24 |
25 |
26 | #endif // __wcecompat__SIGNAL_H__
27 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/stdlib_extras.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__STDLIB_H__
23 | #define __wcecompat__STDLIB_H__
24 |
25 | #include "stddef.h"
26 | #include "malloc.h"
27 | #include "memory.h"
28 |
29 | #ifdef __cplusplus
30 | extern "C" {
31 | #endif
32 |
33 | extern int _fmode; /* default file translation mode */
34 |
35 | void abort(void);
36 |
37 |
38 | #ifdef __cplusplus
39 | }
40 | #endif
41 |
42 | #endif /* __wcecompat__STDLIB_H__ */
43 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/sys/types.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__SYS__TYPES_H__
23 | #define __wcecompat__SYS__TYPES_H__
24 |
25 |
26 | #ifndef _SIZE_T_DEFINED
27 | typedef unsigned int size_t;
28 | #define _SIZE_T_DEFINED
29 | #endif
30 |
31 |
32 | #endif // __wcecompat__SYS__TYPES_H__
33 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/include/winsock_extras.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__WINSOCK_EXTRAS_H__
23 | #define __wcecompat__WINSOCK_EXTRAS_H__
24 |
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 |
31 | #include
32 |
33 | struct servent* PASCAL getservbyname(const char* name, const char* proto);
34 |
35 |
36 | #ifdef __cplusplus
37 | }
38 | #endif
39 |
40 |
41 | #endif // __wcecompat__WINSOCK_EXTRAS_H__
42 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/makefile:
--------------------------------------------------------------------------------
1 | !INCLUDE
2 |
3 | CFLAGS=/W3 /WX /Ox /O2 /Ob2 /GF /Gy /nologo $(WCETARGETDEFS) -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -Iinclude -D_WINDLL -D_DLL /Foobj/ -D_MSC_VER=1200
4 |
5 | SRC = \
6 | src/args.cpp \
7 | src/assert.cpp \
8 | src/ChildData.cpp \
9 | src/env.cpp \
10 | src/errno.cpp \
11 | src/io.cpp \
12 | src/pipe.cpp \
13 | src/process.cpp \
14 | src/redir.cpp \
15 | src/stat.cpp \
16 | src/stdio_extras.cpp \
17 | src/stdlib_extras.cpp \
18 | src/string_extras.cpp \
19 | src/time.cpp \
20 | src/timeb.cpp \
21 | src/ts_string.cpp \
22 | src/winmain.cpp \
23 | src/winsock_extras.cpp
24 |
25 | !IF "$(WCEVERSION)"=="211"
26 | SRC = \
27 | $(SRC) \
28 | src/wce211_ctype.c \
29 | src/wce211_string.c
30 | !ENDIF
31 |
32 | OBJS = $(SRC:src=obj)
33 | OBJS = $(OBJS:.cpp=.obj)
34 | OBJS = $(OBJS:.c=.obj)
35 |
36 | {src}.c{obj}.obj:
37 | $(CC) $(CFLAGS) -c $<
38 |
39 | {src}.cpp{obj}.obj:
40 | $(CC) $(CFLAGS) -c $<
41 |
42 | all: lib\wcecompat.lib lib\wcecompatex.lib
43 | # echo $(OBJS)
44 |
45 | obj:
46 | @md obj 2> NUL
47 |
48 | lib:
49 | @md lib 2> NUL
50 |
51 | $(OBJS): makefile obj
52 |
53 | lib\wcecompat.lib: lib $(OBJS) makefile
54 | @lib /nologo /out:lib\wcecompat.lib $(OBJS)
55 |
56 | lib\wcecompatex.lib: lib $(OBJS) makefile
57 | @lib /nologo /out:lib\wcecompatex.lib $(OBJS)
58 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/assert.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | #include
27 | #include
28 |
29 |
30 | void abort(void)
31 | {
32 | exit(errno);
33 | }
34 |
35 |
36 | void _assert(void* expression, void* file, unsigned line)
37 | {
38 | fprintf(stderr, "Assertion failed: %s, file %s, line %d\n", (char*)expression, file, line);
39 | abort();
40 | }
41 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/direct.c:
--------------------------------------------------------------------------------
1 | /***************************************************************
2 | direct.c
3 | ***************************************************************/
4 |
5 | #include
6 | #include
7 | #include "direct.h"
8 | #include "wince.h" /* for wce_mbtowc */
9 |
10 | /* global for chdir, getcwd */
11 | char _currentdir[MAX_PATH+1];
12 |
13 |
14 | char *getcwd(char* buffer, int maxlen)
15 | {
16 | strcpy( buffer, _currentdir );
17 | return buffer;
18 | }
19 |
20 | int _chdir(const char * dirname)
21 | {
22 | if( MAX_PATH < strlen(dirname) )
23 | return -1;
24 |
25 | strcpy( _currentdir, dirname );
26 | return 0;
27 | }
28 |
29 | int _rmdir(const char * dir)
30 | {
31 | wchar_t *wdir;
32 | BOOL rc;
33 |
34 | /* replace with RemoveDirectory. */
35 | wdir = wce_mbtowc(dir);
36 | rc = RemoveDirectoryW(wdir);
37 | free(wdir);
38 |
39 | return rc==TRUE ? 0 : -1;
40 | }
41 |
42 | int _mkdir(const char * dir)
43 | {
44 | wchar_t* wdir;
45 | BOOL rc;
46 |
47 | /* replace with CreateDirectory. */
48 | wdir = wce_mbtowc(dir);
49 | rc = CreateDirectoryW(wdir, NULL);
50 | free(wdir);
51 |
52 | return rc==TRUE ? 0 : -1;
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/direct.h:
--------------------------------------------------------------------------------
1 | #ifndef DIRECT_H
2 | #define DIRECT_H 1
3 |
4 |
5 | #ifdef __cplusplus
6 | extern "C" {
7 | #endif
8 |
9 | char *getcwd(char* buffer, int maxlen);
10 | int _chdir(const char * dirname);
11 | int _rmdir(const char * dir);
12 | int _mkdir(const char * dir);
13 |
14 | #ifdef __cplusplus
15 | };
16 | #endif
17 |
18 | #define chdir _chdir
19 | #define rmdir _rmdir
20 | #define mkdir _mkdir
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/errno.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 |
24 |
25 | int errno;
26 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/internal.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__internal_h__
23 | #define __wcecompat__internal_h__
24 |
25 |
26 | // Convert Win32 FILETIME into time_t
27 | time_t w32_filetime_to_time_t(FILETIME* ft);
28 |
29 |
30 | #endif /* __wcecompat__internal_h__ */
31 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/process.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 | #include
24 |
25 |
26 | int __cdecl _getpid(void)
27 | {
28 | return (int)GetCurrentProcessId();
29 | }
30 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/redir.h:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #ifndef __wcecompat__redir_h__
23 | #define __wcecompat__redir_h__
24 |
25 |
26 | #include "pipe.h"
27 |
28 |
29 | extern Pipe* stdoutPipe;
30 | extern Pipe* stderrPipe;
31 | extern Pipe* stdinPipe;
32 |
33 |
34 | // returns true only if pipes have been initialised successfully
35 | bool initStdHandles();
36 |
37 |
38 | #endif /* __wcecompat__redir_h__ */
39 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/stdio_extras.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 | #include
24 |
25 |
26 | void perror(const char *prefix)
27 | {
28 | if (prefix == NULL || *prefix == 0)
29 | fprintf(stderr, "errno=%d\n", errno);
30 | else
31 | fprintf(stderr, "%s: errno=%d\n", prefix, errno);
32 | }
33 |
34 |
35 | int setvbuf(FILE* stream, char* buffer, int mode, size_t size)
36 | {
37 | // TODO: implement buffering
38 | return 0;
39 | }
40 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/stdlib_extras.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 | #include
24 | #include
25 |
26 |
27 | int _fmode; /* default file translation mode */
28 |
29 |
30 | void abort(void)
31 | {
32 | exit(errno);
33 | }
34 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/timeb.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 |
24 |
25 | int ftime(struct timeb* tp)
26 | {
27 | // TODO: implement
28 | return -1;
29 | }
30 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/wce_bsearch.c:
--------------------------------------------------------------------------------
1 |
2 | #include
3 | #include
4 |
5 | void* bsearch(const void *key, const void *base, size_t num, size_t width,
6 | int (*compare)(const void *, const void *))
7 | {
8 | while (num-- > 0)
9 | {
10 | if (compare(key, base) == 0)
11 | return (void*)base;
12 |
13 | base = (char*)base + width;
14 | }
15 | return NULL;
16 | }
17 |
--------------------------------------------------------------------------------
/cximage702_full/wcecompat/src/winsock_extras.cpp:
--------------------------------------------------------------------------------
1 | /* wcecompat: Windows CE C Runtime Library "compatibility" library.
2 | *
3 | * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved.
4 | * http://www.essemer.com.au/
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * This library is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with this library; if not, write to the Free Software
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 | */
20 |
21 |
22 | #include
23 | #include
24 |
25 |
26 | struct servent* PASCAL getservbyname(const char* name, const char* proto)
27 | {
28 | // if (fprintf(stderr, "NOT IMPLEMENTED: getservbyname(name=%s, proto=%s)\n", name, proto) <= 0)
29 | // printf("NOT IMPLEMENTED: getservbyname(name=%s, proto=%s)\n", name, proto);
30 | return NULL;
31 | }
32 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/zlib/ChangeLog
--------------------------------------------------------------------------------
/cximage702_full/zlib/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | -@echo "Please use ./configure first. Thank you."
3 |
4 | distclean:
5 | make -f Makefile.in distclean
6 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/gzclose.c:
--------------------------------------------------------------------------------
1 | /* gzclose.c -- zlib gzclose() function
2 | * Copyright (C) 2004, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | #include "gzguts.h"
7 |
8 | /* gzclose() is in a separate file so that it is linked in only if it is used.
9 | That way the other gzclose functions can be used instead to avoid linking in
10 | unneeded compression or decompression routines. */
11 | int ZEXPORT gzclose(file)
12 | gzFile file;
13 | {
14 | #ifndef NO_GZCOMPRESS
15 | gz_statep state;
16 |
17 | if (file == NULL)
18 | return Z_STREAM_ERROR;
19 | state = (gz_statep)file;
20 |
21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 | #else
23 | return gzclose_r(file);
24 | #endif
25 | }
26 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/inffast.h:
--------------------------------------------------------------------------------
1 | /* inffast.h -- header to use inffast.c
2 | * Copyright (C) 1995-2003, 2010 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /* WARNING: this file should *not* be used by applications. It is
7 | part of the implementation of the compression library and is
8 | subject to change. Applications should only use zlib.h.
9 | */
10 |
11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
12 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/zlib.3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/cximage702_full/zlib/zlib.3.pdf
--------------------------------------------------------------------------------
/cximage702_full/zlib/zlib.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "zlib"=.\zlib.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/zlib.map:
--------------------------------------------------------------------------------
1 | ZLIB_1.2.0 {
2 | global:
3 | compressBound;
4 | deflateBound;
5 | inflateBack;
6 | inflateBackEnd;
7 | inflateBackInit_;
8 | inflateCopy;
9 | local:
10 | deflate_copyright;
11 | inflate_copyright;
12 | inflate_fast;
13 | inflate_table;
14 | zcalloc;
15 | zcfree;
16 | z_errmsg;
17 | gz_error;
18 | gz_intmax;
19 | _*;
20 | };
21 |
22 | ZLIB_1.2.0.2 {
23 | gzclearerr;
24 | gzungetc;
25 | zlibCompileFlags;
26 | } ZLIB_1.2.0;
27 |
28 | ZLIB_1.2.0.8 {
29 | deflatePrime;
30 | } ZLIB_1.2.0.2;
31 |
32 | ZLIB_1.2.2 {
33 | adler32_combine;
34 | crc32_combine;
35 | deflateSetHeader;
36 | inflateGetHeader;
37 | } ZLIB_1.2.0.8;
38 |
39 | ZLIB_1.2.2.3 {
40 | deflateTune;
41 | gzdirect;
42 | } ZLIB_1.2.2;
43 |
44 | ZLIB_1.2.2.4 {
45 | inflatePrime;
46 | } ZLIB_1.2.2.3;
47 |
48 | ZLIB_1.2.3.3 {
49 | adler32_combine64;
50 | crc32_combine64;
51 | gzopen64;
52 | gzseek64;
53 | gztell64;
54 | inflateUndermine;
55 | } ZLIB_1.2.2.4;
56 |
57 | ZLIB_1.2.3.4 {
58 | inflateReset2;
59 | inflateMark;
60 | } ZLIB_1.2.3.3;
61 |
62 | ZLIB_1.2.3.5 {
63 | gzbuffer;
64 | gzoffset;
65 | gzoffset64;
66 | gzclose_r;
67 | gzclose_w;
68 | } ZLIB_1.2.3.4;
69 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/zlib.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@prefix@
2 | exec_prefix=@exec_prefix@
3 | libdir=@libdir@
4 | sharedlibdir=@sharedlibdir@
5 | includedir=@includedir@
6 |
7 | Name: zlib
8 | Description: zlib compression library
9 | Version: @VERSION@
10 |
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 |
--------------------------------------------------------------------------------
/cximage702_full/zlib/zlib.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/data/fire.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengbingchun/CxImage_Test/36624699eded02609485989040c041835190899c/data/fire.gif
--------------------------------------------------------------------------------