Re: [PATCH v6] media: vimc: get pixformat info from v4l2_format_info

From: Shuah Khan
Date: Tue Apr 26 2022 - 11:34:34 EST

Hi Carlos,

On 4/26/22 3:02 AM, Hans Verkuil wrote:
Hi Carlos,

On 11/03/2022 12:16, Carlos E. C. Barbosa wrote:
Removes overlapping structures

Repurposes vimc_pix_map to strictly mapping formats, making it
a local structure.

Replaces all of its functions and remaps the calls to the matching


Changes in v6:
- replace all vimc_pix_map returning functions with v4l2_format_info
ones (as previously suggested by Dafna)
- adds is_on_table functions to verify support (to be used only when
no other info is required)

Changes in v5:
- .bayer member was removed and replaced by v4l2 functions calls

Changes in v4:
- Unused variables were removed

Changes in v3:
- Change declaration order of variables and some minor style changes

Changes in v2:
- Const qualifiers are not removed
- Bayer flag is kept
- Unnecessary changes are not made anymore

v4l2-compliance -m /dev/media0 output:

Signed-off-by: Carlos E. C. Barbosa <>

Your Signed-off-by should go before the '---'.

Also, it doesn't match your 'From' email.



Sorry for the delay on this. In addition to Han's comments,
please provide more information in your commit log on the
changes and how they help in more detail. Are these changes
fix any problems you may have found.

-- Shuah