Skip to content

beginFrameSubscription frame is not ARGB #2919

Closed

Description

@brenca

I've done some tests while I was looking for the FrameSubscription API and in all my examples, the frame always turned out to be BGRA not ARGB. I might be doing something wrong since the function that converts from YUV to RGB states that the data will be ARGB 32, but even when I put the raw frame data to a canvas, I need to change the order of the bytes in the buffer to get the right colors.

Activity

  1. zcbenz commented on Sep 28, 2015

    @zcbenz
    Contributor

    That function is quite old and not used by Chromium for some time, so it is possible that the underlying data of the frame has changed while that function stayed untouched. Maybe we can just change the docs to say it is returning BGRA?

  2. zcbenz commented on Sep 28, 2015

    @zcbenz
    Contributor

    We could state this in the documentation, I guess.

    The research is awesome! Can you create a pull request to document them?

  3. brenca commented on Sep 28, 2015

    @brenca
    ContributorAuthor

    Sure thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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