Thomas Mundt
a3a6d4da62
avformat/mxfenc: add h264 profiles
...
Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-10 02:10:12 +02:00
Timo Rothenpieler
1c15d26615
avfilter/vf_hwupload_cuda: update supported pix_fmts
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
ece068a771
avutil/hwcontext_cuda: use generic size and pointer assignment functions
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
41a18982d0
avutil/hwcontext_cuda: add support for nvenc rgb formats
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
93d1756af2
avcodec/cuviddec: explicitly synchronize cuMemcpy calls
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
9b82e333b7
avutil/hwcontext_cuda: explicitly synchronize cuMemcpy calls
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
880236e898
avcodec/nvdec: pass CUstream in vpp parameters
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
c855683427
avutil/hwcontext_cuda: add CUstream in cuda hwctx
2018-05-10 00:34:22 +02:00
Timo Rothenpieler
baabd3c2ad
avcodec/nvdec: avoid needless copy of output frame
...
Replaces the data pointers with the mapped cuvid ones.
Adds buffer_refs to the frame to ensure the needed contexts stay alive
and the cuvid idx stays allocated.
Adds another buffer_ref to unmap the frame when it's unreferenced itself.
2018-05-10 00:34:21 +02:00
Timo Rothenpieler
2e700b082c
Revert "avcodec/nvenc: make hw_frames_ctx fully optional"
...
This reverts commit 7d4e1f7cfb
.
Accidentially pushed this with a batch of other patches, and it didn't
seem to break anything, so I went with it.
Except it does, so reverting it it is.
2018-05-10 00:34:21 +02:00
Aman Gupta
07d9c31055
avformat/mpegts: clean up whitespace
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:43:38 -07:00
Aman Gupta
1a14e39145
avformat/mpegts: use MAX_SECTION_SIZE instead of hardcoded value
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:42:28 -07:00
Aman Gupta
2c500f5097
avformat/mpegts: skip non-PMT tids earlier
...
This mimics the logic flow in all the other callbacks
(pat_cb, sdt_cb, m4sl_cb), and avoids calling skip_identical()
for non PMT_TID packets.
Since skip_identical modifies internal state like
MpegTSSectionFilter.last_ver, this change prevents unnecessary
reprocessing on some streams which contain multiple tables in
the PMT pid. This can be observed with streams from certain US
cable providers, which include both tid=0x2 and another unspecified
tid=0xc0.
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:39:55 -07:00
Aman Gupta
12ceaf0fba
ffprobe: fix SEGV when new streams are added
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:30:17 -07:00
Aman Gupta
a19bac8fc8
avcodec/hevc: remove videotoolbox hack
...
No longer required since 63d875772d
. The equivalent hack
for h264 was removed in that commit, but this one was missed.
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:26:31 -07:00
Aman Gupta
07d175d0b0
avcodec/videotoolbox: split h264/hevc callbacks
...
Previously the shared callbacks were trying to interpret
avctx->priv_data as H264Context*
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:26:31 -07:00
Aman Gupta
dd77cca1c4
avcodec/videotoolbox: cleanups
...
No functional changes.
Signed-off-by: Aman Gupta <aman@tmm1.net>
2018-05-09 12:26:31 -07:00
James Almer
c6a63e1109
avcodec/cbs_h2645: use AVBufferRef to store list of active parameter sets
...
Removes unnecessary data copies, and partially fixes potential issues
with dangling references held in said lists.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-05-09 11:14:14 -03:00
Michael Niedermayer
293a6e8332
avformat/mxfenc: Write transfer characteristic
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
c35ca7e01c
avformat/mxfenc: Add Stored F2 Offset / Image Start/End Offset for D10
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
530ac1e50b
avformat/mxfenc: Write Audio Ref Level for D10
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
1246754c80
avformat/mxfenc: Add Padding Bits
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
6d0339096e
avformat/mxfenc: add white/black ref /color range
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
2bee43b67d
avformat/mxfenc: Add vertical subsampling support
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
77cbe698cd
avformat/mxfenc: Fix stored width
...
This fixes the width to have computations matching the height
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
1b6c89ca8d
avformat/mxfenc: Add object model version
...
Other tools (XFConvert at least) write this as well.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
86c9250923
avformat/mxfenc: Add Product Version, Toolkit version and Platform
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
3ba1bbb4f9
avformat/mxfenc: Bump minor versions for S377-1-2009
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Michael Niedermayer
5c70513418
avformat/mxfenc: Correct KAG alignment of preface
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-05-08 23:02:58 +02:00
Hendrik Leppkes
8007a86363
lavfi/vf_srcnn: use avio_check instead of access
...
The filter uses avio for file access already, and avio_check is
portable.
Fixes trac #7192 .
2018-05-08 17:52:33 +02:00
Clément Bœsch
6876a63368
lavc/cfhd: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
2018-05-08 12:47:38 +02:00
Clément Bœsch
1eb4e731fc
lavfi/swaprect: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
2018-05-08 12:47:38 +02:00
Clément Bœsch
8d6354aa82
lavfi/nlmeans: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
2018-05-08 12:47:38 +02:00
Martin Vignali
6ebc71847e
fate/hapenc : remove tests due to inconsistent result
2018-05-08 11:44:34 +02:00
Clément Bœsch
e6114d21ac
lavfi/nlmeans: inline integral patch value function
...
This prevents redundant position computation and make the code faster
(1.1x faster overall).
2018-05-08 10:28:06 +02:00
Clément Bœsch
4278f79ef6
lavfi/nlmeans: use unsigned for the integral patch value
...
This value can not be negative.
2018-05-08 10:28:06 +02:00
Clément Bœsch
de956198a9
lavfi/nlmeans: reorder memory accesses in get_integral_patch_value
...
This doesn't seem to make much of a difference but it can't hurt.
2018-05-08 10:28:06 +02:00
Clément Bœsch
34e1e53e28
lavfi/nlmeans: move final weighted averaging out of nlmeans_plane
...
This helps figuring out where the filter is slow:
70.53% ffmpeg_g ffmpeg_g [.] nlmeans_slice
25.73% ffmpeg_g ffmpeg_g [.] compute_safe_ssd_integral_image_c
1.74% ffmpeg_g ffmpeg_g [.] compute_unsafe_ssd_integral_image
0.82% ffmpeg_g ffmpeg_g [.] ff_mjpeg_decode_sos
0.51% ffmpeg_g [unknown] [k] 0xffffffff91800a80
0.24% ffmpeg_g ffmpeg_g [.] weight_averages
(Tested with a large image that takes several seconds to process)
Since this function is irrelevant speed wise, the file's TODO is
updated.
2018-05-08 10:28:06 +02:00
Clément Bœsch
667503ef68
lavfi/nlmeans: switch from double to float
...
Overall speed appears to be 1.1x faster with no noticeable quality
impact.
2018-05-08 10:28:06 +02:00
Clément Bœsch
43d16aef63
lavfi/nlmeans: make compute_safe_ssd_integral_image_c faster
...
before: ssd_integral_image_c: 49204.6
after: ssd_integral_image_c: 44272.8
Unrolling by 4 made the biggest difference on odroid-c2 (aarch64);
unrolling by 2 or 8 both raised 46k cycles vs 44k for 4.
Additionally, this is a much better reference when writing SIMD (SIMD
vectorization will just target 16 instead of 4).
2018-05-08 10:28:06 +02:00
Clément Bœsch
f679711c1b
checkasm: add vf_nlmeans test for ssd_integral_image
2018-05-08 10:28:06 +02:00
Clément Bœsch
5a71bce371
lavfi/nlmeans: add AArch64 SIMD for compute_safe_ssd_integral_image
...
ssd_integral_image_c: 49204.6
ssd_integral_image_neon: 28346.8
2018-05-08 10:28:06 +02:00
Clément Bœsch
5ba14f4f1a
lavfi/nlmeans: use ptrdiff_t for linesizes
...
Similarly to previous commit, this will help writing SIMD code by not
having manual zero-extension in SIMD code
2018-05-08 10:28:06 +02:00
Clément Bœsch
26f02c51ce
lavfi/nlmeans: add SIMD-friendly assumptions for compute_safe_ssd_integral_image
...
SIMD code will not have to deal with padding itself. Overwriting in that
function may have been possible but involve large overreading of the
sources. Instead, we simply make sure the width to process is always a
multiple of 16. Additionally, there must be some actual area to process
so the SIMD code can have its boundary checks after processing the first
pixels.
2018-05-08 10:28:06 +02:00
Clément Bœsch
f1248b7795
lavfi/nlmeans: random code shuffling to help compiler
...
This makes nlmeans_slice() slightly faster at least on GCC 7.3.
2018-05-08 10:28:06 +02:00
Gyan Doshi
0683ad709b
avformat/segafilmenc - set keyframe bit correctly
...
As per
https://web.archive.org/web/20020803104640/http://www.pcisys.net:80/~melanson/codecs/film-format.txt ,
the top bit of the info1 chunk is set as 1 for inter-coded frames and 0
otherwise.
2018-05-08 13:29:15 +05:30
Rostislav Pehlivanov
29eb1c51d7
mdct15: simplify x86 exptab permutation
...
Removes an unneeded copy and does the 5-point permute in-place.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2018-05-07 23:44:40 +01:00
Rostislav Pehlivanov
a72d0fb973
mdct15: simplify the fft15 x86 SIMD
...
Saves 1 gpr and 2 instructions and simplifies the macros a bit.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2018-05-07 23:27:41 +01:00
Haihao Xiang
1b0e0578c2
vaapi_encode_vp8: memset the the structure to 0
...
The structure has reserved bytes, it is required to set the reserved
bytes to 0 for future use.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-05-07 21:32:47 +01:00
Haihao Xiang
65be65da37
cbs_h264: Need [] in the name when subscript is required
...
Otherwise it will hit an assert in the function
ff_cbs_trace_syntax_element() in cbs.c, line 400.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2018-05-07 21:32:41 +01:00