log tools/lib64gfx.c @ 2094:4276b8c0fef0

age author description
Tue, 05 Mar 2019 09:56:47 +0200 Matti Hamalainen Revamp how the DMImage palette system and color formats work, as preparation
Tue, 04 Dec 2018 20:30:08 +0200 Matti Hamalainen Add some #ifdef'd out RLE (de)compression debug prints.
Sun, 01 Jul 2018 07:00:38 +0300 Matti Hamalainen Change encode and decode function format parameter type from DMC64ImageFormat to DMC64ImageCommonFormat.
Sun, 01 Jul 2018 06:05:03 +0300 Matti Hamalainen Add d020/d021 bgcolor to dmC64ImageDump() printout.
Fri, 29 Jun 2018 22:16:51 +0300 Matti Hamalainen Return DMERR_NOT_SUPPORTED from dmC64ConvertGenericImage2BMP() as it does
Fri, 29 Jun 2018 17:17:14 +0300 Matti Hamalainen Architectural change: remove some duplicated variables from DMC64Image
Fri, 29 Jun 2018 01:56:20 +0300 Matti Hamalainen Cleanup.
Thu, 28 Jun 2018 18:55:21 +0300 Matti Hamalainen Change DMC64ImageFormat parameter of dmC64GetSubjectSize() and
Thu, 28 Jun 2018 17:26:30 +0300 Matti Hamalainen "Enable" the image->c64 bitmap conversion path in gfxconv. It does not work
Thu, 28 Jun 2018 13:39:18 +0300 Matti Hamalainen Cleanup.
Thu, 28 Jun 2018 01:28:28 +0300 Matti Hamalainen Add some operators case handlers.
Thu, 28 Jun 2018 01:27:39 +0300 Matti Hamalainen Add support for DO_SET_MEM_LO and DO_SET_MEM_HI for blocks in dmC64DecodeGenericBMP().
Thu, 28 Jun 2018 01:25:10 +0300 Matti Hamalainen Add some default-case error handling.
Thu, 28 Jun 2018 01:24:38 +0300 Matti Hamalainen Remove mostly unused DM_GET_ADDR_{LO,HI} macros.
Thu, 28 Jun 2018 01:24:07 +0300 Matti Hamalainen Remove the useless distinction of DO_ENC_FUNC and DO_DEC_FUNC, as the
Wed, 27 Jun 2018 19:09:25 +0300 Matti Hamalainen Cleanups.
Wed, 27 Jun 2018 19:09:07 +0300 Matti Hamalainen Fix a silly bug in the generic c64 bitmap encoder.
Wed, 27 Jun 2018 18:36:26 +0300 Matti Hamalainen Cleanup.
Wed, 27 Jun 2018 18:36:03 +0300 Matti Hamalainen Split dmC64GetOpSize() to dmC64GetSubjectSize() and dmC64GetOpSubjectSize().
Sun, 24 Jun 2018 22:17:28 +0300 Matti Hamalainen Cleanup.
Sun, 24 Jun 2018 03:37:00 +0300 Matti Hamalainen Only check operator size for DO_COPY operators against source size.
Fri, 22 Jun 2018 23:44:22 +0300 Matti Hamalainen Improve error messaging in generic c64 image encode/decode.
Fri, 22 Jun 2018 23:40:20 +0300 Matti Hamalainen Split dmC64GetOpMemBlockAndName() into dmC64GetOpMemBlock() and
Fri, 22 Jun 2018 23:11:58 +0300 Matti Hamalainen Reallocate buffer only if the new size is larger in dmC64MemBlockReAlloc().
Fri, 22 Jun 2018 22:31:52 +0300 Matti Hamalainen Implement data block offset in certain DMC64EncDecOps. This allows us to
Fri, 22 Jun 2018 16:35:08 +0300 Matti Hamalainen Improve RLE compression by checking for "first byte" condition in the compressor.
Fri, 22 Jun 2018 16:33:27 +0300 Matti Hamalainen Change the logic of how DMGrowBuf works in "backwards" growing mode. Adjust
Fri, 22 Jun 2018 13:41:54 +0300 Matti Hamalainen Use dmGrowBufPutU16LE() instead of two dmGrowBufPutU8() to push the loading
Fri, 22 Jun 2018 13:40:11 +0300 Matti Hamalainen Return NULL blk if specified bank is higher than banks in the format in dmC64GetOpMemBlockAndName()
Fri, 22 Jun 2018 12:22:33 +0300 Matti Hamalainen Improve error handling of dmC64MemBlockCopy().
Fri, 22 Jun 2018 12:20:46 +0300 Matti Hamalainen Add indentation parameter to dmC64ImageDump().
Fri, 22 Jun 2018 11:20:15 +0300 Matti Hamalainen Improve dmGenericRLEAnalyze() by being better at selecting rleMarker bytes
Fri, 22 Jun 2018 09:59:40 +0300 Matti Hamalainen Oops, need to deconstify the "count" argument of dmEncodeGenericRLESequence() as we now modify it inside.
Fri, 22 Jun 2018 09:56:32 +0300 Matti Hamalainen Implement DM_RLE_ZERO_COUNT_MAX support in the generic RLE compressor.
Thu, 21 Jun 2018 17:22:32 +0300 Matti Hamalainen Use dmMemset() instead of memset().
Thu, 14 Jun 2018 12:58:44 +0300 Matti Hamalainen s/DM_IFMT_/DM_COLFMT_/g
Thu, 14 Jun 2018 12:41:55 +0300 Matti Hamalainen Comment.
Thu, 14 Jun 2018 04:00:59 +0300 Matti Hamalainen If the c64 image format has a set size and our buffer after encoding in
Wed, 13 Jun 2018 03:01:53 +0300 Matti Hamalainen Fix output buffer cropping in dmFinishRLEBuffers() for DM_OUT_CROP_END case.
Wed, 13 Jun 2018 01:34:46 +0300 Matti Hamalainen Add DM_RLE_ZERO_COUNT_MAX flag for RLE decoder which makes it interpret run
Tue, 12 Jun 2018 20:37:53 +0300 Matti Hamalainen Change c64 format probing API to use DMGrowBuf.
Tue, 12 Jun 2018 17:12:48 +0300 Matti Hamalainen Refactor the c64 bitmap format definitions handling to be more flexible. Again.
Tue, 12 Jun 2018 15:36:00 +0300 Matti Hamalainen Move dmC64ProbeBMP() to more logical place in the source.
Tue, 12 Jun 2018 04:43:05 +0300 Matti Hamalainen Implement fake X raster position for the pixel getting functions. At some
Mon, 11 Jun 2018 14:42:12 +0300 Matti Hamalainen More granular error handling in RLE decoding.
Mon, 11 Jun 2018 13:57:07 +0300 Matti Hamalainen Change DMGrowBuf API somewhat and implement more copy operations.
Sun, 10 Jun 2018 17:56:08 +0300 Matti Hamalainen Fix unitialized data accesses.
Sat, 09 Jun 2018 17:04:33 +0300 Matti Hamalainen Actually fix the warnings .. sigh.
Sat, 09 Jun 2018 17:02:35 +0300 Matti Hamalainen Silence a warning about unused function argument.
Fri, 08 Jun 2018 22:29:49 +0300 Matti Hamalainen Oops, left in wrong variable name. :S
Fri, 08 Jun 2018 22:09:00 +0300 Matti Hamalainen Add dmSetMixedColorC64Palette() for setting a 256 entry "mixed color"
Fri, 08 Jun 2018 22:07:05 +0300 Matti Hamalainen Move dmDefaultC64Palette back to lib64gfx.c
Fri, 08 Jun 2018 22:03:19 +0300 Matti Hamalainen Use the default C64 palette whenever we need it, but make it possible to override it.
Thu, 07 Jun 2018 15:52:58 +0300 Matti Hamalainen Allow image pointer argument to be NULL for dmC64ImageDump().
Thu, 07 Jun 2018 15:21:54 +0300 Matti Hamalainen Improve error messages in the RLE decoder.
Thu, 07 Jun 2018 14:48:26 +0300 Matti Hamalainen Implement operator types DO_SET_MEM_HI and DO_SET_MEM_LO. Not used yet.
Thu, 07 Jun 2018 14:47:37 +0300 Matti Hamalainen Return size of subject in dmC64GetOpSize() despite what the operator type is.
Wed, 06 Jun 2018 15:22:15 +0300 Matti Hamalainen Refactor fmtDecodeTruePaintPacked() to use more generic DMGrowBuf functions
Wed, 06 Jun 2018 15:20:31 +0300 Matti Hamalainen Add one default case error handler.
Wed, 06 Jun 2018 15:19:40 +0300 Matti Hamalainen Add output buffer cropping to dmFinishRLEBuffers() and the flags and fields to DMGrowBuf.
Wed, 06 Jun 2018 14:37:20 +0300 Matti Hamalainen Fix a commit blunder here ..
Wed, 06 Jun 2018 14:36:24 +0300 Matti Hamalainen Use dmFinishRLEBuffers() in dmDecodeGenericRLE()
Wed, 06 Jun 2018 14:34:58 +0300 Matti Hamalainen Improve error handling of dmEncodeGenericRLESequence() and use dmGenericRLEOutputRun() here as well.
Wed, 06 Jun 2018 14:33:30 +0300 Matti Hamalainen Use dmGenericRLEOutputRun().
Wed, 06 Jun 2018 14:31:04 +0300 Matti Hamalainen Add few RLE helper functions.
Wed, 06 Jun 2018 14:26:49 +0300 Matti Hamalainen Use buf->len instead of tmp.len, as it might not be initialized.
Tue, 05 Jun 2018 21:58:10 +0300 Matti Hamalainen More consistently use DMGrowBuf in the lib64gfx APIs, and implement
Tue, 05 Jun 2018 12:55:17 +0300 Matti Hamalainen Refactor DMGrowBuf so that there can be buffers that grow "backwards".
Thu, 31 May 2018 11:40:20 +0300 Matti Hamalainen Cleanup.
Thu, 31 May 2018 00:04:01 +0300 Matti Hamalainen Big overhaul to the enc/dec operator system to be more flexible.
Wed, 30 May 2018 17:05:19 +0300 Matti Hamalainen More work on improving the generic RLE decoder/encoder.
Wed, 30 May 2018 03:25:34 +0300 Matti Hamalainen Refactor RLE encoding a bit, and add support for 16bit run counts and make things more configurable.
Wed, 30 May 2018 01:17:57 +0300 Matti Hamalainen Add sanity check for interlaced formats: check that the interlace type flags are set.
Wed, 30 May 2018 00:57:21 +0300 Matti Hamalainen Add helper functions dmReverse{Get,Put}Byte().
Wed, 30 May 2018 00:56:32 +0300 Matti Hamalainen Reorder some functions.
Fri, 25 May 2018 01:41:31 +0300 Matti Hamalainen Use C64 encdec operator specified size for the element if it is larger than the default size.
Fri, 25 May 2018 00:28:19 +0300 Matti Hamalainen Remove useless assignation.
Mon, 14 May 2018 08:47:19 +0300 Matti Hamalainen Fix some uninitialized variable warnings.
Mon, 14 May 2018 07:27:31 +0300 Matti Hamalainen Fix RLE decoder bounds checks for compressed sequences.
Mon, 14 May 2018 05:53:22 +0300 Matti Hamalainen Add inline helper function fmtGetEncDecOp() and use it.
Mon, 14 May 2018 04:27:53 +0300 Matti Hamalainen Refactor the c64 format memory handling a bit for more flexibility.
Mon, 14 May 2018 04:11:31 +0300 Matti Hamalainen Rename DT_BITMAP to DT_BITMAP_RAM.
Sun, 13 May 2018 20:34:29 +0300 Matti Hamalainen Add NULL check for growbuf pointer.
Sun, 13 May 2018 09:08:18 +0300 Matti Hamalainen Implement another RLE variant, with different ordering of marker, count and data bytes.
Sat, 12 May 2018 21:05:52 +0300 Matti Hamalainen Check C64 bitmap format flags in encode/decode functions.
Sat, 12 May 2018 05:31:40 +0300 Matti Hamalainen Implement dmGenericRLEAnalyze() and use it where appropriate.
Sat, 12 May 2018 04:46:08 +0300 Matti Hamalainen Tiny improvement in MC->FLI upconversion.
Sat, 12 May 2018 03:28:25 +0300 Matti Hamalainen Use the DMGrowBuf push/pop functionality to better implement the stacked
Sat, 12 May 2018 02:24:24 +0300 Matti Hamalainen Set size for DT_{DEC,ENC}_FUNCTION opcodes.
Fri, 11 May 2018 23:17:57 +0300 Matti Hamalainen Another encoding fix ..
Fri, 11 May 2018 23:12:55 +0300 Matti Hamalainen Remove unused variable.
Fri, 11 May 2018 23:11:38 +0300 Matti Hamalainen Fix c64 bitmap encoding / decoding bounds checks.
Fri, 11 May 2018 23:11:16 +0300 Matti Hamalainen Improve error handling of RLE encoder.
Fri, 11 May 2018 22:26:17 +0300 Matti Hamalainen Remove insane troll logic from dmC64GetOpSize().
Fri, 11 May 2018 22:25:12 +0300 Matti Hamalainen Initialize previous data value in RLE encoder.
Fri, 11 May 2018 22:24:53 +0300 Matti Hamalainen Fix an error message, should be "Encode", not "Decode".
Fri, 11 May 2018 22:24:11 +0300 Matti Hamalainen Urgh. 1000L idiotic mistake: a dmGrowBufAlloc() call had been left in
Fri, 11 May 2018 20:28:48 +0300 Matti Hamalainen Oops, left in a debug print.
Fri, 11 May 2018 20:27:16 +0300 Matti Hamalainen Fix handling of predefined DMGrowBuffer in dmC64EncodeGenericBMP().
Fri, 11 May 2018 20:18:14 +0300 Matti Hamalainen Change the passing of RLE compression/decompression parameters to be in a dedicated struct.
Fri, 11 May 2018 07:41:55 +0300 Matti Hamalainen Factor all the c64 file format specific things into lib64fmt.c
Fri, 11 May 2018 07:13:46 +0300 Matti Hamalainen Add static const global for FunPaint 2 magic ID string.
Fri, 11 May 2018 07:12:37 +0300 Matti Hamalainen Fix some blunders in encode/decode error messages.
Fri, 11 May 2018 07:07:40 +0300 Matti Hamalainen Simplify some encoding bits.
Fri, 11 May 2018 07:06:36 +0300 Matti Hamalainen Move encoding stub function to better place.
Fri, 11 May 2018 06:28:55 +0300 Matti Hamalainen Implement rudimentary support for writing RLE compressed DrazPaint 1.4/2.0 and DrazLace 1.0 files.
Fri, 11 May 2018 06:27:53 +0300 Matti Hamalainen Work on the RLE encoding.
Fri, 11 May 2018 06:26:42 +0300 Matti Hamalainen Add short format attribute names to dmC64GetImageTypeString().
Fri, 11 May 2018 05:31:46 +0300 Matti Hamalainen Set DMC64Image::type in dmC64ImageAlloc() from format type.
Fri, 11 May 2018 05:31:16 +0300 Matti Hamalainen Reindent polishing.
Fri, 11 May 2018 05:23:52 +0300 Matti Hamalainen Move one function to a better place in the code.
Fri, 11 May 2018 05:23:07 +0300 Matti Hamalainen Factor the C64 bitmap image format info dump function to lib64gfx and use it from 64vw.
Fri, 11 May 2018 04:55:28 +0300 Matti Hamalainen Various fixes to dmC64EncodeGenericBMP().
Fri, 11 May 2018 04:52:43 +0300 Matti Hamalainen Add DMC64ImageFormat to C64 bitmap format encoding/decoding ops function parameters.
Fri, 11 May 2018 04:23:47 +0300 Matti Hamalainen Oops. Fix dmC64EncodeBMP() to add loading address to total data size.
Fri, 11 May 2018 04:21:15 +0300 Matti Hamalainen Improve dmC64GetImageTypeString() and use it also in 64vw.
Fri, 11 May 2018 03:29:55 +0300 Matti Hamalainen Rename some struct members, and sanitize handling of DMC64Image allocation more.
Fri, 11 May 2018 02:42:49 +0300 Matti Hamalainen More work on RLE encoding/decoding.
Fri, 11 May 2018 02:26:09 +0300 Matti Hamalainen Cleanup the RLE decoder.
Fri, 11 May 2018 02:25:40 +0300 Matti Hamalainen Reorder format list.