Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | WIP |
---|---|
Timelines: | family | ancestors | new-driver-wip |
Files: | files | file ages | folders |
SHA1: |
a666f280bde1e2e41fa05668611873b2 |
User & Date: | rkeene 2020-04-22 18:27:00 |
Context
2020-04-22
| ||
18:27 | WIP Leaf check-in: a666f280bd user: rkeene tags: new-driver-wip | |
2013-03-12
| ||
13:36 | Updated to include comment in version script indicating that it is automatically generated Leaf check-in: 3c2ffdbe79 user: rkeene tags: new-driver | |
Changes
Changes to Docs/file_format.txt.
︙ | ︙ | |||
48 49 50 51 52 53 54 | first working URL is used) 9 Cipher (Integer) 10 No-op 11 IDXDATA (Not used) ? 12 SFX length (Not used) ? 13 SHA256 of original file (binary) ------ | | < < < < < < < < < < < < < < < < < | 48 49 50 51 52 53 54 55 | first working URL is used) 9 Cipher (Integer) 10 No-op 11 IDXDATA (Not used) ? 12 SFX length (Not used) ? 13 SHA256 of original file (binary) ------ ALGO values: Specified in "registration/compression" |
Changes to Makefile.in.
︙ | ︙ | |||
50 51 52 53 54 55 56 | done >> libdact.vers echo ' local:' >> libdact.vers echo ' *;' >> libdact.vers echo '};' >> libdact.vers ## Build structures of registered components ### Compression algorithms | | > | > | > > > | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | done >> libdact.vers echo ' local:' >> libdact.vers echo ' *;' >> libdact.vers echo '};' >> libdact.vers ## Build structures of registered components ### Compression algorithms algorithm-defs.h: registration/compression sed 's@#.*@@' registration/compression | grep -v '^ *$$' | awk '{ print "#define DACT_COMP_ALGO_" toupper($$2) "_ID " $$1 }' > algorithm-defs.h builtin-algorithms.c: builtin-algorithms.c.in registration/compression ### Encryption algorithms ciphers.h builtin-ciphers.c: ciphers.h.in builtin-ciphers.c.in registration/encryption false # Generic build rules %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$^" %_shr.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -o "$@" -c "$^" # Dependencies algorithms.h: algorithm-defs.h libdact_combined.o: libdact_combined.c libdact_combined_shr.o: libdact_combined.c libdact.o: libdact.c libdact_shr.o: libdact.c # Cleanup targets clean: rm -f $(LIBOBJS) $(SHLIBOBJS) rm -f libdact.@SHOBJEXT@ libdact.@AREXT@ dact@EXE@ rm -f libdact_combined_shr.o libdact_combined.c distclean: clean rm -f config.h Makefile libdact.syms rm -f config.status config.log mrproper: distclean rm -f libdact.vers rm -f algorithm-defs.h builtin-algorithms.c ./build/autogen.sh distclean # Make directive targets .PHONY: all clean distclean mrproper |
Added algorithm-defs.h.
> > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #define DACT_COMP_ALGO_PLAIN_ID 0 #define DACT_COMP_ALGO_RLE_ID 1 #define DACT_COMP_ALGO_DELTA_ID 2 #define DACT_COMP_ALGO_TEXT_ID 3 #define DACT_COMP_ALGO_ZLIB_ID 4 #define DACT_COMP_ALGO_MZLIB_ID 5 #define DACT_COMP_ALGO_SNIBBLE_ID 6 #define DACT_COMP_ALGO_RANGE_ID 7 #define DACT_COMP_ALGO_MZLIB2_ID 8 #define DACT_COMP_ALGO_BZIP2_ID 9 #define DACT_COMP_ALGO_FACTOR_ID 10 #define DACT_COMP_ALGO_BITSUMS_ID 11 #define DACT_COMP_ALGO_TEXTRLE_ID 12 #define DACT_COMP_ALGO_LZOOX_ID 13 #define DACT_COMP_ALGO_LZOOY_ID 14 #define DACT_COMP_ALGO_LZOTA_ID 15 |
Changes to algorithms.h.
1 | /* | | | < | | < < < | < < < < < < < < < < < < < < < < < < < < < < | < < < < < < < < | | < < < < < < < < < < < < < < | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | < < < < < | < < | | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < > | | < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /* * Copyright (C) 2013 Roy Keene * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * email: dact@rkeene.org */ #ifndef DACT_ALGORITHMS_H #define DACT_ALGORITHMS_H 1 #include "algorithm-defs.h" typedef enum { DACT_MODE_COMPR = 1, DACT_MODE_DECMP = 2 } dact_mode_t; struct dact_compression_algo { char *name; int id; int (*function)(dact_mode_t mode, unsigned char *prev, unsigned char *block, unsigned char *out, int size, int bufsize); }; #endif |
Added builtin-algorithms.c.in.
Added libdact_combined.c.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | int dact_register_hook() { } int dact_load_module() { } int dact_load_all_modules() { } int dact_set_option() { } int dact_parse_config() { } int dact_parse_cmdline() { } int dact_CtxDecompress() { } int dact_CtxCompress() { } int dact_BuffToBuffDecompress() { } int dact_BuffToBuffCompress() { } int dact_Decompress() { } int dact_Compress() { } |
Changes to registration/compression.
|
| > | > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 0 plain Uncompressed 1 rle RLE Compression 2 delta Delta Compression 3 text Text Compression 4 zlib Zlib Compression 5 mzlib Modified Zlib Compression 6 snibble Seminibble Encoding 7 range Range Encoding 8 mzlib2 Second Modified Zlib Compression 9 bzip2 Bzip2 Compression 10 factor Factor Compression 11 bitsums Bitsums Compression 12 textrle Text RLE Compression 13 lzoox LZO-1x Compression 14 lzooy LZO-1y Compression 15 lzota LZO-2a Compression |