summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext.h
Commit message (Collapse)AuthorAgeFilesLines
* hwcontext: Fix documentation for av_hwdevice_ctx_alloc()Jun Zhao2018-02-041-1/+2
| | | | | | | From ffmpeg commit 9365dfcbf665b83b2e60c5ec5e2abf1f0a49e2c3. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavu: add new D3D11 pixfmt and hwcontextwm42017-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | 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>
* hwcontext: Improve allocation in derived contextsMark Thompson2017-04-301-1/+3
| | | | | | | Use the flags argument of av_hwframe_ctx_create_derived() to pass the mapping flags which will be used on allocation. Also, set the format and hardware context on the allocated frame automatically - the user should not be required to do this themselves.
* hwcontext: Move NONE to the be the first member of AVHWDeviceTypeMark Thompson2017-03-271-1/+1
| | | | Also use that to fix a warning in av_hwdevice_get_type_name().
* hwcontext: Make it easier to work with device typesMark Thompson2017-03-201-0/+28
| | | | | | 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-201-0/+26
| | | | | Creates a new device context from another of a different type which refers to the same underlying hardware.
* Drop some bogus Doxygen documentation.Diego Biurrun2016-11-211-2/+0
|
* Fix some mismatches between function parameter and doxygen parameter names.Diego Biurrun2016-11-211-1/+1
|
* hwcontext: Hardware frame mappingMark Thompson2016-11-031-0/+87
| | | | | | | | | | 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.
* hwcontext: clarify the behaviour of transfer_data() for cropped framesAnton Khirnov2016-06-281-0/+8
|
* hwcontext: add a QSV implementationAnton Khirnov2016-06-211-0/+1
|
* hwcontext: add a function for opening devicesAnton Khirnov2016-05-261-0/+28
|
* hwcontext: add a dxva2 implementationAnton Khirnov2016-05-171-0/+1
|
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-2/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavu: VAAPI hwcontext implementationMark Thompson2016-03-191-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavu: add a way to query hwcontext frame constraintsMark Thompson2016-03-191-0/+69
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hwcontext: add a CUDA implementationAnton Khirnov2016-02-141-0/+1
|
* lavu: add a framework for handling hwaccel framesAnton Khirnov2016-02-141-0/+328