-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the LZF filter included in h5py 3.12.1. Require h5py>=2.5.0 so that h5py provides H5PLget_plugin_type() and H5PLget_plugin_info(). Updating the requirements should not be an issue as h5py 2.4.0 was released in January 2015 while h5py 2.5.0 was released in April 2015.
- Loading branch information
1 parent
4b3dc9f
commit dcf868b
Showing
12 changed files
with
105 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* | ||
* Copyright (c) 2000-2008 Marc Alexander Lehmann <[email protected]> | ||
* | ||
* | ||
* Redistribution and use in source and binary forms, with or without modifica- | ||
* tion, are permitted provided that the following conditions are met: | ||
* | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- | ||
* CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
|
@@ -73,7 +73,7 @@ | |
* and lzf_c.c. | ||
* | ||
*/ | ||
unsigned int | ||
unsigned int | ||
lzf_compress (const void *const in_data, unsigned int in_len, | ||
void *out_data, unsigned int out_len); | ||
|
||
|
@@ -92,9 +92,8 @@ lzf_compress (const void *const in_data, unsigned int in_len, | |
* | ||
* This function is very fast, about as fast as a copying loop. | ||
*/ | ||
unsigned int | ||
unsigned int | ||
lzf_decompress (const void *const in_data, unsigned int in_len, | ||
void *out_data, unsigned int out_len); | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* | ||
* Copyright (c) 2000-2007 Marc Alexander Lehmann <[email protected]> | ||
* | ||
* | ||
* Redistribution and use in source and binary forms, with or without modifica- | ||
* tion, are permitted provided that the following conditions are met: | ||
* | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- | ||
* CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
|
@@ -99,15 +99,15 @@ | |
|
||
/* | ||
* Avoid assigning values to errno variable? for some embedding purposes | ||
* (linux kernel for example), this is neccessary. NOTE: this breaks | ||
* (linux kernel for example), this is necessary. NOTE: this breaks | ||
* the documentation in lzf.h. | ||
*/ | ||
#ifndef AVOID_ERRNO | ||
# define AVOID_ERRNO 0 | ||
#endif | ||
|
||
/* | ||
* Wether to pass the LZF_STATE variable as argument, or allocate it | ||
* Whether to pass the LZF_STATE variable as argument, or allocate it | ||
* on the stack. For small-stack environments, define this to 1. | ||
* NOTE: this breaks the prototype in lzf.h. | ||
*/ | ||
|
@@ -116,11 +116,11 @@ | |
#endif | ||
|
||
/* | ||
* Wether to add extra checks for input validity in lzf_decompress | ||
* Whether to add extra checks for input validity in lzf_decompress | ||
* and return EINVAL if the input stream has been corrupted. This | ||
* only shields against overflowing the input buffer and will not | ||
* detect most corrupted streams. | ||
* This check is not normally noticable on modern hardware | ||
* This check is not normally noticeable on modern hardware | ||
* (<1% slowdown), but might slow down older cpus considerably. | ||
*/ | ||
|
||
|
@@ -163,4 +163,3 @@ typedef const u8 *LZF_STATE[1 << (HLOG)]; | |
#endif | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* | ||
* Copyright (c) 2000-2008 Marc Alexander Lehmann <[email protected]> | ||
* | ||
* | ||
* Redistribution and use in source and binary forms, with or without modifica- | ||
* tion, are permitted provided that the following conditions are met: | ||
* | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- | ||
* CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
|
@@ -293,4 +293,3 @@ lzf_compress (const void *const in_data, unsigned int in_len, | |
|
||
return op - (u8 *)out_data; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* | ||
* Copyright (c) 2000-2007 Marc Alexander Lehmann <[email protected]> | ||
* | ||
* | ||
* Redistribution and use in source and binary forms, with or without modifica- | ||
* tion, are permitted provided that the following conditions are met: | ||
* | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- | ||
* CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
|
@@ -56,7 +56,7 @@ | |
#endif | ||
*/ | ||
|
||
unsigned int | ||
unsigned int | ||
lzf_decompress (const void *const in_data, unsigned int in_len, | ||
void *out_data, unsigned int out_len) | ||
{ | ||
|
@@ -151,4 +151,3 @@ lzf_decompress (const void *const in_data, unsigned int in_len, | |
|
||
return op - (u8 *)out_data; | ||
} | ||
|
Oops, something went wrong.