diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-03-06 17:48:18 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-11 14:59:07 +0200 |
commit | 632ad2248e2e5d8cd4b51e6c87c943a38c3da425 (patch) | |
tree | 13cdd759788553bd29577d23a44eedf0654ab99b /libavcodec/internal.h | |
parent | 9880a0d4b131ef36694d62f78060350a81f08b80 (diff) | |
download | ffmpeg-632ad2248e2e5d8cd4b51e6c87c943a38c3da425.tar.gz |
lavc: Add an internal wrapper around get_format()
It will be useful in the following commits.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 268a7584b2..678d6f10ce 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -187,6 +187,13 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame, enum AVMatrixEncoding matrix_encoding); /** + * Select the (possibly hardware accelerated) pixel format. + * This is a wrapper around AVCodecContext.get_format() and should be used + * instead of calling get_format() directly. + */ +int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt); + +/** * Set various frame properties from the codec context / packet data. */ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame); |