License header updated to match correct format.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu <yingke.d.liu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15971 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Compression routine. The compression algorithm is a mixture of LZ77 and Huffman
|
||||
coding. LZ77 transforms the source data into a sequence of Original Characters
|
||||
and Pointers to repeated strings.
|
||||
This sequence is further divided into Blocks and Huffman codings are applied to
|
||||
each Block.
|
||||
|
||||
Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
@ -9,18 +14,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
TianoCompress.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Compression routine. The compression algorithm is a mixture of
|
||||
LZ77 and Huffman coding. LZ77 transforms the source data into a
|
||||
sequence of Original Characters and Pointers to repeated strings.
|
||||
This sequence is further divided into Blocks and Huffman codings
|
||||
are applied to each Block.
|
||||
|
||||
**/
|
||||
|
||||
#include "Compress.h"
|
||||
@ -1613,7 +1606,7 @@ Returns:
|
||||
//
|
||||
// Copy the file contents to the output buffer.
|
||||
//
|
||||
InputFile = fopen (InputFileName, "rb");
|
||||
InputFile = fopen (LongFilePath (InputFileName), "rb");
|
||||
if (InputFile == NULL) {
|
||||
Error (NULL, 0, 0001, "Error opening file: %s", InputFileName);
|
||||
return EFI_ABORTED;
|
||||
@ -1695,7 +1688,7 @@ Returns:
|
||||
//
|
||||
// Copyright declaration
|
||||
//
|
||||
fprintf (stdout, "Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.\n\n");
|
||||
fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
|
||||
|
||||
//
|
||||
// Details Option
|
||||
@ -1889,7 +1882,7 @@ Returns:
|
||||
goto ERROR;
|
||||
}
|
||||
|
||||
InputFile = fopen (InputFileName, "rb");
|
||||
InputFile = fopen (LongFilePath (InputFileName), "rb");
|
||||
if (InputFile == NULL) {
|
||||
Error (NULL, 0, 0001, "Error opening input file", InputFileName);
|
||||
goto ERROR;
|
||||
@ -1920,7 +1913,7 @@ Returns:
|
||||
}
|
||||
|
||||
if (OutputFileName != NULL) {
|
||||
OutputFile = fopen (OutputFileName, "wb");
|
||||
OutputFile = fopen (LongFilePath (OutputFileName), "wb");
|
||||
if (OutputFile == NULL) {
|
||||
Error (NULL, 0, 0001, "Error opening output file for writing", OutputFileName);
|
||||
if (InputFile != NULL) {
|
||||
@ -1930,7 +1923,7 @@ Returns:
|
||||
}
|
||||
} else {
|
||||
OutputFileName = DEFAULT_OUTPUT_FILE;
|
||||
OutputFile = fopen (OutputFileName, "wb");
|
||||
OutputFile = fopen (LongFilePath (OutputFileName), "wb");
|
||||
}
|
||||
|
||||
if (ENCODE) {
|
||||
|
Reference in New Issue
Block a user