lavc: Add an internal wrapper around get_format()
It will be useful in the following commits.
This commit is contained in:

committed by
Luca Barbato

parent
9880a0d4b1
commit
632ad2248e
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user