On 18/11/15 11:20, Anton Khirnov wrote:
> ---
>  libavcodec/qsvenc.c       | 71 
> ++++++++++++++++++++++++++++++++++++++++++++++-
>  libavcodec/qsvenc.h       | 28 +++++++++++++++++++
>  libavcodec/qsvenc_h264.c  | 16 +++++++++++
>  libavcodec/qsvenc_hevc.c  |  1 +
>  libavcodec/qsvenc_mpeg2.c |  1 +
>  5 files changed, 116 insertions(+), 1 deletion(-)


> +static int rc_supported(QSVEncContext *q)
> +{
> +    mfxVideoParam param_out = { .mfx.CodecId = q->param.mfx.CodecId };
> +    mfxStatus ret;
> +
> +    ret = MFXVideoENCODE_Query(q->session, &q->param, &param_out);
> +    if (ret < 0 ||
> +        param_out.mfx.RateControlMethod != q->param.mfx.RateControlMethod)
> +        return 0;
> +    return 1;
> +}
> +

Seems Ok to me.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to