summaryrefslogtreecommitdiff
path: root/libavformat/img2enc.c
Commit message (Collapse)AuthorAge
* img2enc: Refactor the atomic renaming codeLuca Barbato2016-04-19
| | | | | | And use it for the separate-plane side-feature as well. Bug-Id: 935
* lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
* lavf: allow custom IO for all filesAnton Khirnov2016-01-24
| | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* img2enc: Make sure the images are atomically writtenLuca Barbato2015-10-23
| | | | | Users that want to generate a live-preview and serve it would otherwise get partial images.
* avformat: Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* Alias PIX image encoder and decoderVittorio Giovara2014-03-26
|
* img2: add j2c file extensionJean First2014-03-16
| | | | Some applications use the j2c extension for jpeg2000 codestream files.
* Add a libwebp encoderJustin Ruggles2013-12-21
|
* img2enc: add an option for overwriting one file with subsequent imagesAnton Khirnov2013-04-11
| | | | Based on a patch by Michael Niedermayer <michaelni@gmx.at>.
* img2: K&R formatting cosmeticsDiego Biurrun2012-11-29
| | | | Also introduce local img_ namespace to simplify debugging.
* avio: flush the internal buffer in avio_close()Stefano Sabatini2012-09-15
| | | | | This is consistent with stdio, and thus what people would naturally expect.
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* image2: Add "start_number" private option to the muxerMashiat Sarker Shakkhar2012-06-24
| | | | | | | | | This adds the capability to start counting file number from an arbitrary integer. This includes a few lines of trivial code from FFmpeg codebase. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: add XBM encoderPaul B Mahol2012-03-17
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* img2: split muxer and demuxer into separate filesPaul B Mahol2012-02-22
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>