Commit Graph

95800 Commits

Author SHA1 Message Date
Gyan Doshi 4fa84f94de avfilter/Makefile: add missing dependency for scale_cuda
scale_cuda includes scale.h
2019-11-19 12:07:03 +05:30
James Almer 126252035d avcodec/cbs_av1: keep separate reference frame state for reading and writing
In scearios where a Temporal Unit is written right after reading it using the same
CBS context (av1_metadata, av1_frame_merge, etc), the reference frame state used
by the writer must not be the state that's the result of the reader having already
parsed the current frame in question.

This fixes writing Switch frames, and frames using short ref signaling.

Signed-off-by: James Almer <jamrial@gmail.com>
2019-11-18 21:30:05 -03:00
Paul B Mahol 5bf2ded32e avfilter/vf_bm3d: improve threshold scaling with different block_size and depth 2019-11-19 00:12:47 +01:00
Paul B Mahol e8a02bcdf8 avfilter/vf_dedot: add 12bit yuva formats 2019-11-18 18:35:32 +01:00
Paul B Mahol b97f5d6f60 avfilter/vf_deflicker: add support for alpha formats 2019-11-18 18:35:32 +01:00
Paul B Mahol b7538b6397 avfilter/vf_amplify: add support for alpha formats 2019-11-18 18:35:32 +01:00
Paul B Mahol 1ca0f4c588 avfilter/vf_limiter: add 12bit yuva formats 2019-11-18 18:35:32 +01:00
Paul B Mahol e369cce851 avfilter/vf_fillborders: add 12bit yuva formats 2019-11-18 18:35:32 +01:00
Paul B Mahol ef8aacbc90 avfilter/vf_premultiply: add support for 12bit yuva format 2019-11-18 18:35:32 +01:00
Paul B Mahol b0ba9ec1b5 avfilter/vf_chromashift: add 12bit yuva formats 2019-11-18 18:35:32 +01:00
Paul B Mahol 95cdbe9804 avfilter/vf_midequalizer: add 12bit yuva formats 2019-11-18 18:08:13 +01:00
Paul B Mahol 2eb803fcca avfilter/vf_convolution: add 12bit yuva formats 2019-11-18 18:01:12 +01:00
Paul B Mahol 8e9238fcee avfilter/vf_neighbor: add 12bit yuva formats 2019-11-18 18:00:25 +01:00
Paul B Mahol 3096dd2765 avfilter/vf_maskedminmax: add 12bit yuva formats 2019-11-18 17:56:34 +01:00
Paul B Mahol fb66f24a2e avfilter/vf_maskedmerge: add 12bit yuva formats 2019-11-18 17:55:21 +01:00
Paul B Mahol 500c469b6f avfilter/vf_maskedclamp: add 12bit yuva formats 2019-11-18 17:53:45 +01:00
Paul B Mahol 89752daa15 avfilter/vf_scroll: add support for 12bit yuva formats 2019-11-18 17:50:05 +01:00
Paul B Mahol 2c953e2a5f avfilter/vf_blend: add 12bit yuva formats 2019-11-18 17:47:35 +01:00
Paul B Mahol b12a277e82 avfilter/vf_vaguedenoiser: add support for alpha formats 2019-11-18 17:44:10 +01:00
Paul B Mahol 335a8d4240 avfilter/vf_bm3d: use boolean for ref option 2019-11-18 17:39:45 +01:00
Paul B Mahol 00302dfca6 avfilter/vf_fftdnoiz: add support for alpha formats 2019-11-18 17:36:56 +01:00
Paul B Mahol 6dec48f4ea avfilter/vf_bm3d: add support for alpha formats 2019-11-18 17:33:19 +01:00
Paul B Mahol bcc57e5bbb avfilter/vf_w3fdif: add support for more >8 bit alpha formats 2019-11-18 17:30:44 +01:00
Paul B Mahol e57af336e9 avfilter/vf_avgblur: add support for 12bit yuva formats 2019-11-18 17:27:42 +01:00
Paul B Mahol a667fb4500 avfilter/vf_gblur: add support for 12bit yuva formats 2019-11-18 17:26:59 +01:00
Paul B Mahol 7061465637 avfilter/vf_median: add support for 12bit yuva formats 2019-11-18 17:24:52 +01:00
Paul B Mahol 60a7435794 avfilter/vf_remap: add support for 12bit yuva format 2019-11-18 17:21:09 +01:00
Paul B Mahol 10b9cb4377 avfilter/vf_lut2: add 12bit depth alpha formats 2019-11-18 17:15:29 +01:00
Paul B Mahol ac85d68b0a avfilter/vf_atadenoise: support alpha formats 2019-11-18 17:06:59 +01:00
Paul B Mahol c58d99f5c8 avfilter/vf_xmedian: add support for alpha formats 2019-11-18 17:06:05 +01:00
Gyan Doshi 098acad8af doc/filters: improve libvmaf section
Added default values, correct strings for default model path and pool
method.
2019-11-18 19:32:07 +05:30
Gyan Doshi f23315681b avdevice/decklink: add option to drop frames till timecode is seen
Option wait_for_tc only takes effect if tc_format is set
2019-11-18 10:01:03 +05:30
Andreas Rheinhardt 8ec6db51c7 avcodec/cbs: Fix potential overflow
The number of bits in a PutBitContext must fit into an int, yet nothing
guaranteed the size argument cbs_write_unit_data() uses in init_put_bits()
to be in the range 0..INT_MAX / 8. This has been changed.

Furthermore, the check 8 * data_size > data_bit_start that there is
data beyond the initial padding when writing mpeg2 or H.264/5 slices
could also overflow, so divide it by 8 to get an equivalent check
without this problem.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-11-17 23:31:45 +00:00
Andreas Rheinhardt e5f06b5321 avcodec/cbs: Factor out common code for writing units
All cbs-functions to write units share a common pattern:
1. They check whether they have a write buffer (that is used to store
the unit's data until the needed size becomes known after writing the
unit when a dedicated buffer will be allocated).
2. They use this buffer for a PutBitContext.
3. The (codec-specific) writing takes place through the PutBitContext.
4. The return value is checked. AVERROR(ENOSPC) here always indicates
that the buffer was too small and leads to a reallocation of said
buffer.
5. The final buffer will be allocated and the data copied.

This commit factors this common code out in a single function in cbs.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-11-17 23:31:44 +00:00
Andreas Rheinhardt 76105fa376 avformat/flacdec: Remove useless packet
flac_read_timestamp() applied av_init_packet() to a packet (which
initializes all fields of the packet except for data and size) and then
went on to use only the data and size fields. In other words: Said
packet can be removed and replaced by an uint8_t * and an int.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-17 23:44:17 +01:00
Carl Eugen Hoyos c2e327ee68 lavf/Makefile: Specify sln demuxer requirements.
Mentioned in ticket #8378.
2019-11-17 23:40:14 +01:00
Carl Eugen Hoyos 67745cf9d0 configure: Add fft dependency for showspatial filter.
Mentioned in ticket #8378.
2019-11-17 23:29:23 +01:00
Carl Eugen Hoyos 5788872d5c configure: Add fft dependency for headphone filter.
Mentioned in ticket #8378.
2019-11-17 23:24:38 +01:00
Nomis101 fea4aff21c avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc
Signed-off-by: Rick Kern <kernrj@gmail.com>
2019-11-17 16:30:15 -05:00
Paul B Mahol 158dd30841 avfilter/f_loop: switch aloop to activate 2019-11-17 16:20:58 +01:00
Paul B Mahol 7d758e6619 avfilter/f_loop: fix pts handling when timebase and 1/samplerate differ 2019-11-17 16:19:07 +01:00
Paul B Mahol 0835bc3251 avfilter/af_sidechaincompress: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:30:10 +01:00
Paul B Mahol fe4d0e3603 avfilter/af_anlmdn: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:25:54 +01:00
Paul B Mahol fc3ce430b8 avfilter/af_agate: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:23:48 +01:00
Paul B Mahol f1c427e248 avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:21:10 +01:00
Paul B Mahol 0980b9c223 avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:19:39 +01:00
Paul B Mahol 6a6663ada0 avfilter/af_adeclick: fix pts handling when timebase and 1/samplerate differ 2019-11-17 12:17:51 +01:00
Paul B Mahol 1bae2583dd avfilter/af_aecho: switch to activate 2019-11-17 11:57:52 +01:00
Gyan Doshi 08ea57bce2 doc/APIchanges: update for av_expr_count_vars 2019-11-17 11:09:13 +05:30
Gyan Doshi 6aea116e93 avutil/eval: add function to track variable use
1)Some filters allow cross-referenced expressions e.g. x=y+10. In
such cases, filters evaluate expressions multiple times for
successful evaluation of all expressions. If the expression for one or
more variables contains a RNG, the result may vary across evaluation
leading to inconsistent values across the cross-referenced expressions.

2)A related case is circular expressions e.g. x=y+10 and y=x+10 which
cannot be succesfully resolved.

3)Certain filter variables may only be applicable in specific eval modes
and lead to a failure of evaluation in other modes e.g. pts is only
relevant for frame eval mode.

At present, there is no reliable means to identify these occurrences and
thus the error messages provided are broad or inaccurate. The helper
function introduced - av_expr_count_vars - allows developers to identify
the use and count of variables in expressions and thus tailor the error
message, allow for a graceful fallback and/or decide evaluation order.
2019-11-17 11:07:05 +05:30