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.

(cherry picked from commit b7487f4f3c)
This commit is contained in:
Mark Thompson
2017-03-04 23:57:29 +00:00
parent b22172f6f3
commit 0b1794a43e
4 changed files with 76 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ libavutil: 2015-08-28
API changes, most recent first:
2017-06-14 - xxxxxxx - lavu 55.65.100 - hwcontext.h
Add AV_HWDEVICE_TYPE_NONE, av_hwdevice_find_type_by_name(),
av_hwdevice_get_type_name() and av_hwdevice_iterate_types().
2017-06-14 - xxxxxxx - lavu 55.64.100 - hwcontext.h
Add av_hwdevice_ctx_create_derived().