Michael Niedermayer
8862ed7340
avdevice/dshow: make constant arrays static
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
d4982b115d
lavd/dshow: fix style and typo recently introduced.
12 years ago
rogerdpack
12c71f648c
dshow: Fix MSVC support, remove av_export, which was apparently unneeded anyway.
...
Also cleanup exported symbols
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
rogerdpack
c916389bd2
dshow: allow for more codec ID's
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years ago
rogerdpack
3b9166fc7e
dshow: better error reporting
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years ago
rogerdpack
6d33026668
dshow: fix log message
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years ago
rogerdpack
47e88486b4
hdyc col
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years ago
rogerdpack
a50049a197
dshow: use standardized raw pixel format lookup
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
12 years ago
Ramiro Polla
83a9f29f60
dshow: call CoUninitialize() on dshow_read_close()
...
Every call to CoInitialize should have a matching CoUnititalize.
Based on patch by Don Moir <donmoir@comcast.net>.
12 years ago
Ramiro Polla
190f6135b4
dshow: handle events in graph
...
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>.
12 years ago
rogerdpack
fe3e0e486e
lavd/dshow: rename dshow class name
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Ramiro Polla
f2c49da9ac
dshow: fix return code when opening device
...
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>
12 years ago
Stefano Sabatini
c9ff32215b
lavu/opt: allow to set sample and pixel format with av_opt_set_int()
...
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 08d0969c14
.
12 years ago
Stefano Sabatini
08d0969c14
lavu/opt: change the way default pixel and sample format value is set
...
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.
12 years ago
rogerdpack
1bdb4b26a8
dshow: enhance error message
...
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>
12 years ago
Ramiro Polla
dc5fcdb896
lavd/dshow: use AV_OPT_TYPE_IMAGE_SIZE
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Ramiro Polla
37a0db50db
lavd/dshow: support video codec and pixel format selection
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Ramiro Polla
ad7fae4ee1
dshow: allow user to specify audio buffer size
...
Based on patch by rogerdpack <rogerpack2005@gmail.com>
Tested-by: Roger Pack <rogerdpack2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
rogerdpack
415f4cca1d
dshow:protect access to curbufsize to promote consistency
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
rogerdpack
a966d94891
dshow: avoid integer overflow when using curbufsize
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
rogerdpack
a93c221ccd
dshow: protect access to curbufsize
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
rogerdpack
42dbf06df0
dshow: cleanup reference
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bb2f13c19f
rename missed CodecID to AVCodecID
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Kyle
02cc66dd78
dshow: rename dshow.h to avoid conflict with system header of equal name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
1f0fa80bfa
dshow: use DirectShow information to set time_base
...
Fixes build after removal of AVFormatParameters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
c9e5acad61
dshow: fix AVInputFormat declaration after ABI breakage
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
215b7724e7
lavf: rename remaining av_set_pts_info() to avpriv_set_pts_info().
13 years ago
Ramiro Polla
d3bc75c666
dshow: support BI_BITFIELDS compression type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
526a7d855d
dshow: don't print min/max values for fps the wrong way around
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
e3e962835f
dshow: save opened device reference so it may be properly closed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
21a928d07c
dshow: release filter reference obtained from enumeration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
5b186148bf
dshow: indent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ramiro Polla
2f9b955918
dshow: support choosing between devices with same name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
0e5ecd806e
Replace remaining av_new_stream() with avformat_new_stream().
13 years ago
Clément Bœsch
539399d4d1
AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.
13 years ago
Ramiro Polla
6613db9736
dshow: remove filters from graph before releasing them
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
a1644f6287
dshow: reset list for each filter removed
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
215e197942
dshow: invert condition to avoid leaking objects
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
01b997b958
dshow: indent
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
0883a7fa3b
dshow: add option to list audio/video options
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
c4b2027d10
dshow: add audio/video options
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
d0da310317
dshow: initialize variable to prevent releasing random data
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
ee4ed80485
dshow: factorise cycling through pins
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ramiro Polla
f0c64d0d0b
dshow: indent
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years ago
Ramiro Polla
1c282f96ab
dshow: add option to list devices
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years ago
Ramiro Polla
fad4e1a572
dshow: factorise cycling through devices
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years ago
Ramiro Polla
ff5e1b0b7a
dshow: properly disconnect and remove filters from graph
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ramiro Polla
5e77dc2ea7
dshow: remove some unused code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
6b899e16de
lavdev: prefer the inclusion of avdevice.h over that of libavformat/avformat.h
14 years ago
Ramiro Polla
a13fec8a9c
DirectShow capture: Fix build
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago