hwcontext: Make it easier to work with device types

Multimedia / FFmpeg - Mark Thompson [jkqxz.net] - 14 June 2017 17:26 EDT

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)

0b1794a hwcontext: Make it easier to work with device types
doc/APIchanges | 4 ++++
libavutil/hwcontext.c | 44 +++++++++++++++++++++++++++++++++++++++++++-
libavutil/hwcontext.h | 28 ++++++++++++++++++++++++++++
libavutil/version.h | 2 +-
4 files changed, 76 insertions(+), 2 deletions(-)

  • Share