Message ID | qv2PyTKpWVd6zJqsf3pwRO7gzci3X9OW3r2v3Kt9z1k@cp4-web-037.plabs.ch |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] hwcontext_vaapi: add single-layer P010 format | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 2227d6ed6981..0da1b8635c51 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -993,6 +993,9 @@ static const struct { DRM_MAP(NV12, 1, DRM_FORMAT_NV12), #if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16) DRM_MAP(P010, 2, DRM_FORMAT_R16, DRM_FORMAT_RG1616), +#endif +#if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_P010) + DRM_MAP(P010, 1, DRM_FORMAT_P010), #endif DRM_MAP(BGRA, 1, DRM_FORMAT_ARGB8888), DRM_MAP(BGRX, 1, DRM_FORMAT_XRGB8888),
drm_fourcc.h now has a dedicated format for P010. Allow importing P010 buffers as a single layer instead of two separate R16 and RG1616 layers. Signed-off-by: Simon Ser <contact@emersion.fr> Cc: Mark Thompson <sw@jkqxz.net> Cc: Haihao Xiang <haihao.xiang@intel.com> Cc: Fei Wang <fei.w.wang@intel.com> --- libavutil/hwcontext_vaapi.c | 3 +++ 1 file changed, 3 insertions(+)