[FFmpeg-devel] [PATCH v1 3/3] lavfi/{denoise, procamp, scale, sharpness}_vaapi: Add passthrough mode

Eoff, Ullysses A ullysses.a.eoff at intel.com
Tue Jun 13 19:17:57 EEST 2023


> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Fei Wang
> Sent: Monday, May 29, 2023 8:30 PM
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH v1 3/3] lavfi/{denoise, procamp, scale, sharpness}_vaapi: Add passthrough mode

> @@ -188,11 +194,14 @@ static av_cold int denoise_vaapi_init(AVFilterContext *avctx)
>  static av_cold int sharpness_vaapi_init(AVFilterContext *avctx)
>  {
>      VAAPIVPPContext *vpp_ctx = avctx->priv;
> +    SharpnessVAAPIContext *ctx = avctx->priv;
> 
>      ff_vaapi_vpp_ctx_init(avctx);
>      vpp_ctx->pipeline_uninit     = ff_vaapi_vpp_pipeline_uninit;
>      vpp_ctx->build_filter_params = sharpness_vaapi_build_filter_params;
>      vpp_ctx->output_format       = AV_PIX_FMT_NONE;
> +    if (!ctx->sharpness)
> +        vpp_ctx->passthrough = 1;

[UAE] It should be passthrough for the default value.  SHARPNESS_DEFAULT = 44 



More information about the ffmpeg-devel mailing list