What's new in Lagarith Lossless Video Codec 1.3.27

Feb 8, 2012
  • Fixed a crash that could occur when the source video buffer is not aligned to a multiple of 8 for 32 bit systems. The issue still exists for 64-bit systems, but the fix for them isn't nearly as easy and it is a very rare issue so I am leaving it alone for now. Thanks to Peter Dimov for reporting this and providing a way to reproduce the issue
  • Restored a table entry in the Fibonacci coder I accidently deleted; this would cause video corruption or crashes when playing back high-resolution video
  • Fixed some pointers being treated as 32-bit integers when instantiating the codec; this could result in the pointer being trucated and the application crashing on 64 bit systems. Thanks to Stuart MacKinnon for reporting this and tracking down the cause
  • Added exception handling in the range decoder; I am still getting a few reports of issues with Adobe products, and this will help me determine if there is still a buffer overrun in certain cases

New in Lagarith Lossless Video Codec 1.3.26 (Sep 26, 2011)

  • Fixed a buffer overrun in the decoder that caused crashes with Adobe products.
  • Fixed an error that caused certain solid color frames from 1.3.20 and earlier to be corrupted.

New in Lagarith Lossless Video Codec 1.3.25 (May 12, 2011)

  • Fixed some bugs introduced in 1.3.21 that broke backwards compatibility with 1.1.x and below.
  • Codec settings are now stored in the Windows registry rather than in config files, this should reduce issues with settings on Windows Vista and 7.
  • Added lookup tables to eliminate a conditional in the range encoder, speeding up encoding.
  • Replaced a division with an approximate reciprocal multiply and reorganized the run detection code in the range decoder to speed up decoding.
  • Changed the Run Length Encoder to encode with a run trigger of length 3 only, and then encode with a run trigger of 1 only if the result is sufficiently small. This speeds up encoding of typical video.
  • Added MMX version of the Run Length Encoder to speed up encoding on processors that don't have SSE.
  • SSE2 routines originally written for x64 are now included for the x86 build, and are used if they perform faster than the MMX versions on the given processor.
  • Some more tweaks to the SSE2 routines to improve performance.
  • On test videos, I saw roughly a 20% encoding speed increase, and a 30% decoding speed increase over version 1.3.24.

New in Lagarith Lossless Video Codec 1.3.24 (Apr 11, 2011)

  • Fixed a bug in the SSE & MMX median restoration routines for RGB video that caused corrupted video.
  • Fixed a bug where SSE instructions were used in some MMX median restoration routines, this would cause crashes on processors that did not support SSE.
  • Overhauled multithreading to use events rather than volatile flags and wait loops. This should improve performance slightly in multithreaded mode, and provide better stability.
  • Improved the MMX/SSE/SSE2 routines for median restoration, this should speed up decoding slightly.
  • Added SSE2 routines for downsampling colorspaces. This speeds up encoding when changing the colorspace on machines with SSE2.

New in Lagarith Lossless Video Codec 1.3.23 (Mar 8, 2011)

  • Fixed a buffer overrun that caused crashes on certain resolutions when decoding RGB video. Thanks to Nick Hope for reporting this.
  • Improved the performance of the SSE and SSE2 routines for decoding YUY2 slightly.

New in Lagarith Lossless Video Codec 1.3.22 (Feb 28, 2011)

  • Fixed a bug in that caused video corruption when downsampling. Thanks to Karl Pritchett for reporting this bug.
  • Fixed some race conditions with RGBA and YV12 video in multi-threaded mode that caused video corruption. This was also reported by Karl Pritchett.
  • Fixed a bug in the 64 bit build that caused crashes when downsampling RGB24 video.

New in Lagarith Lossless Video Codec 1.3.21 (Feb 28, 2011)

  • Fixed a bug that would cause the codec to crash when downsampling certain resolutions.
  • Several speed improvements:
  • Integrated RLE restoration into range decoder so decoding only takes one pass through the data.
  • Increased range decoder hash table size.
  • Removed RLE level 2, testing indicates that it doesn't offer any real benefit verses levels 1 or 3.
  • RLE compression now encodes all levels in parallel and selects the best one rather than perform an estimation run and then an RLE run.
  • RLE compression now has a faster SSE version for processors that support SSE.
  • Added and improved existing MMX/SSE/SSE2 optimizations for several functions relating to median prediction and image layout.
  • Overall I typically see about a 10-30% speed improvement.
  • Tweaked how RLE level is selected to improve compression by about 1%.
  • Tweaked how the work is distributed in multithreading to reduce wasting CPU time.
  • Added support for encoding YV16 source video, since it was a trivial change and is slightly faster than YUY2 or UYVY.
  • Removed Reduced Resolution mode, I don't think it is useful enough to justify maintaining.

New in Lagarith Lossless Video Codec 1.3.20 (Jul 4, 2009)

  • Fixed a bug that would cause the codec to crash when attempting to upsample YUY2 video with a width that was not a multiple of 4. Thanks to Zack Hartmann for reporting this and providing a sample video.
  • Fixed a bug that prevented the configure dialog from showing up in Sony Vegas. Thanks to Adam S. for reporting this.
  • Added a configure option to prevent Lagarith from upsampling video when decoding. Checking this option and having the mode set to RGB or RGBA will prevent Lagarith from performing any colorspace conversions. Thanks to Andrew Harrison for suggesting this option.

New in Lagarith Lossless Video Codec 1.3.19 (Jul 4, 2009)

  • Fixed a race condition introduced in 1.3.18 that could cause corrupted RGBA video when using multithreading. Thanks to Jason Hamby and Sander Steenhuis for reporting this.
  • Fixed a crash that could occur when decoding odd width RGBA with a height greater than 512. Thanks to Sander Steenhuis for reporting this and providing a sample video for debugging.

New in Lagarith Lossless Video Codec 1.3.18 (Aug 25, 2008)

  • Fixed an issue where decoding YUY2 video with multithreading could cause the chroma to be corrupted. Thanks to Vern Dias for reporting this and providing sample video. Tweaked multithreading compression so that the main thread copies the compressed data to the output buffer as soon as one thread finishes rather than wait for both. Changed the install.bat file to change drive letter too if needed when changing directories, thanks to Jens Diemer for suggesting this.

New in Lagarith Lossless Video Codec 1.3.17 (Jul 18, 2008)

  • There were no changes in this version, just fixing some build issues that resulted from porting both the two Visual Studio 2005 projects to one 2005 project:
  • Fixed an issue where some runtime code was being dynamically linked in, causing the codec to not show up for people who didn't have certain Visual Studio packages installed. Thanks to all the people that reported and helped track down the cause. Fixed an issue where the compiler was using the wrong calling convention when calling some assembly-optimized functions, which caused the codec to crash when working with reduced resolution video. Thanks to Andrew Harrison for reporting this bug.

New in Lagarith Lossless Video Codec 1.3.16 (Jun 23, 2008)

  • Fixed a bug that would occasionally corrupt frames in TMPGEnc (and prossibly other programs as well). Thanks to Aleksey Gankov for reporting this.
  • Ported the 64 bit build to Visual Studio 2005.