What is the difference between MEDIA_BUS_FMT_ and DRM_COLOR_FORMAT_?

381 Views Asked by At

I have to configure the input and output bus formats in the drm bridge driver. I am trying to understand the difference between the two.

1

There are 1 best solutions below

3
On

According to Kernel Org Docs - Kernel Mode Setting (KMS)

format

format used on this bus (one of the MEDIA_BUS_FMT_* format)

This field should not be directly modified by drivers (drm_atomic_bridge_chain_select_bus_fmts() takes care of the bus format negotiation).

and

color_formats

HDMI Color formats, selects between RGB and YCrCb modes. Used DRM_COLOR_FORMAT_ defines, which are not the same ones as used to describe the pixel format in framebuffers, and also don’t match the formats in bus_formats which are shared with v4l.

it seems to be different data structures at a frist glance. Further information might be found under Media Bus Formats.