Home | History | Annotate | Download | only in zopfli
      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 (at) gmail.com (Lode Vandevenne)
     17 Author: jyrki.alakuijala (at) gmail.com (Jyrki Alakuijala)
     18 */
     19 
     20 #ifndef ZOPFLI_ZLIB_H_
     21 #define ZOPFLI_ZLIB_H_
     22 
     23 /*
     24 Functions to compress according to the Zlib specification.
     25 */
     26 
     27 #include "zopfli.h"
     28 
     29 #ifdef __cplusplus
     30 extern "C" {
     31 #endif
     32 
     33 /*
     34 Compresses according to the zlib specification and append the compressed
     35 result to the output.
     36 
     37 options: global program options
     38 out: pointer to the dynamic output array to which the result is appended. Must
     39   be freed after use.
     40 outsize: pointer to the dynamic output array size.
     41 */
     42 void ZopfliZlibCompress(const ZopfliOptions* options,
     43                         const unsigned char* in, size_t insize,
     44                         unsigned char** out, size_t* outsize);
     45 
     46 #ifdef __cplusplus
     47 }  // extern "C"
     48 #endif
     49 
     50 #endif  /* ZOPFLI_ZLIB_H_ */
     51