Results 1 to 1 of 1

Thread: jojpeg

  1. #1
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts

    jojpeg

    This is a standalone port of Jan Ondrus' jpeg model from paq8px.
    http://nishi.dreamhosters.com/u/jojpeg_sh2.rar

    - about 2x faster and compresses a little better than paq8px (likely due to paq main model producing bad predictions for huffman data).
    - proper encapsulation (possible to use multiple instances at once, eg. for MT)
    - no dynamic memory allocation

    This version includes mpais' patch for subsampling and some changes for gcc compatibility ("using" directives etc).
    Still needs -fpermissive to compile.
    As usual, gcc can't parse templates and skips explicit alignment attributes with #pragma pack(1) set.
    Also, had to disable train() inlining - worked incorrectly otherwise.
    Works with up to gcc 6.3 like this, doesn't work with gcc7+ (crash).
    Code:
    842,468 A10.jpg
    637,228 A10.jpg.jojpeg1
    637,228 A10.jpg.jojpeg2
    637,664 A10.jpg.paq8px75
    637,664 A10.jpg.paq8px76
    
    296,553 A10_4x2.jpg
    240,443 A10_4x2.jpg.jojpeg1
    229,610 A10_4x2.jpg.jojpeg2
    240,607 A10_4x2.jpg.paq8px75
    229,679 A10_4x2.jpg.paq8px76

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

    Bulat Ziganshin (11th July 2017),comp1 (10th July 2017),Gonzalo (13th July 2017),Mike (10th July 2017),spark (20th July 2017),xinix (10th July 2017)

Posting Permissions

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