Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
9 years ago
Diego Biurrun
01621202aa
build: miscellaneous cosmetics
...
Restore alphabetical order in lists, break overly long lines, do some
prettyprinting, add some explanatory section comments, group parts
together that belong together logically.
9 years ago
Anton Khirnov
a638e9184d
vf_fade: make sure the slice end is always in the frame
...
CC: libav-stable@libav.org
9 years ago
Anton Khirnov
8a02a8031e
lavfi: add an NVIDIA NPP-based scaling filter
9 years ago
Mark Thompson
98114d70e4
lavf: VAAPI scale filter
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
07a844f32e
lavfi: generic hardware surface upload and download filters
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Khirnov
1138eb5509
vsrc_movie: convert to codecpar
9 years ago
Diego Biurrun
29c2d06d67
cosmetics: Drop empty comment lines
9 years ago
Anton Khirnov
21f7cd4acd
lavfi: add a filter for uploading normal frames to CUDA
9 years ago
Anton Khirnov
b3dd30db0b
lavfi: pass the hw frames context through the filter chain
9 years ago
Anton Khirnov
c084d6d2cf
buffersrc: default SAR to 0 (unknown) rather than 1
...
It makes more sense to not claim anything about the SAR if we don't know
anything. No changes in the FATE tests, since this is what avconv ends
up doing anyway.
9 years ago
Anton Khirnov
fb25d99b0a
buffersrc: do not discard the error from ff_filter_frame()
9 years ago
Vittorio Giovara
4709f72115
lavfi: Use AV_CEIL_RSHIFT where needed
9 years ago
Clément Bœsch
e8bc642202
lavu: add AV_CEIL_RSHIFT and use it in various places
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
7f57ea143c
vsrc_color: Drop unneeded variable
...
Bug-Id: CID 1339818
9 years ago
John Stebbins
db9b7321d5
vsrc_color: implement frame rate
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
1339009c49
vf_showinfo: show timebase & framerate too
...
(cherry picked from ffmpeg commit fdb9399681
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
11f87ca71e
vf_frei0r: also set AVFilterLink.frame_rate
...
(cherry picked from ffmpeg commit 353cf95f94
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
7d12cba95c
vf_framepack: Check and update frame_rate
...
(cherry picked from ffmpeg commit a46a23d30f
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
65e73bc60f
vf_interlace: implement frame rate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from ffmpeg commit 227b4458fb
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Stefano Sabatini
018bdaed37
setpts: add FRAME_RATE constant
...
Useful for dealing with constant frame-rate video.
(cherry picked from ffmpeg commit 722762f7e1
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Stefano Sabatini
5e91a5c5cf
testsrc: set output framerate
...
(cherry picked from ffmpeg commit 7cd5fa35fe
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
9df477e03e
yadif: update frame rate
...
(cherry picked from ffmpeg commit 3161958455
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Nicolas George
1062880d69
vf_fps: set frame_rate.
...
(cherry picked from ffmpeg commit 0d24931604
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Nicolas George
61fb67dcb2
buffersrc: accept the frame rate as argument.
...
(cherry picked from ffmpeg commit 9ca440679d
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Nicolas George
48ff6683ba
lavfi: add a frame_rate field to AVFilterLink.
...
(cherry picked from ffmpeg commit 7b42036b3b
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
John Stebbins
2ec112f71c
vf_pad: fix x, y option expression evaluation
...
Calculation of x an y based on width and height did not work when
width == 0 or height == 0. "0" substitutes the input width and
height, but did so too late for x, y expression evaluation.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
ce70f28a17
avpacket: Replace av_free_packet with av_packet_unref
...
`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`.
9 years ago
Vittorio Giovara
c9943f00cf
vf_framepack: Use av_image_copy() where appropriate
...
This correctly adjust chroma subsampling for column interleaved mode,
and allows future high bitdepth support.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Anton Khirnov
ae25413daf
lavfi: do not exclude hwaccel formats from ff_all_formats()
...
It should be possible to pass hwaccel frames through lavfi.
9 years ago
Luca Barbato
285fe5b098
avfilter: Support both syntaxes for the scale filter
9 years ago
Vittorio Giovara
dc54c78c4d
buffersrc: Improve initialization log message
...
Add timebase and aspect ratio information.
9 years ago
Vittorio Giovara
2268db2cd0
lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields
...
The new fields can be accessed directly and are more intelligible.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
e88103a7f9
Bump major versions of all libraries
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
4e649debcf
Postpone API-incompatible changes until the next bump
9 years ago
Vittorio Giovara
f6974fe651
lavfi: Drop deprecated AVFilterBuffer* code
...
Deprecated in 11/2012.
9 years ago
Vittorio Giovara
e65e4cbbda
lavfi: Drop deprecated *_count suffixed variables
...
Deprecated in 06/2012.
9 years ago
Vittorio Giovara
86e5056575
lavfi: Drop deprecated public AVFilterPad struct
...
Deprecated in 06/2012.
9 years ago
Luca Barbato
b1abd2aaf9
vf_scale: Add an option to pass the scaler params
...
Reported-By: zehan@magicpony.technology
9 years ago
Henrik Gramner
ab43beefab
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Luca Barbato
98c9ade985
drawtext: Move the strftime expansion in a separate function
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
fe026ba960
drawtext: Drop stray guards
...
There is a fallback for localtime_r and it is in use already.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Anton Khirnov
22ecfcd4c7
af_channelmap: properly set the supported output channel layouts
...
The current code expects query_formats() to be called exactly once, it
will leak if it's not called at all (filter initialized, but never
configured or used) or try to read freed memory if it's called more than
once.
Found-by: James Almer <jamrial@gmail.com>
CC: libav-stable@libav.org
9 years ago
Anton Khirnov
6b15874fc2
af_resample: do not touch the timestamps if we are not resampling
...
This filter currently assumes that the input audio is continuous and
does some timestamps manipulation based on this assumption.
This is unnecessary if we are only converting the channel layout or the
sample format, without resampling. In such a case, just leave the
timestamps as they are.
9 years ago
Vittorio Giovara
0d449c81b3
lavfi: Add library identifier
10 years ago
Luca Barbato
c060d046aa
af_resample: Set the number of samples in the last frame
...
Otherwise trailing zeroes would appear.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
James Almer
d68c05380c
x86: check for AV_CPU_FLAG_AVXSLOW where useful
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Vittorio Giovara
7046bd9bc9
lavfi: Move avcodec header to the only filter needing it
...
af_ashowinfo, due to the enum AVAudioServiceType use.
10 years ago
Anton Khirnov
3735b5c616
Revert "lavfi: always check av_expr_parse_and_eval() return value"
...
This reverts commit 63be97ec40
.
All those calls were unchecked on purpose, as explained in the comments
in the code.
10 years ago
Federico Tomassetti
8eb57dc9d5
buffersrc: Use the correct deallocation function
...
This correction was suggested to me by Michael Niedermayer
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago