• Hirokazu Honda's avatar
    media/gpu/VDA unittest: Enable video frame validator in evey TestSimpleDecode test case · 090f680b
    Hirokazu Honda authored
    This enables VideoFrameValidator in evey TestSimpleDecode test case, that is,
    the test case except TestDecodeTimeMedia (performance test) and NoCrash.
    
    Because an input stream is decoded repeatedly, the index in display order of
    video frame on PictureReady() needs to be passed to VideoFrameValidator.
    It seems there is no good way to get the frame index from Picture. So I just
    count up the index on PictureReady() and reset it to 0 on NotifyResetDone().
    This seems a hacky way and only works with the current VDA unittest, which
    always rewind to the beginning of the stream and does not jump to the middle of
    the stream.
    
    BUG=chromium:856562
    TEST=VDA unittest on eve with frame validator
    $ ./video_decode_accelerator_unittest --test_video_data=test-25fps.h264:320:240:250:258:35:150:1 --ozone-platform=gbm  --test_import --frame_validator
    
    Change-Id: I8fbbf165254f4e26c69f8da27b41ff3b9f395224
    Reviewed-on: https://chromium-review.googlesource.com/c/1304286
    Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
    Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604171}
    090f680b
video_frame_validator.h 3.98 KB