[Ffmpeg-devel] Native zlib decoder
Mon Mar 19 21:00:42 CET 2007
> >>> The PNG decoder, for instance, is easy to handle. The output data
> >>> size is known in advance, and the entire compressed input is
> >>> available at once. I'd like to also cope with arbitrarily long
> >>> inputs and outputs without adversely affecting the simple cases.
> >> As an author of about half of those decoders using ZLib I'd say that
> >> in most cases simple uncompress() would satisfy all the needs. IIRC
> >> only ZMBV codec requires context to decode.
> >> So my proposition is to have ff_zlib_uncompress(dst, &dst_size, src,
> >> src_size) and ZMBV can be workarounded later.
> That seems reasonable for the simple cases. For longer streams we
> could have another function using a context.
Why not extend that function with:
ff_zlib_uncompress(AVZlibCtx *c, dst, &dst_size, src, src_size) ?
More information about the ffmpeg-devel