[Libva] [PATCH] Fix to use source and output regions size instead of the input output surfaces original size.

Zhao Yakui yakui.zhao at intel.com
Mon Jun 20 06:19:06 UTC 2016


On 06/20/2016 10:50 AM, Lim Siew Hoon wrote:
> From: "Ung, Teng En"<teng.en.ung at intel.com>
>
> Signed-off-by: Ung, Teng En<teng.en.ung at intel.com>

This looks good to me.

Add: Reviewed-by: Zhao Yakui <yakui.zhao at intel.com>

Thanks
     Yakui

> ---
>   src/gen75_vpp_vebox.c | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
> index 8d0569d..17e7eb3 100644
> --- a/src/gen75_vpp_vebox.c
> +++ b/src/gen75_vpp_vebox.c
> @@ -1378,11 +1378,11 @@ int hsw_veb_pre_format_convert(VADriverContextP ctx,
>
>       proc_ctx->format_convert_flags = 0;
>
> -    proc_ctx->width_input   = obj_surf_input->orig_width;
> -    proc_ctx->height_input  = obj_surf_input->orig_height;
> -    proc_ctx->width_output  = obj_surf_output->orig_width;
> -    proc_ctx->height_output = obj_surf_output->orig_height;
> -
> +    proc_ctx->width_input   = proc_ctx->pipeline_param->surface_region->width;
> +    proc_ctx->height_input  = proc_ctx->pipeline_param->surface_region->height;
> +    proc_ctx->width_output  = proc_ctx->pipeline_param->output_region->width;
> +    proc_ctx->height_output = proc_ctx->pipeline_param->output_region->height;
> +
>       /* only partial frame is not supported to be processed */
>       /*
>       assert(proc_ctx->width_input   == proc_ctx->pipeline_param->surface_region->width);



More information about the Libva mailing list