summaryrefslogtreecommitdiff
path: root/libavformat/gxfenc.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* 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: Don't explicitly flush after each written packet in muxersClément Bœsch2013-09-16
| | | | | | | | Since 596e5d4783, this is not necessary anymore. It also allows to actually disable the flushing, improving write performance (but possibly giving worse latency in real-time streaming). Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Use av_reallocp_array() where suitableAlexandra Khirnova2013-09-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.hJustin Ruggles2012-11-28
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* gxfenc: remove disabled half-implemented MJPEG tagDiego Biurrun2012-05-14
|
* lavf: make av_interleave_packet_per_dts() private.Anton Khirnov2012-03-20
| | | | | There is no reason for it to be public, it's only meant to be used internally.
* lavf: remove disabled FF_API_TIMESTAMP cruftAnton Khirnov2012-01-27
|
* lavu: replace int/float punning functionsMans Rullgard2011-12-11
| | | | | | | | | | | | | | | | | | The existing functions defined in intfloat_readwrite.[ch] are both slow and incorrect (infinities are not handled). This introduces a new header with fast, inline conversion functions using direct union punning assuming an IEEE-754 system, an assumption already made throughout the code. The one use of Intel/Motorola extended 80-bit format is replaced by simpler code sufficient under the present constraints (positive normal values). The old functions are marked deprecated and retained for compatibility. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* gxfenc: place variable declarations before statementsDiego Biurrun2011-07-17
| | | | libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* lavf: factor out conversion of ISO8601 string to unix timeAnton Khirnov2011-07-13
|
* lavf: deprecate AVFormatContext.timestampAnton Khirnov2011-07-12
| | | | It's replaced by 'creation_time' metadata tag.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Do not include intfloat_readwrite.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-03
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: rename put_flush_packet -> avio_flushAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace remaining uses of put_tag with avio_writeAnton Khirnov2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | In the name of consistency: put_byte -> avio_w8 put_<type> -> avio_w<type> put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* In gxf muxer, round up number of lines mod 16 in mpeg umf data, based patch ↵Baptiste Coudurier2010-10-07
| | | | | | by Reuben Martin, reuben dot m at gmail dot com Originally committed as revision 25401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In gxf muxer, fix number of flt entries based on patch by Reuben Martin, ↵Baptiste Coudurier2010-10-07
| | | | | | reuben dot m at gmail dot com Originally committed as revision 25399 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In gxf muxer, write umf media for mpeg1video, patch by Reuben Martin, reuben ↵Reuben Martin2010-10-07
| | | | | | dot m at gmail dot com Originally committed as revision 25396 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In gxf muxer, fix flt entry offset, patch by Reuben Martin, reuben dot m at ↵Reuben Martin2010-10-07
| | | | | | gmail dot com Originally committed as revision 25395 to svn://svn.ffmpeg.org/ffmpeg/trunk
* gxf muxer only accepts pal or ntsc resolutions currently, so fail if ↵Baptiste Coudurier2010-09-01
| | | | | | resolution is something else Originally committed as revision 25014 to svn://svn.ffmpeg.org/ffmpeg/trunk
* gxfenc: Fix ES name in the UMF media description, by using strlen instead of ↵Thierry Foucu2010-07-21
| | | | | | | | sizeof Patch by Thierry Foucu, tfoucu at gmail Originally committed as revision 24379 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0.Carl Eugen Hoyos2009-10-16
| | | | Originally committed as revision 20250 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefixes to exported symbols in libavformat/riff.h.Daniel Verkamp2009-06-22
| | | | | | patch by Daniel Verkamp, aniel drv nu Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless includeBaptiste Coudurier2009-05-23
| | | | Originally committed as revision 18906 to svn://svn.ffmpeg.org/ffmpeg/trunk
* reindentBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* change path pattern to be similar to existing files, and remove useless bufferBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17896 to svn://svn.ffmpeg.org/ffmpeg/trunk
* merge struct declaration and definitionBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17895 to svn://svn.ffmpeg.org/ffmpeg/trunk
* write map packet every 100 packets according to specsBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17894 to svn://svn.ffmpeg.org/ffmpeg/trunk
* write flt packet, might need some tweaking but it worksBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17893 to svn://svn.ffmpeg.org/ffmpeg/trunk
* correctly interleave audio and video according to specsBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17892 to svn://svn.ffmpeg.org/ffmpeg/trunk
* write timecode track in gxfBaptiste Coudurier2009-03-09
| | | | Originally committed as revision 17890 to svn://svn.ffmpeg.org/ffmpeg/trunk
* compute media info in write_headerBaptiste Coudurier2009-03-08
| | | | Originally committed as revision 17889 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize write packetBaptiste Coudurier2009-03-08
| | | | Originally committed as revision 17888 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unneeded and empty user dataBaptiste Coudurier2009-03-08
| | | | Originally committed as revision 17886 to svn://svn.ffmpeg.org/ffmpeg/trunk