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.
This commit is contained in:
Mark Thompson 2017-03-04 23:57:29 +00:00
parent b266ad56fe
commit b7487f4f3c
4 changed files with 74 additions and 1 deletions

View file

@ -13,6 +13,10 @@ libavutil: 2015-08-28
API changes, most recent first:
2017-03-xx - xxxxxxx - lavu 55.35.0 - hwcontext.h
Add AV_HWDEVICE_TYPE_NONE, av_hwdevice_find_type_by_name(),
av_hwdevice_get_type_name() and av_hwdevice_iterate_types().
2017-03-xx - xxxxxxx - lavu 55.34.0 - hwcontext.h
Add av_hwdevice_ctx_create_derived().