b0ece2b31f
hwcontext_vaapi: Fix DRM format mapping
2017-09-19 22:47:04 +01:00
9f9625ea80
kmsgrab: Remove multiple-plane formats
...
The planes are unlikely to be contiguous, assuming they are results in
very broken output. (Tested with NV12/NV16 on Rockchip.)
2017-09-19 22:47:03 +01:00
22afa87a8e
kmsgrab: Fix DRM format definitions
...
All DRM formats are defined in terms of little-endian words, so RGB formats
like XRGB actually have the elements in the opposite order order in memory
to the order they are in the name.
This does not affect YUYV and similar YUV 4:2:2 formats, which are in the
expected order.
2017-09-19 22:47:01 +01:00
375cf55fe9
vaapi: Disable deprecation warnings around use of old struct vaapi_context
2017-09-19 22:46:55 +01:00
b4ecf2b582
vp9: move VP9SharedContext back to the top of VP9Context
...
VP9SharedContext needs to be the first member so its properties can be
safely accessed from hardware accelerators, without the need to share
the full VP9Context.
Fixes ticket #6674 .
2017-09-19 14:52:15 +02:00
18821e3ba1
x86/exrdsp: optimize ff_reorder_pixels_avx2()
...
Tested with "checkasm --test=exrdsp -bench"
Before:
reorder_pixels_c: 5187.8
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 331.3
After:
reorder_pixels_c: 5181.5
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 313.8
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-18 23:24:55 -03:00
3ffd3b7f5f
avformat/mxfenc: cosmetic changes
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com >
2017-09-18 08:57:09 +02:00
147bface1a
fate: add mxf_dv25/dvcpro50 regression tests
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com >
2017-09-18 08:56:52 +02:00
35d6be199a
avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com >
2017-09-18 08:56:28 +02:00
3af1060319
avfilter/tinterlace: Simplify checks for lowpass filtering flags
2017-09-18 00:15:58 -03:00
4492237e33
fate: add tinterlace lowpass filtering tests
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-17 23:41:00 -03:00
3118e81f86
lavc/frame_thread_encoder: Do not mix variable declaration and code.
...
Fixes a warning:
ISO C90 forbids mixed declarations and code
2017-09-18 03:24:52 +02:00
7323c896b2
checkasm: add an exrdsp test
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-17 19:01:40 -03:00
98d7ad085e
avcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototype
...
Make dst be the first parameter and src const. It's more in line with the rest of the codebase.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-17 19:01:40 -03:00
9b8c1224d7
libavcodec/exr : add X86 SIMD for reorder_pixels
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-17 17:53:57 -03:00
08ec828de9
avcodec/vorbisenc: Fix mixed declaration and statements
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-16 19:55:03 +02:00
d76838c1ad
avcodec/fits: Fix include type
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-16 19:55:03 +02:00
0f5576a22b
avutil/imgutils: Fix warning: missing braces around initializer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-16 19:55:03 +02:00
a149fa97d9
avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx
...
This is the equivalent to what 7d317d4706
did for the codec-specific options.
av_opt_copy has specific handling so it's fine that we already copied
the whole context before.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de >
2017-09-16 16:46:00 +02:00
73bf0f42e3
avformat/hlsenc: fix segfault when using -hls_segment_type fmp4 with -hls_segment_filename
...
previously, specifying -hls_segment_filename meant
s->base_output_dirname was never set, causing a segfault:
(lldb) bt
* thread #1 , queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0 : 0x00007fffbf7d82d0 libsystem_platform.dylib`_platform_strcmp + 80
frame #1 : 0x00000001005f4dcf libavformat.57.dylib`io_open_default(s=0x000000010481cc00, pb=0x0000000104806020, url=0x0000000000000000, flags=2, options=0x0000000000000000) at options.c:107
frame #2 : 0x0000000100528968 libavformat.57.dylib`hls_mux_init(s=0x000000010481cc00) at hlsenc.c:595
frame #3 : 0x00000001005273cb libavformat.57.dylib`hls_write_header(s=0x000000010481cc00) at hlsenc.c:1518
frame #4 : 0x00000001005c08d0 libavformat.57.dylib`write_header_internal(s=0x000000010481cc00) at mux.c:486
frame #5 : 0x00000001005c0774 libavformat.57.dylib`avformat_write_header(s=0x000000010481cc00, options=0x00000001029026e8) at mux.c:539
2017-09-16 10:32:28 +08:00
42a41c3956
vf_fps: Fix memory leak introduced by eea64ef4
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:40:21 +02:00
ed48e22748
avfilter/interlace: simplify code
...
Signed-off-by: Thomas Mundt <tmundt75@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:40:21 +02:00
a7f6bfdc18
avfilter/interlace: prevent over-sharpening with the complex low-pass filter
...
The complex vertical low-pass filter slightly over-sharpens the picture. This becomes visible when several transcodings are cascaded and the error potentises, e.g. some generations of HD->SD SD->HD.
To prevent this behaviour the destination pixel must not exceed the source pixel when the average of the pixels above and below is less than the source pixel. And the other way around.
Tested and approved in a visual transcoding cascade test by video professionals.
SSIM/PSNR test with the first generation of an HD->SD file as a reference against the 6th generation(3 x SD->HD HD->SD):
Results without the patch:
SSIM Y:0.956508 (13.615881) U:0.991601 (20.757750) V:0.993004 (21.551382) All:0.974405 (15.918463)
PSNR y:31.838009 u:48.424280 v:48.962711 average:34.759466 min:31.699297 max:40.857847
Results with the patch:
SSIM Y:0.970051 (15.236232) U:0.991883 (20.905857) V:0.993174 (21.658049) All:0.981290 (17.279202)
PSNR y:34.412108 u:48.504454 v:48.969496 average:37.264644 min:34.310637 max:42.373392
Signed-off-by: Thomas Mundt <tmundt75@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:40:21 +02:00
1a85fb7e1e
avcodec/mips: Improve hevc sao band filter msa functions
...
Preload data in band filter 0-8 for better pipeline parallelization.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com >
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:36:42 +02:00
0105ed551c
avcodec/mips: Improve avc mc copy msa functions
...
Remove loops and unroll as block sizes are known.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com >
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:19:07 +02:00
e5a650e141
avcodec/mips: Improve avc lpf msa functions
...
Optimize luma intra case by reducing conditional cases.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com >
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 22:19:07 +02:00
6743351558
lavf/http: fix compilation without zlib
...
Regression since e2f8f14052
.
2017-09-15 15:10:49 +02:00
1a08285f05
build: fix coreimage filters dependency to AppKit framework
...
AppKit is not present on iOS.
2017-09-15 15:01:32 +02:00
dd8ffb191f
lavc/mediacodec_wrapper: fix jni vaargs types
...
Fixes decoding on 32-bit devices with Android NDK >= 15.
2017-09-15 14:19:16 +02:00
e2f8f14052
lavf/http: Reset compressed header flag, fix http 302 request
...
Fixes ticket #6404 .
Fixes ticket #6666 .
Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com >
2017-09-15 13:33:23 +02:00
eea64ef4cf
vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.
...
Fix ticket #2674
Tested with examples from ticket 2674.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 02:24:31 +02:00
c6314cd750
avcodec/mips: Improve hevc idct msa functions
...
Align the buffers. Remove reduandant constant array.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com >
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 01:47:14 +02:00
f692e55aab
avcodec/mips: Improve hevc lpf msa functions
...
Seperate the filter processing in all strong, all weak and strong + weak cases.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com >
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-15 01:47:14 +02:00
197d298ab3
hwcontext_vaapi: Fix build failure with old libdrm
...
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
Signed-off-by: Mark Thompson <sw@jkqxz.net >
2017-09-14 22:42:51 +01:00
462568185b
kmsgrab: Fix build failure with old libdrm
...
DRM_FORMAT_R8 was added in libdrm 2.4.68.
DRM_FORMAT_R16 was added in libdrm 2.4.82.
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
Signed-off-by: Mark Thompson <sw@jkqxz.net >
2017-09-14 22:40:09 +01:00
133002e8ae
avfilter/vf_despill: fix assigment
...
Reported-by: Moritz Barsnick
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-09-14 18:05:57 +02:00
16b44d9ab9
lavd/kmsgrab: Fix packet flag setting
...
Found-by: James Almer <jamrial@gmail.com >
2017-09-14 09:14:36 +01:00
6561cdd70c
avcodec.h: fix doxygen comment
2017-09-14 01:43:52 -03:00
ec1573f879
doc/indevs: Document kmsgrab input device
2017-09-13 22:31:12 +01:00
52194f0bcb
lavd: Add KMS screen grabber
2017-09-13 22:31:05 +01:00
c8dea81921
lavc: Add wrapped_avframe decoder
...
Intended for use with hardware frames for which rawvideo is not
sufficient. Requires the trusted packet flag to be set - decoding
fails if not to avoid security issues (the wrapped AVFrame can
contain pointers to arbitrary data).
2017-09-13 22:25:29 +01:00
82342cead1
lavc: Add flag to mark packets containing trusted input
2017-09-13 22:25:29 +01:00
170c65335c
hwcontext_vaapi: Add DRM to VAAPI mapping
2017-09-13 22:25:25 +01:00
9cb23cd9fe
lavu: Add DRM hwcontext
2017-09-13 22:03:27 +01:00
7bae17e37a
avcodec/extract_extradata: return an error when buffer allocation fails
...
ret is 0 by default.
Reviewed-by: Mark Thompson <sw@jkqxz.net >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-13 17:22:00 -03:00
4d390344ec
configure: check if NAN can be used as a constant initializer
...
Some targets, like NetBSD and DJGPP, don't seem to support it.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-13 15:38:10 -03:00
6ce4a635ed
avformat/fitsenc: fill header line with spaces
...
Signed-off-by: Paras Chadha <paraschadha18@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-12 21:39:57 -03:00
9669c05baf
avcodec/h264_sei: add namespace prefix to frame packingarrangement enum values
...
Missed in 6eb102a616
.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-12 19:59:23 -03:00
6eb102a616
h264_sei: Add namespace prefix to all SEI values
...
This avoids confusion with equivalent H.265 SEI values when both are
being used at the same time.
(cherry picked from commit 6ea220cbee
)
2017-09-12 22:29:31 +01:00
1db03e952b
vp9: fix explicit memory order for report_progress.
2017-09-12 15:26:05 -04:00