Skip to content

missing V4L2_PIX_FMT_Y12 support #16620

@firebladed

Description

@firebladed

I am trying to get an AMG88xx infra red camera working see question which only outputs Y12

after exploring the source for video4linux capture i noticed that cap_v4l.cpp is missing V4L2_PIX_FMT_Y12 but supports V4L2_PIX_FMT_Y10 and V4L2_PIX_FMT_Y16

im not very familiar with the inner working of OpenCV but the supported y10 format is very similar to the Y12 see YUV picture formats the both are stored as 16bit words with the y10 having more zero padding than the y12 which was added by this patch

could i do the same and would anything else be needed to add support for Y12?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions