log tools/lib64gfx.c @ 2265:48b48251610a

age author description
Mon, 17 Jun 2019 02:03:35 +0300 Matti Hamalainen Refactor how the image "mode/type" is handled. It is still not perfect for
Sat, 15 Jun 2019 06:43:36 +0300 Matti Hamalainen Change again how the interlace type information is stored. Now store it in
Fri, 14 Jun 2019 12:13:23 +0300 Matti Hamalainen Make color interlace type generate a mixed palette instead of using special
Fri, 14 Jun 2019 12:12:19 +0300 Matti Hamalainen Remove useless DMC64ImageFormat parameter from some conversion functions.
Fri, 14 Jun 2019 05:01:12 +0300 Matti Hamalainen Revamp the palette handling in lib64gfx somewhat, add helper functions to
Fri, 14 Jun 2019 03:27:50 +0300 Matti Hamalainen Add dmC64PaletteFromC64Palette(), used by dmC64SetImagePalette().
Fri, 14 Jun 2019 03:24:24 +0300 Matti Hamalainen Add new module "lib64util", and move some functions there from lib64gfx
Fri, 14 Jun 2019 01:58:05 +0300 Matti Hamalainen Add description field to DMC64Palette.
Fri, 14 Jun 2019 00:42:36 +0300 Matti Hamalainen Improvements to the lib64gfx palette handling.
Fri, 14 Jun 2019 00:00:27 +0300 Matti Hamalainen Replace dmC64InitializeFormats() with dmLib64GFXInit() and dmLib64GFXClose().
Thu, 13 Jun 2019 22:07:16 +0300 Matti Hamalainen Add new "flags" field to DMC64EncDecOp, defined by DF_* that can be used to
Thu, 13 Jun 2019 21:21:43 +0300 Matti Hamalainen Clean up useless break statements.
Wed, 12 Jun 2019 18:22:04 +0300 Matti Hamalainen s/D64_FMT_MASK/D64_FMT_MODE_MASK/g
Wed, 12 Jun 2019 17:55:01 +0300 Matti Hamalainen Rename DMC64Image::nbanks to nblocks, which reflects better what it does.
Wed, 12 Jun 2019 16:38:39 +0300 Matti Hamalainen Change default C64 palette system a bit, add two more palettes. These are
Tue, 11 Jun 2019 21:06:35 +0300 Matti Hamalainen Move the PETSCII getpixel function to lib64gfx.c and remove the
Tue, 11 Jun 2019 07:38:44 +0300 Matti Hamalainen Add helper function dmC64GetOpType() and use it to display operator type
Tue, 04 Jun 2019 16:27:09 +0300 Matti Hamalainen Rename DM_COLFMT_* constants to DM_PIXFMT_* and the 'format' field of DMImage
Sun, 02 Jun 2019 23:03:55 +0300 Matti Hamalainen Fix format reporting.
Sat, 01 Jun 2019 03:18:01 +0300 Matti Hamalainen Allow NULL buffer argument(s) for dmSetupRLEBuffers() and dmFinishRLEBuffers().
Tue, 28 May 2019 10:32:12 +0300 Matti Hamalainen Add char map helper functions and use them.
Tue, 28 May 2019 07:25:20 +0300 Matti Hamalainen Free previously allocated palette in the image palette allocation functions if it
Mon, 27 May 2019 11:28:19 +0300 Matti Hamalainen Validate format index values better in dmC64GetImageTypeString().
Mon, 27 May 2019 08:35:35 +0300 Matti Hamalainen Rename various C64_* constants to D64_*.
Mon, 27 May 2019 05:59:57 +0300 Matti Hamalainen Add few out of bounds checks.
Mon, 27 May 2019 00:04:02 +0300 Matti Hamalainen Rename the "shift" variable/function argument used for bitshift of c64 bitmap/char pixels.
Sun, 26 May 2019 18:40:45 +0300 Matti Hamalainen Bump copyright years.
Sun, 26 May 2019 17:51:24 +0300 Matti Hamalainen Change D64_FMT_* MASK constants and how they are used.
Sun, 26 May 2019 05:20:47 +0300 Matti Hamalainen Oops, wrong order of hires/mc/ecm strings in dmC64GetImageTypeString() was
Sun, 26 May 2019 02:45:44 +0300 Matti Hamalainen Implement initial ECM support in charmap decoding.
Sun, 26 May 2019 02:44:34 +0300 Matti Hamalainen Some fixes in charmap to image decoding.
Sun, 26 May 2019 02:43:08 +0300 Matti Hamalainen Return actual error code from enc and dec functions instead of just BOOL.
Sun, 26 May 2019 01:16:57 +0300 Matti Hamalainen Change decFunction() argument order in DMC64EncDecOp.
Fri, 24 May 2019 02:29:27 +0300 Matti Hamalainen Add helper function dmC64MemBlockAllocSubj().
Fri, 24 May 2019 02:27:45 +0300 Matti Hamalainen Change dmC64GetOpMemBlock() function API.
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.