summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
Commit message (Collapse)AuthorAge
* Mark read-only tables as staticDiego Biurrun2016-05-05
|
* 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.
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vfwcap: Unbreak building after c201069faMartin Storsjö2015-04-11
| | | | | | These headers can't be included in any arbitrary order. Signed-off-by: Martin Storsjö <martin@martin.st>
* avdevice: Add missing header for NULL_IF_CONFIG_SMALLDiego Biurrun2015-04-09
| | | | Also reshuffle headers into canonical order where appropriate.
* vfwcap: Add fallback define for HWND_MESSAGEDiego Biurrun2014-08-25
| | | | Some obsolete versions of the MinGW32 runtime (<4.0.0) lack the definition.
* vfwcap: Drop fallback VfW definesDiego Biurrun2014-08-19
| | | | The defines were added long ago when MinGW still lacked them.
* vfwcap: Replace deprecated av_destruct_packet() by av_free_packet()Diego Biurrun2014-08-15
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-27
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-19
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.Diego Biurrun2011-09-24
|
* lavf,lavd: remove all usage of AVFormatParameters from demuxers.Anton Khirnov2011-08-15
| | | | | | AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
* vfwcap: prefer "framerate_q" over "fps" in vfw_read_header()Stefano Sabatini2011-06-23
| | | | | | | The variable is used for containing the parsed value of framerate, using a lexically consistent name eases readability/understanding. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf,lavc: free avoptions in a generic way.Anton Khirnov2011-06-05
| | | | | | It's simpler and less error-prone. Fixes some memleaks along the way.
* Replace custom DEBUG preprocessor trickery by the standard one.Diego Biurrun2011-06-03
|
* vfwcap: add a framerate private option.Anton Khirnov2011-06-02
|
* vfwcap: add video_size private option.Anton Khirnov2011-05-27
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.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.
* vfwcap: add option to print list of supported driversRamiro Polla2010-10-23
| | | | Originally committed as revision 25552 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: flip RGB rawvideo.Ramiro Polla2010-04-29
| | | | Originally committed as revision 22989 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 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
* vfwcap: Free remaining packets on vfw_read_close().Ramiro Polla2010-03-17
| | | | Originally committed as revision 22575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not store a copy of AVFormatContext *s in vfw_ctx.Ramiro Polla2010-03-17
| | | | | | Save *s directly in SetWindowLongPtr instead. Originally committed as revision 22574 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and markStefano Sabatini2010-03-13
| | | | | | AVERROR_EIO for deletion at the next major bump. Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Add support for UYVY pixel format.Ramiro Polla2010-03-10
| | | | Originally committed as revision 22424 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: support MJPG compressed streams.Nash Tsai2010-02-23
| | | | | | Patch by Nash Tsai <nash dot tsai at gmail dot com> Originally committed as revision 22004 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Include windows.h before vfw.h since the latter requires defineskemuri2010-01-23
| | | | | | | from the former. Patch by kemuri <kemuri9 at gmail dot com> Originally committed as revision 21411 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Indent.Ramiro Polla2009-09-04
| | | | Originally committed as revision 19757 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use if(0){} instead of #if 0 to prevent debug code to rot.Ramiro Polla2009-09-04
| | | | Originally committed as revision 19756 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Move vfw_read_close to avoid forward declaration.Diego Biurrun2009-08-02
| | | | | | Patch by Diego. Originally committed as revision 19567 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Indent.Ramiro Polla2009-07-30
| | | | Originally committed as revision 19545 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Support compressed streams.Ramiro Polla2009-07-30
| | | | Originally committed as revision 19544 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Reorder some code to simplify next patch.Ramiro Polla2009-07-30
| | | | Originally committed as revision 19543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Return PIX_FMT_NONE instead of -1 on error.Ramiro Polla2009-07-30
| | | | Originally committed as revision 19542 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Update error message:Ramiro Polla2009-07-30
| | | | | | | - Verbose debug information is at max -v 9 now; - Add an empty space for readability. Originally committed as revision 19541 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mingw: update w32api to 3.13Ramiro Polla2008-12-07
| | | | Originally committed as revision 16029 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uses FF_ARRAY_ELEMS() where appropriateAurelien Jacobs2008-10-21
| | | | Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* sync to latest mingw api, remove unneeded struct definitionsBaptiste Coudurier2008-09-26
| | | | Originally committed as revision 15423 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set bits_per_coded_sample according to new lavc apiBaptiste Coudurier2008-09-09
| | | | Originally committed as revision 15289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-03
| | | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste.it along with some spelling/consistency fixes for the long names by me Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typoRamiro Polla2008-04-14
| | | | Originally committed as revision 12823 to svn://svn.ffmpeg.org/ffmpeg/trunk