Nicolas George
3073aadf2d
timefilter: internally compute feedback factors.
...
The feedback factors for the timefilter are directly computed from
the expected period. This commit changes the init function to accept
the period itself and compute the feedback factors internally,
rather than having all client code duplicate the formulas.
This commit also actually fixes the formulas: the current code had
sqrt(2*o), but the correct formula, both theoretically and according
to experimental testing, is sqrt(2)*o.
Furthermore, it adds an exponential to feedback factors larger than
1 with large periods.
13 years ago
Anton Khirnov
87392b1fd5
libcdio: add a forgotten AVClass to the private context.
13 years ago
Michael Niedermayer
a5bf9b351c
timefilter: better selftest code.
...
Add support for divergence detection and variable period.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
cfac648e6a
doxygen: Remove documentation for non-existing parameters; misc small fixes.
13 years ago
Nicolas George
534a82a3fd
lavd/lavfi: support all sample formats.
13 years ago
Rafaël Carré
05ee0db1b2
dshow_filter: fix compilation with mingw-w64
...
Closes ticket #999
NO_DSHOW_STRSAFE asks dshow.h header to not use secure string function
replacements.
Using secure replacements would break mingw.org compatibility as they don't
declare/define those functions.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Yordan Makariev
0c5d78a898
4xm, timefilter: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Carl Eugen Hoyos
5fa1a1d8fc
Support YV12 from video4linux2 devices.
...
Reviewed-by: Luca Abeni
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
Carl Eugen Hoyos
de05e41bfc
Use the correct pix_fmt for 32bit x11grab.
...
Remove adding a constant value to each pixel to make it opaque.
13 years ago
Carl Eugen Hoyos
b2327a8202
Add some missing v4l2 pix_fmt mappings.
13 years ago
Carl Eugen Hoyos
4632066713
Fix v4l pix_fmt mapping for rgb32: There is no transparency information.
13 years ago
Carl Eugen Hoyos
93a3ba9bcd
Fix pix_fmt mapping for v4l2 rgb5x5.
13 years ago
Michael Niedermayer
72bbe768ba
devices: Disable v4l to fix compilation until someone
...
has time to update it to the new API.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
7181c4edee
cosmetics: Remove extra newlines at EOF
13 years ago
Anton Khirnov
6e9651d106
lavf: remove AVFormatParameters from AVFormatContext.read_header signature
13 years ago
Michael Niedermayer
749e5dc1fd
buildsystem: 10l add v4l entry back
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2179b638e3
v4l: fix compilation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
941e9f2238
lavd: remove deprecated v4l grab device.
13 years ago
Nicolas George
1fa88f343a
lavd/lavfi: add dumpgraph option.
13 years ago
Michael Niedermayer
106f714d30
Revert "v4l2: poll the file descriptor"
...
This reverts commit 0efd48dfd1
.
Reason for the revert is that the code seems based on some
misunderstanding on how the code works.
Conflicts:
libavdevice/v4l2.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
b6db385922
v4l2: use C99 struct initializer
...
Remove some unneeded memsets.
13 years ago
Luca Barbato
0efd48dfd1
v4l2: poll the file descriptor
...
Instead of busy waiting use poll();
13 years ago
Luca Barbato
b8c310cb0a
v4l2: support compressed formats
...
Let pass the codec name to -pixel_format and introduce -input_format.
13 years ago
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
13 years ago
Janne Grunau
f13a9ca906
v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined
...
V4L2_FMT_FLAG_EMULATED was added in 2.6.32.
13 years ago
Luca Barbato
a6a4793d04
v4l2: list available formats
...
Make use of the experimental framesize enumeration ioctl if available.
13 years ago
Luca Barbato
cd2bbad303
v4l2: set the proper codec_tag
...
Unbreak direct streamcopy.
13 years ago
Luca Barbato
eb89b4fc09
v4l2: refactor device_open
...
Check capabilities directly in the function, further simplify the code.
13 years ago
Luca Barbato
246007d370
v4l2: simplify away io_method
...
Only mmap is supported.
13 years ago
Luca Barbato
a896d7f45a
v4l2: cosmetics
13 years ago
Luca Barbato
21aa6ae4fb
v4l2: uniform and format options
13 years ago
Luca Barbato
af7123b2ad
v4l2: do not force interlaced mode
...
Video4linux2 supports both interlaced and non-interlaced mode, do not
ask for interlaced if not necessary.
13 years ago
Jean First
81980bf740
lavd/lavfi: fix compiler warning for uninitialized variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Janne Grunau
1adba23cec
v4l2: remove unneded linux specific asm/types.h include
13 years ago
Nicolas George
acb67c5bbc
lavd/lavfi: fix two memleaks.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Michael Niedermayer
d5874e9c2c
libavdevice: increase LIBAVDEVICE_VERSION_MICRO to 100
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
f1622a17fd
lavd/lavfi: reindent block in lavfi_read_header
13 years ago
Stefano Sabatini
4d475f7eb3
lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()
13 years ago
Stefano Sabatini
21dfd1591e
lavd/lavfi: fix incomplete comment
13 years ago
Stefano Sabatini
86b7db616d
lavd/lavfi: fix typo in error message
13 years ago
Nicolas George
1509bd3e9e
lavd/lavfi: remove a duplicated line.
13 years ago
Tom Evans
ffa1f541b3
libavdevice: Fix v4l2 compilation under FreeBSD
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
16b771b1f4
cleanup: for(int
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
878dda5db1
build: move inclusion of subdir.mak to main subdir loop
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
1be323054e
Add basic libavdevice documentation.
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Diego Biurrun
ee41963f19
cosmetics: drop some completely pointless parentheses
13 years ago
Diego Biurrun
e873c03ac7
misc Doxygen markup improvements
13 years ago