Skip to content

native MIPI CSI-2 order support #636

@niall-us

Description

@niall-us

Is your feature request related to a problem? Please describe.
I often work with MIPI CSI-2 data from cameras. Certain formats (bit-depths that are not power-of-2) have a non-obvious order that places MS bytes first, then groups residual bits together at the end.

MIPI also has two apparently unique YUV420 formats

Describe the solution you'd like
For the following formats, support MIPI CSI-2 ordering as an option:
RAW10/12/14/16
RAW20/24/28
YUV420_8_L ('legacy' uyy / vyy packed)
YUV420_8 (yy odd lines uyvy even lines)
YUV420_10 (like 8 bit but CSI2-swizzled bit ordering)
YUV422_8 (exactly the same as UYVY)
YUV422_10 (like 8 bit but with CSI2-swizzled bit ordering)

Describe alternatives you've considered
PixelViewer understands RAW8/10/12/16 in MIPI CSI-2 order
For the other formats I've written converters to use NV12, YV12, P010 and P210 fourcc formats

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions