[FFmpeg-devel] [PATCH 08/14] avcodec: add AV_HWACCEL_FLAG_ALLOW_SOFTWARE
wbsecg1 at gmail.com
wbsecg1 at gmail.com
Fri Dec 15 09:03:55 EET 2017
From: wang-bin <wbsecg1 at gmail.com>
a hw decoder may have software or hybrid implementation, for example videotoolbox hevc.
the performance may be better than ffmpeg sw decoder.
---
libavcodec/avcodec.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index ce089b7c4a..6d1f5ee532 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3725,6 +3725,10 @@ typedef struct AVHWAccel {
*/
#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2)
+/**
+ * Hardware acceleration can use it's software implementation.
+ */
+#define AV_HWACCEL_FLAG_ALLOW_SOFTWARE (1 << 3)
/**
* @}
*/
--
2.15.1
More information about the ffmpeg-devel
mailing list