On 09/12/16 16:24, Luca Barbato wrote:
> It is used to allocate scratch buffers by the qsv hwaccel.
> ---
> libavutil/hwcontext_vaapi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
> index b2e212c..e955add 100644
> --- a/libavutil/hwcontext_vaapi.c
> +++ b/libavutil/hwcontext_vaapi.c
> @@ -111,6 +111,8 @@ static struct {
> //MAP(XBGR, RGB32, 0BGR),
> MAP(ARGB, RGB32, ARGB),
> //MAP(XRGB, RGB32, 0RGB),
> + // Special scratch buffer format
> + { VA_FOURCC_P208, VA_FOURCC_P208, AV_PIX_FMT_PAL8 },
> };
> #undef MAP
Um, what? The internet thinks that P208 is a YUV 4:2:2 two-plane format
analogous to NV12 (I guess named like P010), which does not in any way resemble
PAL8.
Also, the middle field there should be a VA_RT_FORMAT (I suggest using the
macro).
Thanks,
- Mark
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel