Skip to content

Q: Yuv converter #277

Closed
Closed
@gordinmitya

Description

@gordinmitya

Hello, thank you for your job!
I have a question related to camera2/camerax YUV format.
In documentation it is specified as YUV_420_888 generic standard, so in theory an image may came in NV21 (U and V are interleaved, pixelStride=2) or I420 (U and V are separated, pixelStride=1).
The question: is there actually devices which provide images in I420 format? Or we can always be sure that image is NV21?

Sub-question: why do you need to copy pixel-by-pixel when pixelStride == outputStride == 2 (NV21 case) here while you can just copy the whole uvuvuvuv... row?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions