[Libva] [PATCH intel-driver] i965_drv: fix cb_cr_height for YUV422 formats

Xiang, Haihao haihao.xiang at intel.com
Fri Jul 22 06:09:40 UTC 2016


Applied.

Thanks
Haihao

> YUV422 has full vertical chroma resolution, not half.
> 
> Signed-off-by: Scott D Phillips <scott.d.phillips at intel.com>
> ---
>  src/i965_drv_video.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
> index ad48f22..ec67848 100644
> --- a/src/i965_drv_video.c
> +++ b/src/i965_drv_video.c
> @@ -4118,7 +4118,7 @@ i965_check_alloc_surface_bo(VADriverContextP
> ctx,
>              obj_surface->y_cb_offset = 0; 
>              obj_surface->y_cr_offset = 0; 
>              obj_surface->cb_cr_width = obj_surface->orig_width / 2;
> -            obj_surface->cb_cr_height = obj_surface->orig_height /
> 2;
> +            obj_surface->cb_cr_height = obj_surface->orig_height;
>              region_width = obj_surface->width;
>              region_height = obj_surface->height;
>              


More information about the Libva mailing list