lavu/hwcontext: add AV_HWDEVICE_TYPE_MEDIACODEC
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
This commit is contained in:
committed by
Matthieu Bouron
parent
5450972be4
commit
e4d9f05ca7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user