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/qsvdec.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/qsvdec.h') diff --git a/libavcodec/qsvdec.h b/libavcodec/qsvdec.h index 9853591a99..de66a7d1de 100644 --- a/libavcodec/qsvdec.h +++ b/libavcodec/qsvdec.h @@ -56,6 +56,7 @@ typedef struct QSVContext { AVCodecParserContext *parser; AVCodecContext *avctx_internal; enum AVPixelFormat orig_pix_fmt; + uint32_t fourcc; // options set by the caller int async_depth; @@ -67,8 +68,6 @@ typedef struct QSVContext { int nb_ext_buffers; } QSVContext; -int ff_qsv_map_pixfmt(enum AVPixelFormat format); - int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *pkt); -- cgit v1.2.3