- 02 Aug, 2019 1 commit
-
-
Lynne authored
Simply moves and templates the actual transforms to support an additional data type. Unlike the float version, which is equal or better than libfftw3f, double precision output is bit identical with libfftw3.
-
- 15 May, 2019 1 commit
-
-
Lynne authored
This commit adds a new API to libavutil to allow for arbitrary transformations on various types of data. This is a partly new implementation, with the power of two transforms taken from libavcodec/fft_template, the 5 and 15-point FFT taken from mdct15, while the 3-point FFT was written from scratch. The (i)mdct folding code is taken from mdct15 as well, as the mdct_template code was somewhat old, messy and not easy to separate. A notable feature of this implementation is that it allows for 3xM and 5xM based transforms, where M is a power of two, e.g. 384, 640, 768, 1280, etc. AC-4 uses 3xM transforms while Siren uses 5xM transforms, so the code will allow for decoding of such streams. A non-exaustive list of supported sizes: 4, 8, 12, 16, 20, 24, 32, 40, 48, 60, 64, 80, 96, 120, 128, 160, 192, 240, 256, 320, 384, 480, 512, 640, 768, 960, 1024, 1280, 1536, 1920, 2048, 2560... The API was designed such that it allows for not only 1D transforms but also 2D transforms of certain block sizes. This was partly on accident as the stride argument is required for Opus MDCTs, but can be used in the context of a 2D transform as well. Also, various data types would be implemented eventually as well, such as "double" and "int32_t". Some performance comparisons with libfftw3f (SIMD disabled for both): 120: 22353 decicycles in fftwf_execute, 1024 runs, 0 skips 21836 decicycles in compound_fft_15x8, 1024 runs, 0 skips 128: 22003 decicycles in fftwf_execute, 1024 runs, 0 skips 23132 decicycles in monolithic_fft_ptwo, 1024 runs, 0 skips 384: 75939 decicycles in fftwf_execute, 1024 runs, 0 skips 73973 decicycles in compound_fft_3x128, 1024 runs, 0 skips 640: 104354 decicycles in fftwf_execute, 1024 runs, 0 skips 149518 decicycles in compound_fft_5x128, 1024 runs, 0 skips 768: 109323 decicycles in fftwf_execute, 1024 runs, 0 skips 164096 decicycles in compound_fft_3x256, 1024 runs, 0 skips 960: 186210 decicycles in fftwf_execute, 1024 runs, 0 skips 215256 decicycles in compound_fft_15x64, 1024 runs, 0 skips 1024: 163464 decicycles in fftwf_execute, 1024 runs, 0 skips 199686 decicycles in monolithic_fft_ptwo, 1024 runs, 0 skips With SIMD we should be faster than fftw for 15xM transforms as our fft15 SIMD is around 2x faster than theirs, even if our ptwo SIMD is slightly slower. The goal is to remove the libavcodec/mdct15 code and deprecate the libavcodec/avfft interface once aarch64 and x86 SIMD code has been ported. New code throughout the project should use this API. The implementation passes fate when used in Opus, AAC and Vorbis, and the output is identical with ATRAC9 as well.
-
- 14 Feb, 2019 1 commit
-
-
Timo Rothenpieler authored
-
- 21 Dec, 2018 1 commit
-
-
Mohammad Izadi authored
The dynamic metadata contains data for color volume transform - application 4 of SMPTE 2094-40:2016 standard. The data comes from HEVC in the SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35. Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
- 16 Nov, 2018 1 commit
-
-
Paul B Mahol authored
Copied and adopted from musl implementation. * converted all 'long double' to 'double' * removed %m support
-
- 15 Nov, 2018 1 commit
-
-
Philip Langdale authored
We have a pattern of wrapping CUDA calls to print errors and normalise return values that is used in a couple of places. To avoid duplication and increase consistency, let's put the wrapper implementation in a shared place and use it everywhere. Affects: * avcodec/cuviddec * avcodec/nvdec * avcodec/nvenc * avfilter/vf_scale_cuda * avfilter/vf_scale_npp * avfilter/vf_thumbnail_cuda * avfilter/vf_transpose_npp * avfilter/vf_yadif_cuda
-
- 27 Jun, 2018 1 commit
-
-
Jacob Trimble authored
Signed-off-by:
Jacob Trimble <modmaker@google.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 21 May, 2018 1 commit
-
-
Mark Thompson authored
This uses any devices it can find on the host system - on a system with no hardware device support or in builds with no support included it will do nothing and pass.
-
- 15 May, 2018 1 commit
-
-
Mark Thompson authored
-
- 24 Mar, 2018 1 commit
-
-
Jacob Trimble authored
This new side-data will contain info on how a packet is encrypted. This allows the app to handle packet decryption. Signed-off-by:
Jacob Trimble <modmaker@google.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 21 Mar, 2018 1 commit
-
-
James Almer authored
And actually enable it. Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 05 Jan, 2018 1 commit
-
-
Anton Khirnov authored
(cherry picked from commit 5cc0057f) Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 15 Dec, 2017 1 commit
-
-
Aman Gupta authored
Signed-off-by:
Matthieu Bouron <matthieu.bouron@gmail.com>
-
- 22 Nov, 2017 2 commits
-
-
Mark Thompson authored
This was added in early 2013 and abandoned several months later; as far as I can tell, there are no external users. Future OpenCL use will be via hwcontext, which requires neither special OpenCL-only API nor global state in libavutil. All internal users are also deleted - this is just the unsharp filter (replaced by unsharp_opencl, which is more flexible) and the deshake filter (no replacement).
-
Mark Thompson authored
-
- 13 Sep, 2017 1 commit
-
-
Mark Thompson authored
-
- 19 Jul, 2017 1 commit
-
-
Muhammad Faiz authored
Rework it to improve performance. Now mutex is not shared by workers, instead each worker has its own mutex and condition variable. This reduces lock contention between workers. Also use atomic variable for counter. The interface also allows execute to run special function on main thread, requested by Ronald. Signed-off-by:
Muhammad Faiz <mfcc64@gmail.com>
-
- 18 Jul, 2017 1 commit
-
-
Mark Thompson authored
-
- 27 Jun, 2017 1 commit
-
-
wm4 authored
To be used with the new d3d11 hwaccel decode API. With the new hwaccel API, we don't want surfaces to depend on the decoder (other than the required dimension and format). The old D3D11VA pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the decoder configuration, and thus is incompatible with the new hwaccel API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D and an index. It's simpler and compatible with the new hwaccel API. The introduced hwcontext supports only the new pixfmt. Frame upload code untested. Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with heavy changes/rewrites. Merges Libav commit fff90422. Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- 14 Jun, 2017 1 commit
-
-
James Almer authored
It's been ported to checkasm. Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 08 Jun, 2017 1 commit
-
-
wm4 authored
To be used with the new d3d11 hwaccel decode API. With the new hwaccel API, we don't want surfaces to depend on the decoder (other than the required dimension and format). The old D3D11VA pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the decoder configuration, and thus is incompatible with the new hwaccel API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D and an index. It's simpler and compatible with the new hwaccel API. The introduced hwcontext supports only the new pixfmt. Frame upload code untested. Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with heavy changes/rewrites. Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- 15 May, 2017 1 commit
-
-
wm4 authored
This adds tons of code for no other benefit than making VideoToolbox support conform with the new hwaccel API (using hw_device_ctx and hw_frames_ctx). Since VideoToolbox decoding does not actually require the user to allocate frames, the new code does mostly nothing. One benefit is that ffmpeg_videotoolbox.c can be dropped once generic hwaccel support for ffmpeg.c is merged from Libav. Does not consider VDA or VideoToolbox encoding. Fun fact: the frame transfer functions are copied from vaapi, as the mapping makes copying generic boilerplate. Mapping itself is not exported by the VT code, because I don't know how to test.
-
- 02 Jan, 2017 1 commit
-
-
Thomas Turner authored
Signed-off-by:
Thomas Turner <thomastdt@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 22 Dec, 2016 1 commit
-
-
Diego Biurrun authored
This moves work from the configure to the Make stage where it can be parallelized and ensures that pkgconfig files are updated when library versions change. Bug-Id: 449
-
- 21 Dec, 2016 1 commit
-
-
Thomas Turner authored
Signed-off-by:
Thomas Turner <thomastdt@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 10 Dec, 2016 2 commits
-
-
Wan-Teh Chang authored
Suggested by Diego Biurrun and James Almer. Signed-off-by:
Wan-Teh Chang <wtc@google.com> Signed-off-by:
James Almer <jamrial@gmail.com>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 08 Dec, 2016 1 commit
-
-
Wan-Teh Chang authored
Make the one-time initialization in av_get_cpu_flags() thread-safe. The static variables |flags|, |cpuflags_mask|, and |checked| in libavutil/cpu.c are read and written using normal load and store operations. These are considered as data races. The fix is to use atomic load and store operations. Remove the |checked| variable because the invalid value of -1 for |flags| can be used to indicate the same condition. Rename |flags| to |cpu_flags| and move it to file scope. The fix can be verified by running the libavutil/tests/cpu_init.c test program under ThreadSanitizer: ./configure --toolchain=clang-tsan make libavutil/tests/cpu_init libavutil/tests/cpu_init There should be no warnings from ThreadSanitizer. Co-author: Dmitry Vyukov of Google, who suggested the data race fix. Signed-off-by:
Wan-Teh Chang <wtc@google.com>
-
- 07 Dec, 2016 2 commits
-
-
Vittorio Giovara authored
While no decoder currently exports spherical information, this type represents a frame property that has to be passed through from container to frames. Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
While no decoder currently exports spherical information, this type represents a frame property that has to be passed through from container to frames. Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
- 24 Nov, 2016 1 commit
-
-
James Almer authored
Fixes make checkheaders on systems without the Cuda Toolkit, which was broken after the dynlink changes. Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 23 Nov, 2016 1 commit
-
-
Wan-Teh Chang authored
avutil/tests: Add cpu_init.c to check whether the one-time initialization in av_get_cpu_flags() has data races. Co-author: Dmitry Vyukov of Google Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 02 Oct, 2016 1 commit
-
-
Anton Khirnov authored
It has been replaced by C11 stdatomic.h and is now unused.
-
- 28 Sep, 2016 1 commit
-
-
James Almer authored
See "[FFmpeg-devel] [PATCH] hwcontext: add a QSV implementation" Suggested-by:
nablet developer <sdk@nablet.com> Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 21 Jun, 2016 1 commit
-
-
Anton Khirnov authored
-
- 17 May, 2016 1 commit
-
-
Anton Khirnov authored
-
- 07 Apr, 2016 1 commit
-
-
Diego Biurrun authored
Restore alphabetical order in lists, break overly long lines, do some prettyprinting, add some explanatory section comments, group parts together that belong together logically.
-
- 22 Mar, 2016 1 commit
-
-
Petru Rares Sincraian authored
- Check if av_display_rotation_get() gets the correct degrees - Check if av_display_rotation_set() sets the correct matrix - Check if av_display_matrix_flip() changes correct the matrix Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 19 Mar, 2016 1 commit
-
-
Mark Thompson authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
- 09 Mar, 2016 1 commit
-
-
NagaChaitanya Vellanki authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-