Skip to content

Is the usage of libyuv::FOURCC_ARGB valid? #76

@bglgwyng

Description

@bglgwyng

I'm using Galaxy S20 and on this device the example app looks like

Screenshot_20240923_222734_VisionCameraResizePluginExample

which doesn't seem to have the right channel applied.

So I investigated the code and found this line.
https://github.com/mrousavy/vision-camera-resize-plugin/blob/main/android/src/main/cpp/ResizePlugin.cpp#L183
I modified libyuv::FOURCC_ARGB to libyuv::FOURCC_RGBA and now it works properly.

Does someone have the same experience? Or it's working well on devices other than Galaxy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions