Results 1 to 2 of 2

Thread: Adding new codecs to 7z.dll

  1. #1
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 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:
    http://nishi.dreamhosters.com/u/7zdll_v2_src.rar
    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:
    http://nishi.dreamhosters.com/u/7zdll_v1.rar
    http://nishi.dreamhosters.com/u/7zdll_v1_x64.rar

  2. The Following 7 Users Say Thank You to Shelwien For This Useful Post:

    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
    Tester
    Stephan Busch's Avatar
    Join Date
    May 2008
    Location
    Bremen, Germany
    Posts
    872
    Thanks
    457
    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, 18: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
  •