summaryrefslogtreecommitdiff
path: root/libavdevice/dshow_capture.h
Commit message (Collapse)AuthorAge
* configure: Set WIN32_LEAN_AND_MEAN at configure timeL. E. Segovia2023-08-14
| | | | | | | | | | | | | Including winsock2.h or windows.h without WIN32_LEAN_AND_MEAN cause bzlib.h to parse as nonsense, due to an instance of #define char small in rpcndr.h. See: https://stackoverflow.com/a/27794577 Signed-off-by: L. E. Segovia <amy@amyspark.me> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/packet_internal: Add proper PacketList structAndreas Rheinhardt2022-01-04
| | | | | | | | | | | | | | | Up until now, we had a PacketList structure which is actually a PacketListEntry; a proper PacketList did not exist and all the related functions just passed pointers to pointers to the head and tail elements around. All these pointers were actually consecutive elements of their containing structs, i.e. the users already treated them as if they were a struct. So add a proper PacketList struct and rename the current PacketList to PacketListEntry; also make the functions use this structure instead of the pair of pointers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avdevice/dshow: fix crash on x86Diederick Niehorster2022-01-04
| | | | | | | | | | | fix regression introduced in 911ba8417e8881a7380842e69e11ca05fdc46575. Removal of WINAPI decoration from function signatures caused crashed when using dshow on x86. Fixes #9568 Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* avdevice/dshow: implement option to use device video timestampsDiederick Niehorster2021-12-24
| | | | | | | | | | | | | | | | | | | | | The dshow avdevice ignores timestamps for video frames provided by the DirectShow device, instead using wallclock time, apparently because the implementer of this code had a device that provided unreliable timestamps. Me (and others) would like to use the device's timestamps. The new use_video_device_timestamps option for dshow device enables them to do so. Since the majority of video devices out there probably provide fine timestamps, this patch sets the default to using the device timestamps, which means best fidelity timestamps are used by default. Using the new option, the user can switch this off and revert to the old behavior, so a fall back remains available in case the device provides broken timestamps. add use_video_device_timestamps to docs. Closes: #8620 Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* 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
|
* 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>
* all: Make header guard names consistentTimothy Gu2016-01-31
|
* avdevice/dshow_capture: avoid #ifdef, use ff_dlog() for dshowdebug()Michael Niedermayer2015-05-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* 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: 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: miscellaneous tweaksrogerdpack2015-01-23
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* msvc: Fix compilation errors due to header include order.Matthew Oliver2014-11-27
| | | | | | | Ensures that the header include order is such that winsock2.h is always included before windows.h or that windows.h does not include winsock.h. 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: 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>.
* dshow: Use NO_DSHOW_STRSAFE for all dshow header inclusionsAlexander Strasser2012-11-16
| | | | | | | | | | | | Move the NO_DSHOW_STRSAFE macro definition in front of the dshow.h system header inclusion. This excludes the usage of the STRSAFE functions consistently. Further background on this can be found in the commit message of revision 05ee0db1 where the #define was initially introduced. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* dshow: Change WINBOOL to BOOLDerek Buitenhuis2012-09-07
| | | | | | | | WINBOOL is MinGW-specific, and since both MSVC and MinGW have BOOL, use that instead. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: rename dshow.h to avoid conflict with system header of equal nameKyle2012-05-24
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>