Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Issue 2661423002: VTVDA: Optimize pic_order_cnt_type == 2. (Closed)

Created:
3 years, 10 months ago by sandersd (OOO until July 31)
Modified:
3 years, 9 months ago
Reviewers:
Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, mac-reviews_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VTVDA: Optimize pic_order_cnt_type == 2. This CL also fixes the behavior of VTVDA with regards to MMCO5, which should be handled like an IDR for reordering purposes. This follows (perhaps not obviously) from the spec definition of "picture order count": 'A variable that is associated with each coded field and each field of a coded frame and has a value that is non-decreasing with increasing field position in output order relative to the first output field of the previous IDR picture in decoding order or relative to the first output field of the previous picture, in decoding order, that contains a memory management control operation that marks all reference pictures as "unused for reference".' This definition conveniently guarantees that when pic_order_cnt_type is 2, then decode order == presentation order (as one would hope). BUG=webrtc:7010 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2661423002 Cr-Commit-Position: refs/heads/master@{#456889} Committed: https://chromium.googlesource.com/chromium/src/+/52dceecdb0a9da763a6f62d0c5b010843692d489

Patch Set 1 #

Patch Set 2 : Switch from static to namespace {} #

Patch Set 3 : Change POC of MMCO5 frame to 0. #

Total comments: 14

Patch Set 4 : Address comments. #

Patch Set 5 : Explain MMCO5 handling in the code. #

Patch Set 6 : Fix comment typo. #

Patch Set 7 : Fix compile. #

Patch Set 8 : Update unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -46 lines) Patch
M media/gpu/vt_video_decode_accelerator_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/vt_video_decode_accelerator_mac.cc View 1 2 3 4 5 6 6 chunks +20 lines, -6 lines 0 comments Download
M media/video/h264_poc.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M media/video/h264_poc.cc View 1 2 3 4 5 6 chunks +56 lines, -31 lines 0 comments Download
M media/video/h264_poc_unittest.cc View 1 2 3 4 5 6 7 6 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
sandersd (OOO until July 31)
This change treats the frame after a MMCO5 very much like an IDR for reordering ...
3 years, 10 months ago (2017-02-01 00:00:57 UTC) #3
sandersd (OOO until July 31)
On 2017/02/01 00:00:57, sandersd wrote: > This change treats the frame after a MMCO5 very ...
3 years, 10 months ago (2017-02-14 01:28:43 UTC) #4
Pawel Osciak
Perhaps we could consider adding some more context/explanation to the CL message/code comments please, as ...
3 years, 10 months ago (2017-02-17 04:53:27 UTC) #5
sandersd (OOO until July 31)
https://codereview.chromium.org/2661423002/diff/40001/media/gpu/vt_video_decode_accelerator_mac.cc File media/gpu/vt_video_decode_accelerator_mac.cc (right): https://codereview.chromium.org/2661423002/diff/40001/media/gpu/vt_video_decode_accelerator_mac.cc#newcode953 media/gpu/vt_video_decode_accelerator_mac.cc:953: (!task.frame->is_idr || !task.frame->has_mmco5 || On 2017/02/17 04:53:26, Pawel Osciak ...
3 years, 10 months ago (2017-02-18 00:46:34 UTC) #7
sandersd (OOO until July 31)
https://codereview.chromium.org/2661423002/diff/40001/media/video/h264_poc.cc File media/video/h264_poc.cc (right): https://codereview.chromium.org/2661423002/diff/40001/media/video/h264_poc.cc#newcode69 media/video/h264_poc.cc:69: bool mmco5 = HasMMCO5(slice_hdr); On 2017/02/17 04:53:26, Pawel Osciak ...
3 years, 10 months ago (2017-02-22 01:39:32 UTC) #8
sandersd (OOO until July 31)
On 2017/02/22 01:39:32, sandersd (OOO until March 13) wrote: > https://codereview.chromium.org/2661423002/diff/40001/media/video/h264_poc.cc > File media/video/h264_poc.cc (right): ...
3 years, 9 months ago (2017-03-02 23:16:47 UTC) #10
Pawel Osciak
Thanks, lgtm.
3 years, 9 months ago (2017-03-03 08:31:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2661423002/120001
3 years, 9 months ago (2017-03-14 20:17:06 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/326701)
3 years, 9 months ago (2017-03-14 20:51:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2661423002/140001
3 years, 9 months ago (2017-03-14 21:41:03 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 23:31:00 UTC) #28
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/52dceecdb0a9da763a6f62d0c5b0...

Powered by Google App Engine
This is Rietveld 408576698