summaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
* fifo: Return the correct AVERROR valueLuca Barbato2017-01-261-1/+1
|
* des-test: Pass the proper types to av_des_*() functionsDiego Biurrun2017-01-241-16/+19
| | | | Fixes a number of incompatible pointer type warnings.
* frame: add a cropping rectangle to AVFrameAnton Khirnov2017-01-123-2/+32
| | | | | Extend the width/height doxy to clarify that it should store coded values.
* hmac: Explicitly convert types at function pointer assignmentDiego Biurrun2017-01-091-12/+23
| | | | | Fixes a number of warnings of the type libavutil/hmac.c:61:21: warning: assignment from incompatible pointer type
* crypto: consistently use size_t as type for length parametersDiego Biurrun2017-01-095-4/+30
| | | | size_t is the correct type to use for sizes.
* x86inc: Avoid using eax/rax for storing the stack pointerHenrik Gramner2017-01-091-0/+7
| | | | | | | | | | | When allocating stack space with an alignment requirement that is larger than the current stack alignment we need to store a copy of the original stack pointer in order to be able to restore it later. If we chose to use another register for this purpose we should not pick eax/rax since it can be overwritten as a return value. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* build: Generate pkg-config files from Make and not from configureDiego Biurrun2016-12-221-0/+1
| | | | | | | | 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
* ppc: Merge types_altivec.h into util_altivec.hDiego Biurrun2016-12-142-48/+22
| | | | There is no point in keeping the two separate.
* avutil: fix data race in av_get_cpu_flags()Wan-Teh Chang2016-12-085-18/+86
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add missing #includes for standalone spherical-information-related headersDiego Biurrun2016-12-081-0/+3
|
* lavc: Add spherical packet side data APIVittorio Giovara2016-12-071-1/+1
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: Add AVSphericalMapping type and frame side dataVittorio Giovara2016-12-075-1/+180
| | | | | | | | 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>
* lavu: Add a video section to Doxygen documentationVittorio Giovara2016-12-073-0/+72
| | | | | | | Fill it with AVStereo3D and AVDisplayMatrix documentation. Apply the necessary changes to make verbatim code look good in doxygen. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: Document the color properties enumeration values originVittorio Giovara2016-12-021-0/+3
|
* hwcontext_vaapi: Don't abort on failing to allocate from a fixed-size poolMark Thompson2016-11-261-0/+4
|
* arm: warn/error on movrelx usage problematic with PIC on ELFJanne Grunau2016-11-241-0/+9
| | | | | | The warning has false positives but our asm does not trigger it. For new code false positives can only be avoided by changing the register allocation.
* Drop some bogus Doxygen documentation.Diego Biurrun2016-11-211-2/+0
|
* Fix some mismatches between function parameter and doxygen parameter names.Diego Biurrun2016-11-213-4/+4
|
* hwcontext_dxva2: make sure the sw frame format is the right one during transferAnton Khirnov2016-11-181-0/+6
|
* hwcontext_dxva2: split transfer_data() into upload/download functionsAnton Khirnov2016-11-181-20/+33
| | | | | | Just the presence of a hw frames context is not enough to detect whether the transfer is an upload or a download, because hw frames mapped to system memory will have a hw frames context attached.
* hwcontext_dxva2: fix handling of the mapping flagsAnton Khirnov2016-11-181-3/+9
| | | | | | D3DLOCK_READONLY properly corresponds to the absence of the write flag, not to the presence of the read flag, while D3DLOCK_DISCARD is equivalent to the overwrite flag.
* hwcontext_dxva2: do not assume the destination format during mapping is ↵Anton Khirnov2016-11-181-0/+4
| | | | | | always the right one Handle the cases where it is unsupported or unset.
* arm: Clear the gp register alias at the end of functionsMartin Storsjö2016-11-101-0/+3
| | | | | | | | | | | We reset .Lpic_gp to zero at the start of each function, which means that the logic within movrelx for clearing gp when necessary will be missed. This fixes using movrelx in different functions with a different helper register. Signed-off-by: Martin Storsjö <martin@martin.st>
* aarch64: Add an offset parameter to the movrel macroMartin Storsjö2016-11-101-4/+10
| | | | | | | | | With apple tools, the linker fails with errors like these, if the offset is negative: ld: in section __TEXT,__text reloc 8: symbol index out of range for architecture arm64 Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: Rename ycgco color space appropriatelyVittorio Giovara2016-11-083-3/+4
| | | | | | Planes are ordered as the name suggests now. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixfmt: Add GRAY12Luca Barbato2016-11-073-1/+27
|
* hwcontext_qsv: support frame mappingAnton Khirnov2016-11-071-0/+37
| | | | Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_qsv: transfer data through the child context when VPP failsAnton Khirnov2016-11-071-0/+40
| | | | | | | | Uploading/downloading data through VPP may not work for some formats, in that case we can still try to call av_hwframe_transfer_data() on the child context. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_qsv: do not fail when download/upload VPP session creation failsAnton Khirnov2016-11-071-2/+14
| | | | | | | Certain pixel formats (e.g. P8) might not be supported for download/upload through VPP operations, but can still be used otherwise. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_qsv: add support for the P8 formatAnton Khirnov2016-11-071-0/+1
| | | | | | | | | | | | When using GPU surfaces with QSV, one needs to supply a frame allocator, which will be invoked to pass surface pools to libmfx. For encoding, this allocator gets invoked not only for the pool of input frames, but also for a separate pool of (apparently) reconstructed frames and another pool of MFX_FOURCC_P8, which on Windows needs to return D3DFMT_P8 D3D surfaces. Those are probably used to store the encoded bitstream on the GPU. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_dxva2: add support for the P8 formatAnton Khirnov2016-11-071-2/+18
| | | | | | | This format is used internally by the QSV encoder to store the encoded bitstream. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_dxva2: frame mapping supportAnton Khirnov2016-11-071-21/+68
| | | | Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
* hwcontext_vaapi: Frame mapping supportMark Thompson2016-11-031-41/+52
| | | | | Can map to any supported software format (using a GPU copy if it doesn't actually match the surface format underneath).
* hwcontext: Hardware frame mappingMark Thompson2016-11-034-7/+361
| | | | | | | | | | Adds the new av_hwframe_map() function, which allows mapping between hardware frames and normal memory, along with internal support for implementing it. Also adds av_hwframe_ctx_create_derived(), for creating a hardware frames context associated with one device using frames mapped from another by some hardware-specific means.
* Drop unreachable break and return statementsDiego Biurrun2016-11-031-2/+0
|
* float_dsp: Have implementation match function pointer prototypeDiego Biurrun2016-11-031-1/+1
| | | | | libavutil/x86/float_dsp_init.c(144) : warning C4028: formal parameter 1 different from declaration libavutil/x86/float_dsp_init.c(144) : warning C4028: formal parameter 2 different from declaration
* audio_fifo: Drop write-only variableDiego Biurrun2016-10-271-2/+2
|
* lavu: Add JEDEC P22 color primariesVittorio Giovara2016-10-213-1/+3
|
* emms: Give apriv_emms_yasm() a more general nameDiego Biurrun2016-10-182-4/+4
|
* x86: Add missing colons after assembly labelsDiego Biurrun2016-10-171-2/+2
| | | | | This fixes many warnings of the sort warning: label alone on a line without a colon might be in error
* Add GBRAP12 pixel format supportKieran Kunhya2016-10-123-1/+33
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add GBRP12 pixel format supportMichael Niedermayer2016-10-123-1/+30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixfmt: Document alternative names for smpte 431 and 432Vittorio Giovara2016-10-021-2/+2
|
* hwcontext_vaapi: Enable P010 supportMark Thompson2016-10-021-1/+1
| | | | This is required for 10-bit surfaces.
* lavu: remove the custom atomic APIAnton Khirnov2016-10-027-396/+0
| | | | It has been replaced by C11 stdatomic.h and is now unused.
* buffer: convert to stdatomicAnton Khirnov2016-10-022-12/+14
|
* hwcontext_vaapi: add a quirk for the missing MemoryType attributeAnton Khirnov2016-10-023-2/+14
| | | | | | The Intel binary iHD driver does not support the VASurfaceAttribMemoryType, so surface allocation will fail when using it.
* lavu: Bump version for the 12bit Planar YUV supportLuca Barbato2016-09-271-1/+1
|
* pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-272-0/+29
|
* pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-272-0/+29
|
OpenPOWER on IntegriCloud