xref: /netbsd-src/external/zlib/pigz/dist/zopfli/gzip_container.h (revision 3e407a68a64115001ff3f1b658def92a1368b7e6)
1 /*
2 Copyright 2013 Google Inc. All Rights Reserved.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8     http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 
16 Author: lode.vandevenne@gmail.com (Lode Vandevenne)
17 Author: jyrki.alakuijala@gmail.com (Jyrki Alakuijala)
18 */
19 
20 #ifndef ZOPFLI_GZIP_H_
21 #define ZOPFLI_GZIP_H_
22 
23 /*
24 Functions to compress according to the Gzip specification.
25 */
26 
27 #include "zopfli.h"
28 
29 /*
30 Compresses according to the gzip specification and append the compressed
31 result to the output.
32 
33 options: global program options
34 out: pointer to the dynamic output array to which the result is appended. Must
35   be freed after use.
36 outsize: pointer to the dynamic output array size.
37 */
38 void ZopfliGzipCompress(const ZopfliOptions* options,
39                         const unsigned char* in, size_t insize,
40                         unsigned char** out, size_t* outsize);
41 
42 #endif  /* ZOPFLI_GZIP_H_ */
43