#include "put_bits.h"
#include "lcl.h"
-#if CONFIG_ZLIB
#include <zlib.h>
-#endif
/*
* Decoder context
unsigned int max_comp_size;
// Compression buffer
unsigned char* comp_buf;
-#if CONFIG_ZLIB
z_stream zstream;
-#endif
} LclEncContext;
/*
int i;
int zret; // Zlib return code
-#if !CONFIG_ZLIB
- av_log(avctx, AV_LOG_ERROR, "Zlib support not compiled in.\n");
- return -1;
-#else
-
init_put_bits(&c->pb, buf, buf_size);
*p = *pict;
flush_put_bits(&c->pb);
return c->zstream.total_out;
-#endif
}
/*
LclEncContext *c = avctx->priv_data;
int zret; // Zlib return code
-#if !CONFIG_ZLIB
- av_log(avctx, AV_LOG_ERROR, "Zlib support not compiled.\n");
- return 1;
-#else
-
c->avctx= avctx;
assert(avctx->width && avctx->height);
}
return 0;
-#endif
}
/*
av_freep(&avctx->extradata);
av_freep(&c->comp_buf);
-#if CONFIG_ZLIB
deflateEnd(&(c->zstream));
-#endif
return 0;
}