[FFmpeg-devel] [PATCH 5/5] lavd: Add KMS frame grabber
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Sep 15 00:30:36 EEST 2017
2017-09-07 23:56 GMT+02:00 Mark Thompson <sw at jkqxz.net>:
> +static const struct {
> + enum AVPixelFormat pixfmt;
> + uint32_t drm_format;
> +} kmsgrab_formats[] = {
> + { AV_PIX_FMT_GRAY8, DRM_FORMAT_R8 },
> + { AV_PIX_FMT_GRAY16LE, DRM_FORMAT_R16 },
> + { AV_PIX_FMT_RGB24, DRM_FORMAT_RGB888 },
> + { AV_PIX_FMT_BGR24, DRM_FORMAT_BGR888 },
> + { AV_PIX_FMT_0RGB, DRM_FORMAT_XRGB8888 },
> + { AV_PIX_FMT_0BGR, DRM_FORMAT_XBGR8888 },
> + { AV_PIX_FMT_RGB0, DRM_FORMAT_RGBX8888 },
> + { AV_PIX_FMT_BGR0, DRM_FORMAT_BGRX8888 },
> + { AV_PIX_FMT_ARGB, DRM_FORMAT_ARGB8888 },
> + { AV_PIX_FMT_ABGR, DRM_FORMAT_ABGR8888 },
> + { AV_PIX_FMT_RGBA, DRM_FORMAT_RGBA8888 },
> + { AV_PIX_FMT_BGRA, DRM_FORMAT_BGRA8888 },
> + { AV_PIX_FMT_YUYV422, DRM_FORMAT_YUYV },
> + { AV_PIX_FMT_YVYU422, DRM_FORMAT_YVYU },
> + { AV_PIX_FMT_UYVY422, DRM_FORMAT_UYVY },
> + { AV_PIX_FMT_NV12, DRM_FORMAT_NV12 },
> + { AV_PIX_FMT_YUV420P, DRM_FORMAT_YUV420 },
> + { AV_PIX_FMT_YUV422P, DRM_FORMAT_YUV422 },
> + { AV_PIX_FMT_YUV444P, DRM_FORMAT_YUV444 },
Which of those were you able to test?
I find the comments in the header file very misleading:
What is "little-endian 8:8:8:8 ARGB"?
Thank you, Carl Eugen
More information about the ffmpeg-devel
mailing list