Skip to content

如何使用cameraunit 获取预览流? #11

@Demoapk

Description

@Demoapk

看代码 com.oplus.ocs.cameraunit.ui.previewsurfaces.view.ImageReaderPreview#drawFrame
这里获取uv分量是
Image.Plane[] planes = one.getPlanes();
ByteBuffer yBuffer = planes[0].getBuffer();
ByteBuffer uvBuffer = planes[2].getBuffer();

为什么 uvbuffer在 planes[2]中 那么 planes[1]是?

Metadata

Metadata

Assignees

No one assigned

    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