Results 1 to 2 of 2

Thread: Adding new codecs to 7z.dll

  1. #1
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Kharkov, Ukraine
    Thanked 1,329 Times in 759 Posts

    Adding new codecs to 7z.dll

    Tried adding new codecs to 7z format via 7z.dll, and it seemed to work easily enough,
    so here it is.

    This is a source example with ppmd_sh added:
    There're build scripts for IntelC and gcc/mingw, although gcc case didn't work out
    completely, for some reason - I had to fix a few things in the sources to even compile it,
    and now it compiles, but basically only the 7z format and ppmd_sh in it actually work.
    I suspect its somehow related to the way new codecs and archive formats are defined there
    (via array initializers).

    Anyway, _ppmdsh\ppmdsh_Codec.cpp contains all the code required to integrate
    basically any codec into 7z.dll. There's the Code() function which implements the codec
    using Read() and Write() and SetCoderProperties() function which accepts the codec parameters
    from commandline parser.

    I also have a version with both ppmd_sh and plzma, and x64 one:

  2. Thanks (7):

    Bulat Ziganshin (12th June 2016),Cyan (12th June 2016),Gonzalo (11th June 2016),RamiroCruzo (11th June 2016),Razor12911 (12th June 2016),Stephan Busch (12th June 2016),xinix (11th June 2016)

  3. #2
    Stephan Busch's Avatar
    Join Date
    May 2008
    Bremen, Germany
    Thanked 175 Times in 85 Posts
    Can you also make that codecs available in the 7-Zip GUI drop-down list?

Similar Threads

  1. New Compression Codecs Risk Making Zlib Obsolete
    By dnd in forum Data Compression
    Replies: 7
    Last Post: 19th January 2016, 20:01
  2. Help Adding Progress Indicator
    By comp1 in forum The Off-Topic Lounge
    Replies: 3
    Last Post: 9th May 2015, 19:10
  3. Compression benchmarking: 64 bit images and 24 bit codecs
    By m^2 in forum The Off-Topic Lounge
    Replies: 6
    Last Post: 30th November 2011, 17:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts