summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
Commit message (Collapse)AuthorAge
* avcodec/packet_internal: make avpriv_packet_list_* functions use an internal ↵James Almer2021-03-17
| | | | | | | | | struct The next pointer is kept at the end for backwards compatability until the major bump, when it should ideally be moved at the front. Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/dshow: Add namespace prefix to the remaining global symbolsJames Almer2021-01-25
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavd/dshow: Add namespace prefix to global functionsMark Thompson2021-01-21
|
* avdevice/dshow: Fixed some minor memory leaksOliver Collyer2019-01-03
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Cosmetics: Reindent after last commit.Carl Eugen Hoyos2018-09-19
|
* lavd/dshow: Interpret negative height as bottom-down frame.Carl Eugen Hoyos2018-09-19
| | | | Fixes ticket #7436.
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* dshow: avoid duplicate NULL check before freerogerdpack2016-06-23
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* dshow: don't add two instances of same device to graphsrogerdpack2016-06-23
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/dshow: Fix frame rateMichael Niedermayer2016-06-07
| | | | | | | | Fixes: Ticket5526 Tested-by: kgp700 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* libavdevice/dshow.c: Correct CoGetMalloc checkFearThe13372016-02-13
| | | | | | | | Current if statement would always be false due to assigning the value of S_OK which equals 0. Signed-off-by: FearThe1337 <git@fearthe1337.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* avdevice/dshow: use AV_OPT_TYPE_BOOLClément Bœsch2015-09-08
|
* Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba'Michael Niedermayer2015-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '059a934806d61f7af9ab3fd9f74994b838ea5eba': lavc: Consistently prefix input buffer defines Conflicts: doc/examples/decoding_encoding.c libavcodec/4xm.c libavcodec/aac_adtstoasc_bsf.c libavcodec/aacdec.c libavcodec/aacenc.c libavcodec/ac3dec.h libavcodec/asvenc.c libavcodec/avcodec.h libavcodec/avpacket.c libavcodec/dvdec.c libavcodec/ffv1enc.c libavcodec/g2meet.c libavcodec/gif.c libavcodec/h264.c libavcodec/h264_mp4toannexb_bsf.c libavcodec/huffyuvdec.c libavcodec/huffyuvenc.c libavcodec/jpeglsenc.c libavcodec/libxvid.c libavcodec/mdec.c libavcodec/motionpixels.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/noise_bsf.c libavcodec/nuv.c libavcodec/nvenc.c libavcodec/options.c libavcodec/parser.c libavcodec/pngenc.c libavcodec/proresenc_kostya.c libavcodec/qsvdec.c libavcodec/svq1enc.c libavcodec/tiffenc.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/utvideoenc.c libavcodec/vc1dec.c libavcodec/wmalosslessdec.c libavformat/adxdec.c libavformat/aiffdec.c libavformat/apc.c libavformat/apetag.c libavformat/avidec.c libavformat/bink.c libavformat/cafdec.c libavformat/flvdec.c libavformat/id3v2.c libavformat/isom.c libavformat/matroskadec.c libavformat/mov.c libavformat/mpc.c libavformat/mpc8.c libavformat/mpegts.c libavformat/mvi.c libavformat/mxfdec.c libavformat/mxg.c libavformat/nutdec.c libavformat/oggdec.c libavformat/oggparsecelt.c libavformat/oggparseflac.c libavformat/oggparseopus.c libavformat/oggparsespeex.c libavformat/omadec.c libavformat/rawdec.c libavformat/riffdec.c libavformat/rl2.c libavformat/rmdec.c libavformat/rtpdec_latm.c libavformat/rtpdec_mpeg4.c libavformat/rtpdec_qdm2.c libavformat/rtpdec_svq3.c libavformat/sierravmd.c libavformat/smacker.c libavformat/smush.c libavformat/spdifenc.c libavformat/takdec.c libavformat/tta.c libavformat/utils.c libavformat/vqf.c libavformat/westwood_vqa.c libavformat/xmv.c libavformat/xwma.c libavformat/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
* dshow: add capture device save and loadMate Sebok2015-04-22
| | | | | | Signed-off-by: Mate Sebok <smfinc.org@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: tweak loggingrogerdpack2015-01-26
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: crossbar dialog was frequently being displayed twice, split up option ↵rogerdpack2015-01-26
| | | | | | so it can be just once Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: add properties dialog for tv tunersrogerdpack2015-01-26
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: some devices only list themselves under "Video sources" butrogerdpack2015-01-23
| | | | | | | actually have both video and audio output pins, so make the audio pins accessible by video source name. Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: add options for allowing filter popup configuration dialogs to be ↵rogerdpack2015-01-23
| | | | | | presented to the user Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: introduce support for crossbar [multiple input selectable] devicesrogerdpack2015-01-23
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: use non deprecated apirogerdpack2015-01-23
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: miscellaneous tweaksrogerdpack2015-01-23
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: allow selecting devices by an alternative name (workaround for ↵rogerdpack2015-01-23
| | | | | | devices with symbols in them), allow specifying capture pins by name and alternative (unique) name Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* avdevice/dshow: Remove unneeded NULL checksMichael Niedermayer2014-12-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/dshow: Use av_freep() to avoid leaving stale pointers in memoryMichael Niedermayer2014-12-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/dshow: fix build, ensure that feature enable #defines are set ↵Michael Niedermayer2014-11-25
| | | | | | | | | | | | before includes dshow_capture.h sets up various flags before including windows headers this must occur before other headers (like os_support.h) include these headers without the setup This could be fixed differently but for now this fixes building on mingw Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/dshow: use av_codec_get_id()James Almer2014-08-07
| | | | | | | ff_codec_get_id() is a lavf internal function Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/raw: add avpriv_get_raw_pix_fmt_tags()James Almer2014-08-07
| | | | | | | Used to expose ff_raw_pix_fmt_tags[] to other libav* libraries Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: show device name when outputting buffer overflow log messagerogerdpack2014-03-28
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: log error and continue if unable to set audio bufferrogerdpack2014-03-25
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: use distinct buffers per stream.rogerdpack2014-03-22
| | | | | | | Basically sometimes if you start dropping video packets, you also drop audio packets. Now they each have separate buffers to avoid this unexpected behavior. Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Make 32bit RGB dshow input opaque.Don Moir2014-03-08
|
* Set codec_tag in dshow device, needed to distinguish between YUV and YVU.Carl Eugen Hoyos2014-03-08
| | | | Fixes ticket #3447.
* lavd: add categories to device implementationsLukasz Marek2014-03-03
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavu,lavfi,lavd: do not hardcode AV_PIX_FMT_NB value when setting pixel ↵Stefano Sabatini2013-12-26
| | | | | | | | | | | | format max value The constant may change in libavutil but the library may be compiled against an older version, thus rejecting a value which is otherwise supported by the new libavutil. INT_MAX is used here to denote the max allowed value for a pixel format. The opt-test code is changed to provide a valid reference example.
* avdevice/dshow: make constant arrays staticMichael Niedermayer2013-08-03
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/dshow: fix style and typo recently introduced.Clément Bœsch2013-03-19
|
* dshow: Fix MSVC support, remove av_export, which was apparently unneeded anyway.rogerdpack2013-02-15
| | | | | | Also cleanup exported symbols Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: allow for more codec ID'srogerdpack2013-01-16
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: better error reportingrogerdpack2013-01-16
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: fix log messagerogerdpack2013-01-16
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* hdyc colrogerdpack2013-01-15
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: use standardized raw pixel format lookuprogerdpack2013-01-15
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: call CoUninitialize() on dshow_read_close()Ramiro Polla2012-12-17
| | | | | | Every call to CoInitialize should have a matching CoUnititalize. Based on patch by Don Moir <donmoir@comcast.net>.
* dshow: handle events in graphRamiro Polla2012-12-17
| | | | | | | | Handling DirectShow events prevents infinite loops when there is an error in the graph, such as a device being disconnected. This makes it possible for dshow to return an error to the caller and run the cleanup code. Based on patch by Don Moir <donmoir@comcast.net>.
* lavd/dshow: rename dshow class namerogerdpack2012-12-15
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* dshow: fix return code when opening deviceRamiro Polla2012-12-08
| | | | | | | | | Successfully opening a device altered the ret variable, making the function not cleanup properly and return an incorrect value for errors that happened afterwards. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opt: allow to set sample and pixel format with av_opt_set_int()Stefano Sabatini2012-12-01
| | | | | | | | | | | This change requires the user to specify min and max value, and makes possible to prevent the user to set AV_{SAMPLE,PIX}_FMT_NONE if forbidden. Add required ifdeffery in case of mixed libraries, when libavutil is updated but not the other libraries. This is a followup of 08d0969c1402ccec4dce44bd430128fb59d7b790.