diff options
author | Lode Vandevenne <lode@google.com> | 2013-02-14 14:41:44 +0100 |
---|---|---|
committer | Lode Vandevenne <lode@google.com> | 2013-02-14 14:41:44 +0100 |
commit | d5eb5f507386e9933f2d8248d311ceca41fe1df1 (patch) | |
tree | 45318cf0d9c787d09bdea01de97eea05fbf0296f /gzip_container.h | |
parent | 04526f14125602622173ccfce017ad503c21bff5 (diff) | |
download | zopfli-d5eb5f507386e9933f2d8248d311ceca41fe1df1.tar.gz |
Zlib and Gzip support
Diffstat (limited to 'gzip_container.h')
-rw-r--r-- | gzip_container.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gzip_container.h b/gzip_container.h new file mode 100644 index 0000000..c03e9cd --- /dev/null +++ b/gzip_container.h @@ -0,0 +1,42 @@ +/* +Copyright 2013 Google Inc. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Author: lode.vandevenne@gmail.com (Lode Vandevenne) +Author: jyrki.alakuijala@gmail.com (Jyrki Alakuijala) +*/ + +#ifndef ZOPFLI_GZIP_H_ +#define ZOPFLI_GZIP_H_ + +/* +Functions to compress according to the Gzip specification. +*/ + +#include "util.h" + +/* +Compresses according to the gzip specification and append the compressed +result to the output. + +options: global program options +out: pointer to the dynamic output array to which the result is appended. Must + be freed after use. +outsize: pointer to the dynamic output array size. +*/ +void GzipCompress(const Options* options, + const unsigned char* in, size_t insize, + unsigned char** out, size_t* outsize); + +#endif /* ZOPFLI_GZIP_H_ */ |