summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* Merge commit '8e2346154e6d58b733fd20326ce706f82fd91b3e'James Almer2017-10-21
|\ | | | | | | | | | | | | * commit '8e2346154e6d58b733fd20326ce706f82fd91b3e': libavutil: Hook up the rest of the gcc specific attributes to clang as well Merged-by: James Almer <jamrial@gmail.com>
| * libavutil: Hook up the rest of the gcc specific attributes to clang as wellMartin Storsjö2017-03-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hook up all attributes that don't have a MSVC specific version at the moment. See f637046d313 for details. These don't seem to be critical for building with clang in MSVC mode though, and thus haven't been hooked up until now. These seem to build fine with as old clang as 3.3 at least. (clang 3.3 disguises itself as gcc 4.2 normally, so all of these have been used for clang before, except for av_cold.) The clang version numbers themselves are useless for detecting what attributes are available, since Apple's clang builds use a completely different versioning (presenting itself as e.g. clang 8.0 instead of 3.8). Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '3aa9c523e9cf4f4a5e239ac737281e096c884907'James Almer2017-10-21
|\| | | | | | | | | | | | | * commit '3aa9c523e9cf4f4a5e239ac737281e096c884907': libavutil: Define the noreturn attribute for clang in MSVC mode as well Merged-by: James Almer <jamrial@gmail.com>
| * libavutil: Define the noreturn attribute for clang in MSVC mode as wellMartin Storsjö2017-03-21
| | | | | | | | | | | | | | | | | | | | | | This is a follow-up to f637046d313. Without the noreturn attribute set, avconv_opt.c fails to build after d2e6dd32a44 with the error "control may reach end of non-void function". By making sure the noreturn attribute is set properly, this compiles as intended. Signed-off-by: Martin Storsjö <martin@martin.st>
| * hwcontext: Make it easier to work with device typesMark Thompson2017-03-20
| | | | | | | | | | | | Adds functions to convert to/from strings and a function to iterate over all supported device types. Also adds a new invalid type AV_HWDEVICE_TYPE_NONE, which acts as a sentinel value.
| * hwcontext: Add device derivationMark Thompson2017-03-20
| | | | | | | | | | Creates a new device context from another of a different type which refers to the same underlying hardware.
* | Merge commit '994c4bc10751e39c7ed9f67ffd0c0dea5223daf2'James Almer2017-10-21
|\| | | | | | | | | | | | | | | | | * commit '994c4bc10751e39c7ed9f67ffd0c0dea5223daf2': x86util: Port all macros to cpuflags See d5f8a642f6eb1c6e305c41dabddd0fd36ffb3f77 Merged-by: James Almer <jamrial@gmail.com>
| * x86util: Port all macros to cpuflagsDiego Biurrun2017-03-14
| | | | | | | | | | | | Also do some small cosmetic changes: Drop pointless _MMX suffix from ABSD2 macro name, drop pointless check for MMX support, we always assume MMX is available in our SIMD code, fix spelling.
| * spherical: Add tiled equirectangular type and projection-specific propertiesVittorio Giovara2017-03-07
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * libavutil: add av_mod_uintp2James Almer2017-03-01
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
| * intmath: add faster clz supportGanesh Ajjanagadde2017-03-01
| |
| * build: Generalize yasm/nasm-related variable namesDiego Biurrun2017-03-01
| | | | | | | | None of them are specific to the YASM assembler.
| * aarch64: Add parentheses around the offset parameter in movrelMartin Storsjö2017-02-16
| | | | | | | | | | | | This fixes building with clang for linux with PIC enabled. Signed-off-by: Martin Storsjö <martin@martin.st>
| * hwcontext_vaapi: Try to support the VDPAU wrapperMark Thompson2017-02-13
| | | | | | | | | | | | | | | | The driver is somewhat bitrotten (not updated for years) but is still usable for decoding with this change. To support it, this adds a new driver quirk to indicate no support at all for surface attributes. Based on a patch by wm4 <nfxjfg@googlemail.com>.
| * hwcontext_dxva2: support D3D9Exwm42017-02-11
| | | | | | | | | | | | | | | | D3D9Ex uses different driver paths. This helps with "headless" configurations when no user logs in. Plain D3D9 device creation will fail if no user is logged in, while it works with D3D9Ex. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * AVFrame: add an opaque_ref fieldwm42017-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an extended version of the AVFrame.opaque field, which can be used to attach arbitrary user information to an AVFrame. The usefulness of the opaque field is rather limited, because it can store only up to 32 bits of information (or 64 bit on 64 bit systems). It's not possible to set this field to a memory allocation, because there is no way to deallocate it correctly. The opaque_ref field circumvents this by letting the user set an AVBuffer, which makes the user data refcounted. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Bump version for master after 3.4 branchpointMichael Niedermayer2017-10-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Bump minor versions for branching 3.4Michael Niedermayer2017-10-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/frame: Fix project nameMichael Niedermayer2017-10-11
| | | | | | | | | | | | Issue introduced in: caa12027baf1180453846c58da08fc87accc0ff6 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mips: Improve avc bi-weighted mc msa functionsKaustubh Raste2017-10-10
| | | | | | | | | | | | | | | | Replace generic with block size specific function. 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>
* | hwcontext_vaapi: Add support for mapping to DRM objectsMark Thompson2017-10-09
| | | | | | | | Uses vaExportSurfaceHandle() from libva2.
* | hwcontext: Perform usual initialisation on derived device contextsMark Thompson2017-10-09
| | | | | | | | | | | | | | The initialisation should be common. For libmfx, it was previously happening in the derivation function and this moves it out. For VAAPI, it fixes some failures when deriving from a DRM device because this initialisation did not run.
* | hwcontext_vaapi: Set message callbacks on internally-created devicesMark Thompson2017-10-09
| | | | | | | | | | The message callbacks are library-safe in libva2, so we can now use them.
* | hwcontext_vaapi: Factorise out common connection codeMark Thompson2017-10-09
| | | | | | | | | | This was duplicated between normal device creation and creation by derivation from a DRM device.
* | lavu/opt: Use "&&" instead of "*" in boolean expression.Carl Eugen Hoyos2017-10-08
| | | | | | | | | | Fixes the following warning: libavutil/opt.c:101:47: warning: '*' in boolean context, suggest '&&' instead
* | lavu/utils: Use "__asm__" like everywhere else in the codebase.Carl Eugen Hoyos2017-10-08
| |
* | Merge commit '4de220d2e3751c459f8739a08ac6ca52e63eba30'James Almer2017-09-27
|\| | | | | | | | | | | | | | | | | * commit '4de220d2e3751c459f8739a08ac6ca52e63eba30': frame: allow align=0 (meaning automatic) for av_frame_get_buffer() See https://ffmpeg.org/pipermail/ffmpeg-devel/2017-September/215834.html Merged-by: James Almer <jamrial@gmail.com>
| * frame: allow align=0 (meaning automatic) for av_frame_get_buffer()Anton Khirnov2017-02-11
| | | | | | | | | | This will avoid every caller from hardcoding some specific alignment, which may break in the future with new instruction sets.
* | avutil/cpu: split flag checks per arch in av_cpu_max_align()James Almer2017-09-27
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'e6bff23f1e11aefb16a2b5d6ee72bf7469c5a66e'James Almer2017-09-27
|\| | | | | | | | | | | | | | | | | | | * commit 'e6bff23f1e11aefb16a2b5d6ee72bf7469c5a66e': cpu: add a function for querying maximum required data alignment Adapted to work with the arbitrary runtime cpuflag changes av_force_cpu_flags() can generate. Merged-by: James Almer <jamrial@gmail.com>
| * cpu: add a function for querying maximum required data alignmentAnton Khirnov2017-02-11
| |
* | Merge commit 'ce6d72d10776b03c6780d4aa676414ce002285d4'James Almer2017-09-27
|\| | | | | | | | | | | | | * commit 'ce6d72d10776b03c6780d4aa676414ce002285d4': imgutils: Document av_image_get_buffer_size() Merged-by: James Almer <jamrial@gmail.com>
| * imgutils: Document av_image_get_buffer_size()Vittorio Giovara2017-02-10
| |
* | avcodec/mips: Improve avc weighted mc msa functionsKaustubh Raste2017-09-27
| | | | | | | | | | | | | | | | Replace generic with block size specific function. 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>
* | Merge commit '7abdd026df6a9a52d07d8174505b33cc89db7bf6'James Almer2017-09-26
|\| | | | | | | | | | | | | * commit '7abdd026df6a9a52d07d8174505b33cc89db7bf6': asm: Consistently uppercase SECTION markers Merged-by: James Almer <jamrial@gmail.com>
| * asm: Consistently uppercase SECTION markersDiego Biurrun2017-02-03
| |
| * hwcontext_cuda: implement frames_get_constraintswm42017-02-01
| | | | | | | | | | | | Copied and modified from hwcontext_qsv.c. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3'James Almer2017-09-26
|\| | | | | | | | | | | | | * commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3': Mark some arrays that never change as const. Merged-by: James Almer <jamrial@gmail.com>
| * Mark some arrays that never change as const.Anton Khirnov2017-02-01
| |
| * fifo: Return the correct AVERROR valueLuca Barbato2017-01-26
| |
* | avcodec/mips: Improve hevc uni-w copy mc msa functionsKaustubh Raste2017-09-24
| | | | | | | | | | | | | | | | | | | | Load the specific destination bytes instead of MSA load and pack. Pack the data to half word before clipping. Use immediate unsigned saturation for clip to max saving one vector register. 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>
* | pixdesc: Add API to map color property names to enum valuesVittorio Giovara2017-09-21
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avutil/hwcontext_dxva2: return an error when buffer allocation failsJames Almer2017-09-19
| | | | | | | | | | | | | | This also prevents the use of an uninitialized variable. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* | hwcontext_vaapi: Fix DRM format mappingMark Thompson2017-09-19
| |
* | avutil/imgutils: Fix warning: missing braces around initializerMichael Niedermayer2017-09-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mips: Improve hevc sao band filter msa functionsKaustubh Raste2017-09-15
| | | | | | | | | | | | | | | | 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>
* | hwcontext_vaapi: Fix build failure with old libdrmJun Zhao2017-09-14
| | | | | | | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | hwcontext_vaapi: Add DRM to VAAPI mappingMark Thompson2017-09-13
| |
* | lavu: Add DRM hwcontextMark Thompson2017-09-13
| |
* | add missing ignore filesJesse Liu2017-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>