summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
Commit message (Collapse)AuthorAge
* 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.
* lavu/opt: change the way default pixel and sample format value is setStefano Sabatini2012-11-30
| | | | | | | | | | | | | | | | | Use the i64 field rather than the string value. Using a string to set a default sample/pixel format is weird, also the new interface is more consistent with the rest of the API. This is technically an API break, but hopefully there are no applications using this feature outside of FFmpeg. In order to save backward compatibility with mixed libraries in case libavutil is updated but not the other libraries, some ifdeffery hacks are added. Note that the version check is only performed when class->version != 0, since if it is not defined then we assume that no version was defined and the class is not affected by the change. We will luckily get rid of the hack at the next major bump.
* Merge commit '716d413c13981da15323c7a3821860536eefdbbb'Michael Niedermayer2012-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '716d413c13981da15323c7a3821860536eefdbbb': Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat Conflicts: doc/examples/muxing.c ffmpeg.h ffmpeg_filter.c ffmpeg_opt.c ffplay.c ffprobe.c libavcodec/8bps.c libavcodec/aasc.c libavcodec/aura.c libavcodec/avcodec.h libavcodec/avs.c libavcodec/bfi.c libavcodec/bmp.c libavcodec/bmpenc.c libavcodec/c93.c libavcodec/cscd.c libavcodec/cyuv.c libavcodec/dpx.c libavcodec/dpxenc.c libavcodec/eatgv.c libavcodec/escape124.c libavcodec/ffv1.c libavcodec/flashsv.c libavcodec/fraps.c libavcodec/h264.c libavcodec/huffyuv.c libavcodec/iff.c libavcodec/imgconvert.c libavcodec/indeo3.c libavcodec/kmvc.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/ljpegenc.c libavcodec/mjpegdec.c libavcodec/mjpegenc.c libavcodec/motionpixels.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo_enc.c libavcodec/pamenc.c libavcodec/pcxenc.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/pnm.c libavcodec/pnmdec.c libavcodec/pnmenc.c libavcodec/ptx.c libavcodec/qdrw.c libavcodec/qpeg.c libavcodec/qtrleenc.c libavcodec/raw.c libavcodec/rawdec.c libavcodec/rl2.c libavcodec/sgidec.c libavcodec/sgienc.c libavcodec/snowdec.c libavcodec/snowenc.c libavcodec/sunrast.c libavcodec/targa.c libavcodec/targaenc.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/tmv.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/vb.c libavcodec/vp3.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/xwddec.c libavcodec/xwdenc.c libavcodec/yop.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/drawutils.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_hflip.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/movenc.c libavformat/mxf.h libavformat/utils.c libavformat/yuv4mpeg.c libavutil/imgutils.c libavutil/pixdesc.c libswscale/input.c libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/x86/swscale_template.c libswscale/x86/yuv2rgb.c libswscale/x86/yuv2rgb_template.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: enhance error messagerogerdpack2012-09-29
| | | | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>