• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakefileH A D23-Apr-20211.2 KiB3622

READMEH A D23-Apr-20212.2 KiB4935

driver.cH A D23-Apr-20213.2 KiB170127

smacker.cH A D23-Apr-202133.4 KiB1,4481,047

smacker.hH A D23-Apr-20213.5 KiB11044

smk2avi.cH A D23-Apr-20216.6 KiB327266

smk_bitstream.cH A D23-Apr-20212.3 KiB12664

smk_bitstream.hH A D23-Apr-20211.6 KiB6429

smk_hufftree.cH A D23-Apr-20217.7 KiB367216

smk_hufftree.hH A D23-Apr-20212.8 KiB10560

smk_malloc.hH A D23-Apr-20211.6 KiB6938

README

1libsmacker
2A C library for decoding .smk Smacker Video files
3
4version 1.0
52013-03-09
6
7(c) Greg Kennedy 2013
8http://libsmacker.sourceforge.net
9----
10
11---
12Introduction
13---
14
15libsmacker is a cross-platform C library which can be used for decoding Smacker Video files produced by RAD Game Tools. Smacker Video was the king of video middleware in the 1990s, and its 256-color compressed video format was used in over 2600 software titles.
16
17libsmacker implements the minimum feature set required from smackw32.dll to get an smk off a disk and the frames / audio into a buffer in the correct order. Hence, libsmacker.
18
19---
20License
21---
22libsmacker is released under a Creative Commons Attribution Non-Commercial License V2.0. This means, first, that projects using libsmacker must indicate somewhere that they use libsmacker in the code. Also: the Non-Commercial tag means exactly what it suggests: LIBSMACKER MAY NOT BE USED IN ANY COMMERCIAL PROJECT. PERIOD. Non-commercial DOES NOT mean simply "non-profit": commercial includes for-profit, but may also encompass other non-profit activites as well.
23
24Static- or dynamic-linking against unmodified libsmacker does not automatically re-license your code.  If you alter the library code (.c, .h files), your changes become a Derivative Work and are subject to the conditions outlined in the license.  Unmodified redistributions of binary libsmacker in your own projects must meet the conditions of this license.
25
26A human-readable summary of the license is available online:
27http://creativecommons.org/licenses/by-nc/2.0/
28
29The complete license text is here:
30http://creativecommons.org/licenses/by-nc/2.0/legalcode
31
32---
33Usage
34---
35See the webpage for sample code and function documentation.  The source package additionally includes a pair of driver programs:
36* driver.c - dumps all frames of a file to a bmp/ subdirectory, and all audio as raw streams to out_*.raw files in CWD
37* smk2avi.c - converts smk file(s) to AVI files - uncompressed 24-bit color and PCM audio stream.
38
39Though the libraries are "bulletproofed" the sample apps are not: be cautious if you plan to implement in some critical environment.
40
41---
42Contact
43---
44Questions/comments:
45* by email: kennedy.greg@gmail.com
46* by website: http://libsmacker.sourceforge.net
47
48Enjoy!
49