Mark Thompson
1bd986ed4b
hwcontext: Move NONE to the be the first member of AVHWDeviceType
Also use that to fix a warning in av_hwdevice_get_type_name().
8 years ago
Mark Thompson
b7487f4f3c
hwcontext: Make it easier to work with device types
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.
8 years ago
Mark Thompson
b266ad56fe
hwcontext: Add device derivation
Creates a new device context from another of a different type which
refers to the same underlying hardware.
8 years ago
Diego Biurrun
81a3c42abe
Drop some bogus Doxygen documentation.
8 years ago
Diego Biurrun
a1d9de304f
Fix some mismatches between function parameter and doxygen parameter names.
8 years ago
Mark Thompson
d06aa24ba5
hwcontext: Hardware frame mapping
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.
8 years ago
Anton Khirnov
5fcae3b3f9
hwcontext: clarify the behaviour of transfer_data() for cropped frames
9 years ago
Anton Khirnov
59e7361cc7
hwcontext: add a QSV implementation
9 years ago
Anton Khirnov
1c9e8616c5
hwcontext: add a function for opening devices
9 years ago
Anton Khirnov
c46db38cde
hwcontext: add a dxva2 implementation
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Mark Thompson
551c6775ab
lavu: VAAPI hwcontext implementation
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
b1f01e85a9
lavu: add a way to query hwcontext frame constraints
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Khirnov
ad884d1002
hwcontext: add a CUDA implementation
9 years ago
Anton Khirnov
89923e418b
lavu: add a framework for handling hwaccel frames
9 years ago