62 Commits

Author SHA1 Message Date
Cameron Cawley c233e99658 TOOLS: Restore support for DXA compression type 3 2026-05-18 17:53:54 +02:00
Cameron Cawley 7fa0ecd7d7 TOOLS: Allow selecting the compression type in encode_dxa 2026-05-18 17:53:54 +02:00
Paweł Kołodziejski ebbfd826d5 ALL: Upgrade tools licence to GPLv3+ 2022-06-26 19:14:49 +02:00
Paweł Kołodziejski 25a9d5c1e9 ALL: Fixed several compiler warnings 2022-05-29 08:26:48 +02:00
Thierry Crozat d5c8077933 JANITORIAL: Move copyright notice to a separate file 2014-01-19 18:13:09 +00:00
Thierry Crozat fe2d3c2d71 JANITORIAL: Remove now useless SVN tags 2014-01-06 22:54:34 +00:00
D G Turner 9bf00dee1d TOOLS: Fix some set-not-used variable compiler warnings. 2012-11-27 01:55:18 +00:00
Thierry Crozat 9a505bf162 TOOLS: Add EOL in the Tool print, warning and error function
This is consistent with the Common warning and error functions from
both ScummVM and the tools. Only the functions from the class Tool
didn't add EOL automatically. Unsurprisingly the End Of Line was
then missing in many places were these functions were called.
2011-11-24 22:06:47 +00:00
md5 60cfdba75b TOOLS: Removed unneeded reference to Common::String in encode_dxa
Common::String usage is superfluous here. This also fixes tools build under
MSVC for me
2011-08-25 00:20:34 +03:00
Littleboy 70b85662e3 TOOLS: Handle video frames starting at 1 in EncodeDXA::execute()
binkconv frame numbering starts at 0, whereas ffmpeg starts at 1.
2011-06-28 05:45:48 -04:00
md5 36abd20808 TOOLS: Fixed compilation with MSVC 2011-02-23 21:07:01 +02:00
Max Horn 870b13622b TOOLS: Fix warnings about using deprecated members of struct png_info_struct
svn-id: r48902
2010-05-03 11:14:39 +00:00
Johannes Schickel 3b3e618466 There is no need to assure the pointer passed to delete/delete[]/free is non-NULL.
svn-id: r47536
2010-01-25 00:58:03 +00:00
Jordi Vilalta Prat eae07f9e8a TOOLS: Whitespace cleanup
svn-id: r46751
2009-12-30 15:34:00 +00:00
Max Horn b4225dcf2a Use stdio.h instead of cstdio etc.
svn-id: r46711
2009-12-29 17:30:38 +00:00
Max Horn a003aa6309 TOOLS: Move class File into namespace Common
svn-id: r46452
2009-12-20 23:02:50 +00:00
Sven Hesse 19b30fda76 Adding needed standard includes to make the tools compile again for me
svn-id: r46401
2009-12-17 02:08:22 +00:00
Max Horn f918f6b473 Remove util.h
svn-id: r46400
2009-12-17 00:06:53 +00:00
Max Horn 9c5b48eedb TOOLS: Rename&merge File::read & readN methods to read_throwsOnError & read_noThrow (these should be changed again later, but for now this helps me not getting confused ;)
svn-id: r46373
2009-12-13 23:46:09 +00:00
Max Horn 51ae0edfcb TOOLS: Change signature of File::write to match ScummVM
svn-id: r46370
2009-12-13 22:21:25 +00:00
Max Horn 241bbb07ba TOOLS: Aligh codebase a bit more with the main ScummVM code base
svn-id: r46362
2009-12-13 20:23:42 +00:00
Joost Peters e2a254d74b fix compilation
svn-id: r42852
2009-07-27 21:05:00 +00:00
Hampus Nilsson b35df38e84 *Added short help text to the GUI, displayed next to name of the tool in the CLI, and on the 'select tool' page in the GUI.
svn-id: r42831
2009-07-27 03:01:06 +00:00
Hampus Nilsson dc5453c1c1 *Fixed make under *nix
svn-id: r42678
2009-07-23 12:46:06 +00:00
Hampus Nilsson b2c3d6ce87 *Removed old IO functions and the implicit conversion from File to FILE*
svn-id: r42646
2009-07-22 00:12:48 +00:00
Hampus Nilsson eb9b7a39f2 *Converted ExtractKyra and EncodeDXA, now all tools should be working in the GUI (bugs not accounted for).
svn-id: r42602
2009-07-19 01:03:25 +00:00
Hampus Nilsson 1f8d15d811 *Added support for deducing tool based on input file. Right now it only checks extension, and only does so on some tools, so there is room for improvement.
*Fixed minor bugs / spelling mistakes / code formatting errors.

svn-id: r42520
2009-07-16 00:43:47 +00:00
Hampus Nilsson 5f86189724 *Created a common base class for conversion/extraction tools, this will make the tools much easier to integrate into the GUI.
*Converted extract_agos and extract_gob_stk to use this new Tool class.
*Changed Filename to use std::string rather than char array, to integrate better with the new classes.
*Small fixes to File & Filename classes
*Small backstep on the GUI as it only supports two tools now (the converted one's), however the new tool format has many gains, the actual tool is not run yet as arguments are not passed between the UI and the tool itself.

[Due to the change of char to std::string, many files were modified, the interesting files are in addition to the new files extract_gob_stk.cpp, extract_agos.cpp, gui/pages.cpp, compress.cpp, compress.h, util.cpp and util.h]

svn-id: r42082
2009-07-04 01:07:12 +00:00
Joost Peters 5f58e888a1 fix for building of standalone versions without EXPORT_MAIN defined
svn-id: r42037
2009-07-02 20:58:57 +00:00
Joost Peters c36c8ea5e5 - allow the same tool objects to be used by standalone and GUI tool linking (by defining a weak main symbol)
- add tool .o's to tools_gui target in Makefile
- fix name collision between extract_mm_nes and extract_loom_tg16

svn-id: r42032
2009-07-02 19:01:41 +00:00
Hampus Nilsson eb3ca155eb *Code formatting fix (space after keywords)
svn-id: r42017
2009-07-02 01:41:45 +00:00
Hampus Nilsson b07027979e *All tools now can be compiled as the part of the GUI (kinda like static linking), by compiling with EXPORT_MAIN, the main function will be renamed to tool_name_main.
*Resolved alot of name clashes due to having all the tools in the same program.
*Added tool_entry_points.h, which contains all the tool entry points.

(Could not commit yesterday, SF was down)

svn-id: r42015
2009-07-01 23:46:13 +00:00
Max Horn 36e50828bd Turned lots of printf+exit pairs into calls to error(); turned 'Can't' into 'Cannot' in messages, for consistency
svn-id: r41558
2009-06-15 21:12:51 +00:00
Max Horn 4698fbd786 Don't pass a Filename object to printf
svn-id: r41548
2009-06-15 14:47:39 +00:00
Hampus Nilsson cf7db9208e *All tools converted to the new format now! They should all compile now.
*Fixed bug where specifying extra audio parameters wouldn't work with -o switch before input file/dir
*Added dependencies to extract_agos msvc9 project
*Added compress_tucker msvc project.

svn-id: r41505
2009-06-14 00:30:59 +00:00
Hampus Nilsson 05166f4682 *Converted encode_dxa to new format.
Only compress_tucker, compress_sword1 and compress_sword2 are not yet converted (THEY WILL NOT COMPILE).

svn-id: r41466
2009-06-12 09:04:35 +00:00
Max Horn 68c2149b6d compresion -> compression
svn-id: r32595
2008-06-07 17:35:09 +00:00
Max Horn 2d72a04e5c Some corrections compared to trunk
svn-id: r29880
2007-12-16 17:28:52 +00:00
Sean Murray 4206be178d Merging update from trunk (rev. 29669)
svn-id: r29695
2007-12-02 10:16:19 +00:00
Sean Murray 2fd489065d Fixed a bug when splitting the filename specified on the command line into a filename and path. Also moved this code into util.c as it is used by almost all of the compression/extraction tools..
svn-id: r28573
2007-08-13 02:47:30 +00:00
Sean Murray c457651f15 Compression tools no longer assume that input files are in the current directory. Full paths can now be specified to the input file and the output file will be written to the same directory, or to the directory specified in the command line arguments depending on the tool.
svn-id: r28085
2007-07-15 03:29:33 +00:00
Sean Murray 53f2bd07c4 Update help message to reflect addition of libvorbis and libflac to compress.c.
svn-id: r27908
2007-07-04 23:03:34 +00:00
Torbjörn Andersson 8a45da2104 Apparently, there's a version of The Feeble Files that uses a more recent
version of Smacker, so we need to test for both SMK2 and SMK4 when identifying
the file. I cannot test this myself, though.

svn-id: r27615
2007-06-22 19:52:36 +00:00
Travis Howell c852272d86 Add cyx's patch for endian issues in DXA encoder
svn-id: r24845
2006-12-11 22:52:34 +00:00
Travis Howell 0c69a580ba Add patch #1611503 - DXA: Improved encoder (filesize and speed)
svn-id: r24837
2006-12-11 06:53:14 +00:00
Travis Howell 3c70565cc3 Add support for conversion of Bink video files. Use full filename of video file, since file extension is different in several HE games
svn-id: r24587
2006-11-02 10:54:48 +00:00
Travis Howell a43ed30eed Add patch #1504492 - DXA: New compression scheme
svn-id: r23334
2006-06-28 14:11:07 +00:00
Travis Howell 370963c548 Fix bug #1504440 encode_dxa: Suspect behaviour
svn-id: r23056
2006-06-12 07:08:58 +00:00
Torbjörn Andersson 0505f68d26 Removed the USE_ZMBV code, to avoid confusion. It was added as an experiment,
but the compression rate was reportedly not an improvement over standard DXA.

svn-id: r23038
2006-06-11 21:53:38 +00:00
Travis Howell 895500c5fa Fix typo
svn-id: r22861
2006-06-03 10:57:22 +00:00