Name
LzmaCompress.exe – encode or decode a file by LZMA compress/decompress algorithm
Synopsis
LzmaCompress -e|-d [options] <inputFile>
Description
LzmaCompress tool is used to encode or decode files with LZMA encode or decode algorithm. When “-e” option specified in command line, then the tool will encode the input file with LZMA encode algorithm; when “-d” option specified in command line, then the tool will decode the input file with LZMA decode algorithm.  When decoding file, this tool performs some rudimentary checking on the input files to verify they are indeed compressed by LZMA algorithm. These checks include: 
    Check the input file header (5 + 8 bytes header); 
    The first 5 bytes is the attribute of compression.  
    The following 8 bytes is original size which is the input file size and it is the decompressed file size. 
While encoding file, this tool does not perform any checking.
Options
-e   Encode the input file, which means to compress the input file
-d   Decode the input file, which means to decompress the input file
-o, --output Filename
      The file containing encoded or decoded content of input file
--version
	Print version and copyright of this program and exit
-v, --verbose
      Turn on verbose output with informational messages printed. This is a count value, so specifying –v can be used to increase the verbosity level.
-q, --quiet
	Disable all messages except FATAL ERRORS
--debug [0-9]
	Enable debug messages. Only 0-9 Level is supported.
-h, --help
	Print copyright, version and usage of this program and exit
Example
1. Encode the input file “file.efi” and specify the output file name with “file.lzma”
LzmaCompress –e –o file.lzma file.efi
2. Decode the input file “file.lzma” and specify the output file name with “file.orig”
LzmaCompress –d –o file.orig file.lzma
3. Decode the input file "file.lzma" in the quiet mode and specify the output file name with "file.orig"
LzmaCompress –d -q –o file.orig file.lzma
Bugs
No known bugs.
Report bugs to issues@buildtools.tianocore.org
Files
None
See also
LZMA algorithm is in http://www.7-zip.org
License
Based on LZMA Utility 4.65 : Igor Pavlov : Public domain : 2009-02-03

Copyright (c) 2006 - 2009, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution.  The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.