[Libva] [PATCH v2][libva-intel-driver] vpp chroma-formats: report supported chroma formats for vpp

Charles, Daniel daniel.charles at intel.com
Thu Oct 13 16:58:43 UTC 2016


arghh...this was not the final version

On Thu, Oct 13, 2016 at 9:29 AM, Daniel Charles
<daniel.charles at intel.com> wrote:
> vpp to report the chroma formats according to what's allowed
> by vaCreateSurfaces2
>
> Signed-off-by: Daniel Charles <daniel.charles at intel.com>
> ---
>  src/i965_drv_video.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
> index 3a33356..197066e 100644
> --- a/src/i965_drv_video.c
> +++ b/src/i965_drv_video.c
> @@ -847,8 +847,11 @@ i965_get_default_chroma_formats(VADriverContextP ctx, VAProfile profile,
>          break;
>
>      case VAProfileNone:
> -       if(HAS_VPP_P010(i965))
> +        if(HAS_VPP_P010(i965))
>              chroma_formats |= VA_RT_FORMAT_YUV420_10BPP;
> +
> +        if(HAS_VPP(i965))
> +            chroma_formats |= VA_RT_FORMAT_YUV422 | VA_RT_FORMAT_RGB32;
>          break;
>
>      case VAProfileVP9Profile0:
> --
> 2.5.5
>


More information about the Libva mailing list