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>
Mon, 20 Mar 2017 23:15:43 +0000 (23:15 +0000)
commitb7487f4f3c39b4b202e1ea7bb2de13902f2dee45
tree1acb24ecaa19ce105040f71db8ddc87a379b5e8a
parentb266ad56fe0e4ce5bb70118ba2e2b1dabfaf76ce
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.
doc/APIchanges
libavutil/hwcontext.c
libavutil/hwcontext.h
libavutil/version.h