773eb74bab 
								
							
								 
							
						 
						
							
							
								
								dshow: show device name when outputting buffer overflow log message  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								10056bc964 
								
							
								 
							
						 
						
							
							
								
								dshow: log error and continue if unable to set audio buffer  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6abc56e892 
								
							
								 
							
						 
						
							
							
								
								dshow: use distinct buffers per stream.  
							
							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> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								24e2a82f75 
								
							
								 
							
						 
						
							
							
								
								Make 32bit RGB dshow input opaque.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6208bb965d 
								
							
								 
							
						 
						
							
							
								
								Set codec_tag in dshow device, needed to distinguish between YUV and YVU.  
							
							Fixes ticket #3447 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f607767d93 
								
							
								 
							
						 
						
							
							
								
								lavd: add categories to device implementations  
							
							Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b8c7da7a3 
								
							
								 
							
						 
						
							
							
								
								lavu,lavfi,lavd: do not hardcode AV_PIX_FMT_NB value when setting pixel 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. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8862ed7340 
								
							
								 
							
						 
						
							
							
								
								avdevice/dshow: make constant arrays static  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4982b115d 
								
							
								 
							
						 
						
							
							
								
								lavd/dshow: fix style and typo recently introduced.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								c916389bd2 
								
							
								 
							
						 
						
							
							
								
								dshow: allow for more codec ID's  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b9166fc7e 
								
							
								 
							
						 
						
							
							
								
								dshow: better error reporting  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d33026668 
								
							
								 
							
						 
						
							
							
								
								dshow: fix log message  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47e88486b4 
								
							
								 
							
						 
						
							
							
								
								hdyc col  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a50049a197 
								
							
								 
							
						 
						
							
							
								
								dshow: use standardized raw pixel format lookup  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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>. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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>. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe3e0e486e 
								
							
								 
							
						 
						
							
							
								
								lavd/dshow: rename dshow class name  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc5fcdb896 
								
							
								 
							
						 
						
							
							
								
								lavd/dshow: use AV_OPT_TYPE_IMAGE_SIZE  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37a0db50db 
								
							
								 
							
						 
						
							
							
								
								lavd/dshow: support video codec and pixel format selection  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								a93c221ccd 
								
							
								 
							
						 
						
							
							
								
								dshow: protect access to curbufsize  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								42dbf06df0 
								
							
								 
							
						 
						
							
							
								
								dshow: cleanup reference  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb2f13c19f 
								
							
								 
							
						 
						
							
							
								
								rename missed CodecID to AVCodecID  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9e5acad61 
								
							
								 
							
						 
						
							
							
								
								dshow: fix AVInputFormat declaration after ABI breakage  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								215b7724e7 
								
							
								 
							
						 
						
							
							
								
								lavf: rename remaining av_set_pts_info() to avpriv_set_pts_info().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3bc75c666 
								
							
								 
							
						 
						
							
							
								
								dshow: support BI_BITFIELDS compression type  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								526a7d855d 
								
							
								 
							
						 
						
							
							
								
								dshow: don't print min/max values for fps the wrong way around  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3e962835f 
								
							
								 
							
						 
						
							
							
								
								dshow: save opened device reference so it may be properly closed  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								21a928d07c 
								
							
								 
							
						 
						
							
							
								
								dshow: release filter reference obtained from enumeration  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b186148bf 
								
							
								 
							
						 
						
							
							
								
								dshow: indent  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f9b955918 
								
							
								 
							
						 
						
							
							
								
								dshow: support choosing between devices with same name  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e5ecd806e 
								
							
								 
							
						 
						
							
							
								
								Replace remaining av_new_stream() with avformat_new_stream().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								539399d4d1 
								
							
								 
							
						 
						
							
							
								
								AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6613db9736 
								
							
								 
							
						 
						
							
							
								
								dshow: remove filters from graph before releasing them  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1644f6287 
								
							
								 
							
						 
						
							
							
								
								dshow: reset list for each filter removed  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								215e197942 
								
							
								 
							
						 
						
							
							
								
								dshow: invert condition to avoid leaking objects  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								01b997b958 
								
							
								 
							
						 
						
							
							
								
								dshow: indent  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0883a7fa3b 
								
							
								 
							
						 
						
							
							
								
								dshow: add option to list audio/video options  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c4b2027d10 
								
							
								 
							
						 
						
							
							
								
								dshow: add audio/video options  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d0da310317 
								
							
								 
							
						 
						
							
							
								
								dshow: initialize variable to prevent releasing random data  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee4ed80485 
								
							
								 
							
						 
						
							
							
								
								dshow: factorise cycling through pins  
							
							Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						14 years ago