New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 646136 link

Starred by 4 users

Issue metadata

Status: Archived
Owner:
Closed: Sep 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

YUV GL images created with swapped planes for YVU formats.

Project Member Reported by dcasta...@chromium.org, Sep 12 2016

Issue description

According to EXT_image_dma_buf_import spec planes passed to createImageKHR should be in Y, U, V order, regardless of whether a YUV or YVU fourcc is passed.

Chrome is currently passing Y, V, U for YVU formats.
This is the cause of videos with wrong colors on arm devices.
 
Labels: -Pri-3 Pri-1
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 12 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/38a2205e8f3f551e6059fe657c2c8da246a8ba45

commit 38a2205e8f3f551e6059fe657c2c8da246a8ba45
Author: dcastagna <dcastagna@chromium.org>
Date: Mon Sep 12 22:40:37 2016

ozone: Sort U and V plane when creating an image.

By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
format, the plane 1 and 2 should always be U and V.

Intel mesa currently doesn't follow the spec and does the swap on its
own.

BUG= 646136 ,  646137 , b/31164247
TEST=External video on samus.

Review-Url: https://codereview.chromium.org/2295943002
Cr-Commit-Position: refs/heads/master@{#418082}

[modify] https://crrev.com/38a2205e8f3f551e6059fe657c2c8da246a8ba45/ui/ozone/gl/gl_image_ozone_native_pixmap.cc

Labels: Merge-Request-53 Merge-Request-54
Labels: -Merge-Request-53 Merge-Approved-53
Approving merge to M53 cros.
Project Member

Comment 5 by bugdroid1@chromium.org, Sep 13 2016

Labels: -merge-approved-53 merge-merged-2785
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/862f480cbc8ba5c45f5883a9061424d4e861ce29

commit 862f480cbc8ba5c45f5883a9061424d4e861ce29
Author: dcastagna <dcastagna@chromium.org>
Date: Tue Sep 13 20:25:40 2016

ozone: Sort U and V plane when creating an image.

Manual merge of crrev.com/2295943002 to M53.

By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
format, the plane 1 and 2 should always be U and V.

Intel mesa currently doesn't follow the spec and does the swap on its
own.

BUG= 646136 ,  646137 , b/31164247
TEST=External video on samus.
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2295943002
Review-Url: https://codereview.chromium.org/2334143003
Cr-Original-Commit-Position: refs/heads/master@{#418082}
Cr-Commit-Position: refs/branch-heads/2785@{#882}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}

[modify] https://crrev.com/862f480cbc8ba5c45f5883a9061424d4e861ce29/ui/gl/gl_image_ozone_native_pixmap.cc

Cc: zelidrag@chromium.org

Comment 7 by dimu@chromium.org, Sep 14 2016

Labels: -Merge-Request-54 Merge-Review-54 Hotlist-Merge-Review
[Automated comment] There appears to be on-going work (i.e. bugroid changes), needs manual review.
Status: Fixed (was: Started)
Labels: -Merge-Review-54 Merge-Approved-54
This change meets the bar and is approved for merging into M54 (branch 2840)
Project Member

Comment 10 by bugdroid1@chromium.org, Sep 14 2016

Labels: -merge-approved-54 merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/04e547f5f719b9452ea11b9062a528b48008f424

commit 04e547f5f719b9452ea11b9062a528b48008f424
Author: dcastagna <dcastagna@chromium.org>
Date: Wed Sep 14 18:05:19 2016

ozone: Sort U and V plane when creating an image.

By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
format, the plane 1 and 2 should always be U and V.

Intel mesa currently doesn't follow the spec and does the swap on its
own.

BUG= 646136 ,  646137 , b/31164247
TEST=External video on samus.
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2295943002
Cr-Commit-Position: refs/heads/master@{#418082}
(cherry picked from commit 38a2205e8f3f551e6059fe657c2c8da246a8ba45)

Review-Url: https://codereview.chromium.org/2339963002
Cr-Commit-Position: refs/branch-heads/2840@{#366}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/04e547f5f719b9452ea11b9062a528b48008f424/ui/ozone/gl/gl_image_ozone_native_pixmap.cc

Project Member

Comment 11 by bugdroid1@chromium.org, Sep 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dcbd52411167a33d3672056337e800fbce2a49ff

commit dcbd52411167a33d3672056337e800fbce2a49ff
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 15 16:03:25 2016

Revert of ozone: Sort U and V plane when creating an image. (patchset #1 id:1 of https://codereview.chromium.org/2334143003/ )

Reason for revert:
This manual merge is broken.

It is missing the attribute EGL_DMA_BUF_PLANE?_FD_EXT.

Original issue's description:
> ozone: Sort U and V plane when creating an image.
>
> Manual merge of crrev.com/2295943002 to M53.
>
> By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
> format, the plane 1 and 2 should always be U and V.
>
> Intel mesa currently doesn't follow the spec and does the swap on its
> own.
>
> BUG= 646136 ,  646137 , b/31164247
> TEST=External video on samus.
> NOTRY=true
> NOPRESUBMIT=true
>
> Review-Url: https://codereview.chromium.org/2295943002
> Cr-Commit-Position: refs/heads/master@{#418082}

TBR=reveman@chromium.org
NOTRY=true
NOPRESUBMIT=true

# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG= 646136 ,  646137 , b/31164247

Review-Url: https://codereview.chromium.org/2341083002
Cr-Commit-Position: refs/branch-heads/2785@{#898}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}

[modify] https://crrev.com/dcbd52411167a33d3672056337e800fbce2a49ff/ui/gl/gl_image_ozone_native_pixmap.cc

Project Member

Comment 12 by bugdroid1@chromium.org, Sep 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1ac2dd14b57a99de056ad172923602bf51765d50

commit 1ac2dd14b57a99de056ad172923602bf51765d50
Author: dcastagna <dcastagna@chromium.org>
Date: Thu Sep 15 16:12:22 2016

ozone: Sort U and V plane when creating an image.

Manual merge of crrev.com/2295943002 to M53.

By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
format, the plane 1 and 2 should always be U and V.

Intel mesa currently doesn't follow the spec and does the swap on its
own.

BUG= 646136 ,  646137 , b/31164247
TEST=External video on samus.
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2295943002
Review-Url: https://codereview.chromium.org/2334143003
Cr-Original-Commit-Position: refs/heads/master@{#418082}
Cr-Commit-Position: refs/branch-heads/2785@{#899}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}

[modify] https://crrev.com/1ac2dd14b57a99de056ad172923602bf51765d50/ui/gl/gl_image_ozone_native_pixmap.cc

Project Member

Comment 13 by bugdroid1@chromium.org, Oct 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/04e547f5f719b9452ea11b9062a528b48008f424

commit 04e547f5f719b9452ea11b9062a528b48008f424
Author: dcastagna <dcastagna@chromium.org>
Date: Wed Sep 14 18:05:19 2016

ozone: Sort U and V plane when creating an image.

By EGL_EXT_image_dma_buf_import spec, if there is a YUV multi-planar
format, the plane 1 and 2 should always be U and V.

Intel mesa currently doesn't follow the spec and does the swap on its
own.

BUG= 646136 ,  646137 , b/31164247
TEST=External video on samus.
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2295943002
Cr-Commit-Position: refs/heads/master@{#418082}
(cherry picked from commit 38a2205e8f3f551e6059fe657c2c8da246a8ba45)

Review-Url: https://codereview.chromium.org/2339963002
Cr-Commit-Position: refs/branch-heads/2840@{#366}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/04e547f5f719b9452ea11b9062a528b48008f424/ui/ozone/gl/gl_image_ozone_native_pixmap.cc

Comment 14 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 15 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 16 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Labels: VerifyIn-61

Comment 18 by dchan@chromium.org, Oct 14 2017

Status: Archived (was: Fixed)

Sign in to add a comment