Skip to content

Rgb0 to Yuv420p example #6

Description

@felicemarra

If I have a rgba (or rgb0) frame 1280x720 and I want to convert to yuv420p I tried to use RGBAToI420 function but I don't understand what I have to put in the stride parameters.

libyuv.RGBAToI420( curFrame.data, 1280, planY, 1280, planU, 1280 / 2, planV, 1280 / 2, 1280, 720 );

image

this is the result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions