lavc: Add an internal wrapper around get_format()

It will be useful in the following commits.
This commit is contained in:
Anton Khirnov
2014-03-06 17:48:18 +01:00
committed by Luca Barbato
parent 9880a0d4b1
commit 632ad2248e
7 changed files with 22 additions and 10 deletions

View File

@@ -186,6 +186,13 @@ int ff_set_dimensions(AVCodecContext *s, int width, int height);
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.
*/