Closed
Bug 850566
Opened 12 years ago
Closed 12 years ago
[Buri][Video]When playing some videos, part of bottom will be stretched a little
Categories
(Firefox OS Graveyard :: General, defect, P1)
Tracking
(blocking-b2g:tef+, firefox21 wontfix, firefox22 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
People
(Reporter: sync-1, Assigned: ikumar)
Details
Attachments
(7 files, 3 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
Firefox v1.0.1
Mozilla build ID: 20130304070202.
+++ This bug was initially created as a clone of Bug #419477 +++
Created an attachment (id=363966)
Screen shot
DEFECT DESCRIPTION:
(1)Play some videos, you will find the bottom part is stretched a little , no matter in portrait mode or Landscape mode.---- NOK
(2)Samples to check:
https://www.youtube.com/watch?v=NeGe7lVrXb0&feature=youtube_gdata_player
https://www.dropbox.com/s/bxgyyrcvyymi4xd/AvatarMovieTrailer.mp4
REPRODUCING PROCEDURES:
EXPECTED BEHAVIOUR:
ASSOCIATE SPECIFICATION:
TEST PLAN REFERENCE:
TOOLS AND PLATFORMS USED:
USER IMPACT:
big
REPRODUCING RATE:
100%
For FT PR, Please list reference mobile's behavior:
++++++++++ end of initial bug #419477 description ++++++++++
CONTACT INFO (Name,Phone number):
DEFECT DESCRIPTION:
REPRODUCING PROCEDURES:
EXPECTED BEHAVIOUR:
ASSOCIATE SPECIFICATION:
TEST PLAN REFERENCE:
TOOLS AND PLATFORMS USED:
USER IMPACT:
REPRODUCING RATE:
For FT PR, Please list reference mobile's behavior:
Comment 2•12 years ago
|
||
Inder, can you please look at this?
Assignee: nobody → ikumar
blocking-b2g: tef? → tef+
Comment 3•12 years ago
|
||
I've seen this before. It seems it's only a problem when Hardware composer is disabled
Comment 4•12 years ago
|
||
Does this need to remain a blocker, given comment 3 and our planned config around hardware composer?
blocking-b2g: tef+ → tef?
Flags: needinfo?(mvines)
Comment 5•12 years ago
|
||
(ni on dwilson to further qualify comment 3)
Flags: needinfo?(mvines) → needinfo?(dwilson)
diego, I could reproduce this issue on our device even if hw composer is enabled.
Comment 7•12 years ago
|
||
(Back to tef+ for now, until Inder is able to triage why these media file are causing trouble.)
blocking-b2g: tef? → tef+
Flags: needinfo?(dwilson)
For AvatarMovieTrailer found that there is a discrepancy between the video dimension in the metadata and what decoder finds. In the metadata the video dimensions are 480x200 whereas the decoder finds it as 480x208. Do we know how and where we discover the video dimension in gecko? I am thinking it gets it from decoder.
Comment 10•12 years ago
|
||
There are defect's of handling of SurfaceDescriptorGralloc's image size. SurfaceDescriptorGralloc uses android::GraphicBuffer's Image size as descriptor's image's size. It seems that there are cases that GraphicBuffer's size is different from valid Image size.
"208" comes from GraphicBuffer's size.
Comment 11•12 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #10)
> There are defect's of handling of SurfaceDescriptorGralloc's image size.
> SurfaceDescriptorGralloc uses android::GraphicBuffer's Image size as
> descriptor's image's size. It seems that there are cases that
> GraphicBuffer's size is different from valid Image size.
>
> "208" comes from GraphicBuffer's size.
I am going to investigate the problem more tomorrow.
Comment 12•12 years ago
|
||
I fixed the problem locally. I am going to write a cleaner patch. The problem happens from the size difference between GraphicBuffer's size and actual video size.
When there is the size difference, it is necessary to draw by using LayerManagerOGL::BindAndDrawQuadWithTextureRect(). current implementation use LayerManagerOGL::BindAndDrawQuad().
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Comment on attachment 729792 [details] [diff] [review]
Part1 - add image size to SurfaceDescriptorGralloc
:nical, can you review the patch?
Attachment #729792 -
Flags: review?(nical.bugzilla)
Comment 17•12 years ago
|
||
Comment on attachment 729793 [details] [diff] [review]
Part2 - render gralloc buffer by using image size
:roc, can you review the patch?
Attachment #729793 -
Flags: review?(roc)
Comment 18•12 years ago
|
||
Comment on attachment 729794 [details] [diff] [review]
Part3 - set video size to SurfaceDescriptorGralloc
:doublec, can you review the patch?
Attachment #729794 -
Flags: review?(chris.double)
Comment 19•12 years ago
|
||
I confirmed the patches fixed the problem on unagi phone.
Attachment #729793 -
Flags: review?(roc) → review+
Comment 20•12 years ago
|
||
Comment on attachment 729794 [details] [diff] [review]
Part3 - set video size to SurfaceDescriptorGralloc
Review of attachment 729794 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/omx/OmxDecoder.cpp
@@ +528,5 @@
> descriptor = mNativeWindow->getSurfaceDescriptorFromBuffer(mVideoBuffer->graphicBuffer().get());
> }
>
> if (descriptor) {
> + // Change the descriptor's size to video's sizse. There are cases that
Spelling of 'sizse'.
Attachment #729794 -
Flags: review?(chris.double) → review+
Comment 21•12 years ago
|
||
Comment on attachment 729792 [details] [diff] [review]
Part1 - add image size to SurfaceDescriptorGralloc
Review of attachment 729792 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/ipc/LayersSurfaces.ipdlh
@@ +45,5 @@
> };
>
> struct SurfaceDescriptorGralloc {
> PGrallocBuffer buffer;
> + nsIntSize size;
Please add a comment here explaining why we store an extra size member instead of just using the android::GraphicBuffer's Image size.
Attachment #729792 -
Flags: review?(nical.bugzilla) → review+
Comment 22•12 years ago
|
||
Commitable patch. carry "nical.bugzilla: review+".
Attachment #729792 -
Attachment is obsolete: true
Attachment #730261 -
Flags: review+
Comment 23•12 years ago
|
||
Commitable patch. Carry "roc: review+".
Attachment #729793 -
Attachment is obsolete: true
Attachment #730262 -
Flags: review+
Comment 24•12 years ago
|
||
Committable patch. Carry "chris.double: review+".
Attachment #729794 -
Attachment is obsolete: true
Attachment #730263 -
Flags: review+
Comment 25•12 years ago
|
||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 26•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/345246c6d010
https://hg.mozilla.org/integration/mozilla-inbound/rev/ae71a585726f
https://hg.mozilla.org/integration/mozilla-inbound/rev/6ea012d36e73
Keywords: checkin-needed
Comment 27•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/345246c6d010
https://hg.mozilla.org/mozilla-central/rev/ae71a585726f
https://hg.mozilla.org/mozilla-central/rev/6ea012d36e73
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 28•12 years ago
|
||
Is there a gaia component to this patch?
Comment 29•12 years ago
|
||
(In reply to John Ford [:jhford] from comment #28)
> Is there a gaia component to this patch?
IMHO, gaia side patch is not necessary.
Comment 30•12 years ago
|
||
Environmental Variables:
Unagi Build ID: 20130401070203
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/b28463f2e718
Gaia: ddb38ac8a34f9e30e09d0ff3b5c1bfb9b664b7c3
The same issue still reproduces on "Unagi" device.
Comment 31•12 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #26)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/345246c6d010
> https://hg.mozilla.org/integration/mozilla-inbound/rev/ae71a585726f
> https://hg.mozilla.org/integration/mozilla-inbound/rev/6ea012d36e73
Can someone uplift the patches?
Updated•12 years ago
|
status-b2g18:
--- → affected
status-b2g18-v1.0.1:
--- → affected
Comment 32•12 years ago
|
||
Comment on attachment 730261 [details] [diff] [review]
Part1 v2 - add image size to SurfaceDescriptorGralloc
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A
User impact if declined:Some videos are not rendered correctly
Testing completed: Tested on Unagui phone.
Risk to taking this patch (and alternatives if risky): low risk
String or UUID changes made by this patch: none
Attachment #730261 -
Flags: approval-mozilla-b2g18?
Comment 33•12 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #32)
> Comment on attachment 730261 [details] [diff] [review]
> Part1 v2 - add image size to SurfaceDescriptorGralloc
>
> NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to
> better understand the B2G approval process and landings.
>
> [Approval Request Comment]
> Bug caused by (feature/regressing bug #): N/A
> User impact if declined:Some videos are not rendered correctly
> Testing completed: Tested on Unagui phone.
> Risk to taking this patch (and alternatives if risky): low risk
> String or UUID changes made by this patch: none
This bug is already tef+ so no need for approval to uplift the patches.
Updated•12 years ago
|
Attachment #730261 -
Flags: approval-mozilla-b2g18?
Comment 34•12 years ago
|
||
Patch for b2g18. Carry "nical.bugzilla: review+"
Comment 36•12 years ago
|
||
Patch for b2g18. Carry "chris.double: review+"
Attachment #734774 -
Flags: review+
Updated•12 years ago
|
Attachment #734771 -
Flags: review+
Updated•12 years ago
|
Attachment #730262 -
Attachment description: Part2 - render gralloc buffer by using image size → Part2 v2- render gralloc buffer by using image size
Updated•12 years ago
|
Attachment #734773 -
Attachment description: Part2 - render gralloc buffer by using image size → Part2 v2 for b2g18 - render gralloc buffer by using image size
Updated•12 years ago
|
Attachment #734774 -
Attachment description: Part3 v2 - set video size to SurfaceDescriptorGralloc → Part3 v2 for b2g18 - set video size to SurfaceDescriptorGralloc
Comment 37•12 years ago
|
||
Can I get help landing on gecko b2g18?
Updated•12 years ago
|
Flags: needinfo?(ryanvm)
Updated•12 years ago
|
Flags: needinfo?(ryanvm)
Keywords: checkin-needed
Updated•12 years ago
|
Component: Gaia::Video → General
Comment 38•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/83276ffa8089
https://hg.mozilla.org/releases/mozilla-b2g18/rev/4e2faaa4b3dc
https://hg.mozilla.org/releases/mozilla-b2g18/rev/cb21c4153afa
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/a49d901c6f10
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/f4e509cb83cc
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/fff03f1901f2
status-b2g18-v1.0.0:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → fixed
Keywords: checkin-needed
Target Milestone: --- → B2G C4 (2jan on)
Comment 39•12 years ago
|
||
Working fine in ikura device with:
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/2b44e2c40cc1
Gaia 3e7dda88950ae09166109783adea8181eb857d21
BuildID 20130414230203
Version 18.0
Status: RESOLVED → VERIFIED
Comment 40•12 years ago
|
||
Tested on the new release:
AU_LINUX_GECKO_ICS_STRAWBERRY_V1.01.00.01.019.085
Firefox os v1.0.1
Mozilla build ID:20130422230201
The result is NOK, so I reopen the PR.
The problem is still there, no improvment.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 41•12 years ago
|
||
Amelie,
There is a separater patch for hardware composer, which is enabled in that build. Please see bug 865112.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Comment 42•12 years ago
|
||
Diego,
So you mean this patch?
https://www.codeaurora.org/gitweb/quic/lf/?p=build.git;a=blob;f=patch/all/gecko/HWC-multirect-visible-region.patch;h=1e1f6bde3a648dceb9d3a7f8bff27054e2030936;hb=refs/heads/v1.1
Are you sure it is uplifted to v1.0.1?
And we can verify the problem in later build?(after 4/25?)
Amelie
Flags: needinfo?(dwilson)
Comment 43•12 years ago
|
||
Amelie,
All pending HWC patches are currently in bug 832383, including the patch that fixes the stretch issue. The plan is to uplift them to 1.0.1.
I cc'ed you in the bug. Let's continue the discussion there.
Flags: needinfo?(dwilson)
You need to log in
before you can comment on or make changes to this bug.
Description
•