From 632ad2248e2e5d8cd4b51e6c87c943a38c3da425 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 6 Mar 2014 17:48:18 +0100 Subject: lavc: Add an internal wrapper around get_format() It will be useful in the following commits. --- libavcodec/internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/internal.h') diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 268a758..678d6f1 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); -- cgit v1.1