lavu/hwcontext: add AV_HWDEVICE_TYPE_MEDIACODEC

Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
This commit is contained in:
Aman Gupta
2017-12-03 17:32:21 -08:00
committed by Matthieu Bouron
parent 5450972be4
commit e4d9f05ca7
8 changed files with 99 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ static const HWContextType * const hw_table[] = {
#endif
#if CONFIG_VIDEOTOOLBOX
&ff_hwcontext_type_videotoolbox,
#endif
#if CONFIG_MEDIACODEC
&ff_hwcontext_type_mediacodec,
#endif
NULL,
};
@@ -69,6 +72,7 @@ static const char *const hw_type_names[] = {
[AV_HWDEVICE_TYPE_VAAPI] = "vaapi",
[AV_HWDEVICE_TYPE_VDPAU] = "vdpau",
[AV_HWDEVICE_TYPE_VIDEOTOOLBOX] = "videotoolbox",
[AV_HWDEVICE_TYPE_MEDIACODEC] = "mediacodec",
};
enum AVHWDeviceType av_hwdevice_find_type_by_name(const char *name)