|
|
Created:
5 years, 2 months ago by Daniele Castagna Modified:
5 years, 1 month ago CC:
cc-bugs_chromium.org, chromium-reviews, feature-media-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptionmedia: Compute compatible VideoFrame::coded_rect for copies to GMBs.
Before this patch, GMBVFP would copy only visible_rect to
GpuMemoryBuffers.
Unfortunately GMBs can't always be created with visible_rect size
since visible_rect might have dimensions not compatible with the
output format.
With this patch we compute a format compatible coded_rect and we use
that as the new coded rect for copies and the new output VideoFrame.
BUG=544554
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/adb69b1408b5bb2f643c5b629e01a78068f7af5c
Cr-Commit-Position: refs/heads/master@{#356090}
Patch Set 1 #Patch Set 2 : Rebase on master. #Patch Set 3 : Copy only visible_rect but size it properly for the output format. #Patch Set 4 : Rebase on master. #
Messages
Total messages: 27 (14 generated)
Patchset #2 (id:20001) has been deleted
Description was changed from ========== Copy videoframe coded_rect into GMBs. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have odd dimensions. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Description was changed from ========== Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have odd dimensions. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have odd dimensions. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Description was changed from ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have odd dimensions. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
dcastagna@chromium.org changed reviewers: + ccameron@chromium.org, emircan@chromium.org
Description was changed from ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we copy coded_rect to GMBs. In case of visible_rect being significantly smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we copy coded_rect to GMBs. In case of visible_rect being smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera and VideoFrame needs to be letterboxed. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
lgtm
dcastagna@chromium.org changed reviewers: + reveman@chromium.org, sandersd@chromium.org
Adding owners: +reveman for cc/layers/* +sandersd for media/video/*
lgtm
lgtm
The CQ bit was checked by dcastagna@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420943002/40001
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Description was changed from ========== media: Copy VideoFrame::coded_rect into GMBs. Before this patch, GMBVFP would copy only the visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we copy coded_rect to GMBs. In case of visible_rect being smaller than coded_size we're going to copy more data after this patch. This in practice only happens in rare occasions where the source of the video is a camera and VideoFrame needs to be letterboxed. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Compute proper VideoFrame::coded_rect for copies to GMBs. Before this patch, GMBVFP would copy only visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we compute an format compatible coded_rect and we use that as the coded rect for copies and the output VideoFrame. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Description was changed from ========== media: Compute proper VideoFrame::coded_rect for copies to GMBs. Before this patch, GMBVFP would copy only visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we compute an format compatible coded_rect and we use that as the coded rect for copies and the output VideoFrame. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Compute proper VideoFrame::coded_rect for copies to GMBs. Before this patch, GMBVFP would copy only visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we compute a format compatible coded_rect and we use that as the new coded rect for copies and the new output VideoFrame. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Description was changed from ========== media: Compute proper VideoFrame::coded_rect for copies to GMBs. Before this patch, GMBVFP would copy only visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we compute a format compatible coded_rect and we use that as the new coded rect for copies and the new output VideoFrame. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== media: Compute compatible VideoFrame::coded_rect for copies to GMBs. Before this patch, GMBVFP would copy only visible_rect to GpuMemoryBuffers. Unfortunately GMBs can't always be created with visible_rect size since visible_rect might have dimensions not compatible with the output format. With this patch we compute a format compatible coded_rect and we use that as the new coded rect for copies and the new output VideoFrame. BUG=544554 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
I had to change the logic a little to fix the bug. The previous patch would break some tests since we don't always correctly draw native videoframes when visible_rect is not in the origin (video to canvas ignores that.) Now the output videoframe visible_rect is always in the origin, as it was before, but coded_size of the output videoframe is computed to be compatible with the output format.
still lgtm
The CQ bit was checked by dcastagna@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ccameron@chromium.org, reveman@chromium.org, sandersd@chromium.org Link to the patchset: https://codereview.chromium.org/1420943002/#ps80001 (title: "Rebase on master.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420943002/80001
Message was sent while issue was closed.
Committed patchset #4 (id:80001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/adb69b1408b5bb2f643c5b629e01a78068f7af5c Cr-Commit-Position: refs/heads/master@{#356090} |