summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* emms: Give apriv_emms_yasm() a more general nameDiego Biurrun2016-10-18
|
* x86: Add missing colons after assembly labelsDiego Biurrun2016-10-17
| | | | | 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-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add GBRP12 pixel format supportMichael Niedermayer2016-10-12
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixfmt: Document alternative names for smpte 431 and 432Vittorio Giovara2016-10-02
|
* hwcontext_vaapi: Enable P010 supportMark Thompson2016-10-02
| | | | This is required for 10-bit surfaces.
* lavu: remove the custom atomic APIAnton Khirnov2016-10-02
| | | | It has been replaced by C11 stdatomic.h and is now unused.
* buffer: convert to stdatomicAnton Khirnov2016-10-02
|
* hwcontext_vaapi: add a quirk for the missing MemoryType attributeAnton Khirnov2016-10-02
| | | | | | 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-27
|
* pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-27
|
* pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-27
|
* pixfmt: Add yuv420p12 pixel formatLuca Barbato2016-09-27
|
* hwcontext_cuda: Add P010 and YUV444P16 pixel formatYogender Kumar Gupta2016-09-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86util: Document SBUTTERFLY macroAlexandra Hájková2016-09-19
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* hwcontext_vdpau: Fix missing subscriptsMark Thompson2016-09-14
| | | | Also remove the redundant casts which were hiding the error here.
* hwcontext_vdpau: Remove duplicate definition of GET_CALLBACKMark Thompson2016-09-14
|
* Drop memalign hackDiego Biurrun2016-09-03
| | | | It no longer serves a useful purpose.
* hwcontext_dxva2: use the special UC copy for downloading framesAnton Khirnov2016-08-31
|
* imgutils: add a function for copying image data from GPU mapped memoryAnton Khirnov2016-08-31
| | | | See https://software.intel.com/en-us/articles/copying-accelerated-video-decode-frame-buffers
* mathematics: Kill non-compiling disabled cruftDiego Biurrun2016-08-17
|
* hwcontext_vaapi: Try the first render node as the default DRM deviceMark Thompson2016-08-13
| | | | | | | | | | If no string argument is supplied when av_hwdevice_ctx_create() is called to create a VAAPI device, we currently only try the default X11 display (that is, $DISPLAY) to find a device, and will therefore fail in the absence of an X server to connect to. Change the logic to also look for a device via the first DRM render node (that is, "/dev/dri/renderD128"), which is probably the right thing to use in most simple configurations which only have one DRM device.
* buffer: fix av_buffer_pool_init2() documentationAnton Khirnov2016-08-11
| | | | | | A non-existent av_buffer_pool_can_uninit() function is mentioned instead of av_buffer_pool_uninit(). Also, this function is to be called by the caller, not the pool itself.
* buffer: fix av_buffer_realloc() when the data is offset wrt buffer startAnton Khirnov2016-08-03
| | | | | | | | | In such a case behave as if the buffer was not reallocatable -- allocate a new one and copy the data (preserving just the part described by the reference passed to av_buffer_realloc). CC: libav-stable@libav.org Reported-By: wm4 <nfxjfg@googlemail.com>
* lavu: add LOCAL_ALIGNED_32James Almer2016-08-03
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Revert "libavutil: Use an intermediate variable in AV_COPY*U"Martin Storsjö2016-08-02
| | | | | | | | | | This reverts commit 014773b66bdff4de24f384066d1a85d2a5bb6774. Since 230b1c070, the bytewise AV_W*() macros only expand their argument once, i.e. doing exactly the same change as was done in the AV_COPY*U macros, so this change is no longer necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
* intreadwrite: Use the __unaligned keyword on MSVC for ARM and x86_64Martin Storsjö2016-08-02
| | | | | | | | | | | | | AV_WN64 is meant for unaligned data, but the existing av_alias* unions (without a definition for the av_alias attribute - we don't have one for MSVC) indicate to the compiler that they would have sufficient alignment for normal access, i.e. the compiler is free to assume 8 byte alignment. On ARM, this makes sure that AV_WN64 (or two consecutive AV_WN32) is done with two str instructions instead of one strd. Signed-off-by: Martin Storsjö <martin@martin.st>
* intreadwrite: Add intermediate variables in the byteswise AV_W*() macrosMartin Storsjö2016-08-02
| | | | | | | | | | | | | | | This avoids issues with expanding the argument multiple times, and makes sure that it is of the right type for the following shifts. Even if the caller of a macro could be expected not to pass parameters that have side effects if expanded multiple times, these fallback codepaths are rarely, if ever, tested, so it is expected that such issues can arise. Thefore, for safety, make sure the fallback codepaths only expand the arguments once. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: Use an intermediate variable in AV_COPY*UMartin Storsjö2016-07-31
| | | | | | | | | | | If AV_RN and AV_WN are macros with multiple individual reads and writes, the previous version of the AV_COPYU macro would fail if the reads and writes overlap. This should not be any less efficient in any case, given a sensibly optimizing compiler. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: Always use some GCC style attributes on clangMartin Storsjö2016-07-21
| | | | | | | | | | | | | | | Clang normally disguises as GCC (defining __GNUC__), and thus get all the normal GCC specific attributes. Clang can also work as a drop-in replacement for MSVC, and in these cases, it doesn't define __GNUC__, but defines _MSC_VER instead. Even in these setups, it still supports the GCC style attributes, thus use them, especially where there isn't any MSVC specific version, or where the MSVC specific version doesn't work on clang (for DECLARE_ASM_CONST). Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: Check for support for the .fpu directiveMartin Storsjö2016-07-21
| | | | | | | When targeting COFF (windows), clang doesn't support this directive (while binutils supports it for all targets). Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: cpu: Detect Conroe CPUs and their slow shuffle unitFiona Glaser2016-07-20
|
* x86: Add SSSE3_SLOW CPU flag and related convenience macrosDiego Biurrun2016-07-20
|
* x86util: Extend SPLATW for avx2James Almer2016-07-18
| | | | | | Integration to Libav by Josh de Kock <josh@itanimul.li>. Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
* hwcontext_qsv: add support for p010Anton Khirnov2016-07-03
|
* hwcontext_vaapi: Add driver quirks to the hwdeviceMark Thompson2016-07-02
| | | | | | | | | | | The driver being used is detected inside av_hwdevice_ctx_init() and the quirks field then set from a table of known device. If this behaviour is unwanted, the user can also set the quirks field manually. Also adds the Intel i965 driver quirk (it does not destroy parameter buffers used in a call to vaRenderPicture()) and detects that driver to set it.
* hwcontext_dxva2: add support for p010Anton Khirnov2016-07-02
|
* pixfmt: add P010 pixel formatHendrik Leppkes2016-07-02
| | | | | | | P010 is the 10-bit variant of NV12 (planar luma, packed chroma), using two bytes per component to store 10-bit data plus 6-bit zeroes in the LSBs. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hwcontext_vaapi: allow transfers to/from any size of sw frameMark Thompson2016-06-28
| | | | | | | | The hw frame used as reference has an attached size but it need not match the actual size of the surface, so enforcing that the sw frame used in copying matches its size exactly is not useful. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hwcontext: allocate the destination frame for the pool sizeAnton Khirnov2016-06-28
| | | | | | The source frame may be cropped, so that its dimensions are smaller than the pool dimensions. The transfer_data API requires the allocated size of the destination frame to be the same as the pool size.
* hwcontext: clarify the behaviour of transfer_data() for cropped framesAnton Khirnov2016-06-28
|
* pixdesc: Fix AVCOL_TRC_BT2020_12 nameVittorio Giovara2016-06-27
|
* pixdesc: Add aliases to SMPTE color propertiesVittorio Giovara2016-06-27
| | | | | Drop ST from names and symbols, it does not add anything distinctive or descriptive.
* hwcontext_vaapi: Return all formats for constraints without configMark Thompson2016-06-21
| | | | | | | | | | | | | | No longer make a dummy device configuration to query. Instead, just return everything we recognise from the whole format list. Also change the device setup code to query that list only, rather than intersecting it with the constraint output. This makes hwupload more usable on mesa/gallium where the video processor only declares support for RGB formats, making it unable to deal with YUV formats before this patch. It might introduce some different trickier failures in the internal upload/download code because the set of allowed formats there has changed, though I didn't find any obvious regressions with i965.
* lavc: export the timestamps when decoding in AVFrame.ptsAnton Khirnov2016-06-21
| | | | | | | | | | | Currently it's exported as AVFrame.pkt_pts, which is also the only use for that field. The reason it is done like this is that lavc used to export various codec-specific "timing" information in AVFrame.pts, which is not done anymore. Since it is confusing to the callers to have a separate field which is used only for decoder timestamps and nothing else, deprecate pkt_pts and use just AVFrame.pts everywhere.
* hwcontext: add a QSV implementationAnton Khirnov2016-06-21
|
* pixdesc: Add new SMPTE 431, 432, and 2085 color propertiesVittorio Giovara2016-06-21
| | | | | | Appeared in H.264 2016/02. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixfmt: Add ARIB STD-B76 color transfer characteristicNeil Birkbeck2016-06-21
| | | | | | | | | | | | | | Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma) based on the standardization in ARIB STD-B67: http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf The choice of enum value of 18 is consistent with HEVC: http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481 And also with latest proposal for color format in mkv: https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixdesc: Use C99 array to list color properties namesVittorio Giovara2016-06-13
|
* build: Change structure of the linker version script templatesDiego Biurrun2016-05-29
| | | | | | Split version files into one line per symbol/directive to allow compatibility with the Solaris linker without preprocessing and eliminate $ from version file templates to simplify the postprocessing shell command.