hwcontext: Make it easier to work with device types
authorMark Thompson <sw@jkqxz.net>
Sat, 4 Mar 2017 23:57:29 +0000 (23:57 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 14 Jun 2017 21:26:29 +0000 (22:26 +0100)
commit0b1794a43e1083644aa3db2a09323681cfe080ec
treef594529bc78f7a2066d038cf526a8686706ec1bc
parentb22172f6f3530b8bd9d1d2c38a31b1e9c3729e42
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 b7487f4f3c39b4b202e1ea7bb2de13902f2dee45)
doc/APIchanges
libavutil/hwcontext.c
libavutil/hwcontext.h
libavutil/version.h