summaryrefslogtreecommitdiff
path: root/libavcodec/qsv_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-06-22 11:41:26 +0200
committerAnton Khirnov <anton@khirnov.net>2016-07-03 09:13:29 +0200
commit536bb17e9659c5ed7576a218d4085cdd6d5742fa (patch)
tree2cd8eb3c14f5552967172f635bbfd1c833b7ec2b /libavcodec/qsv_internal.h
parentd20c118975220a0256027d1c2410bade94b8534d (diff)
downloadffmpeg-536bb17e9659c5ed7576a218d4085cdd6d5742fa.tar.gz
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.
Diffstat (limited to 'libavcodec/qsv_internal.h')
-rw-r--r--libavcodec/qsv_internal.h2
1 files changed, 2 insertions, 0 deletions
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);