From 536bb17e9659c5ed7576a218d4085cdd6d5742fa Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 22 Jun 2016 11:41:26 +0200 Subject: qsvdec: make ff_qsv_map_pixfmt() return a MFX fourcc as well Stop hardcoding NV12. Also, move this function to the shared code, it will be used by the encoder as well. --- libavcodec/qsv_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/qsv_internal.h') diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index ceee8df1dd..e8657417f3 100644 --- a/libavcodec/qsv_internal.h +++ b/libavcodec/qsv_internal.h @@ -61,6 +61,8 @@ int ff_qsv_error(int mfx_err); int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id); +int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc); + int ff_qsv_init_internal_session(AVCodecContext *avctx, mfxSession *session, const char *load_plugins); -- cgit v1.2.3