media/gpu/test/Video: Fix a bug with compressed data input
video_encode_accelerator_tests can accept compressed data as input and decode it by using SW decoder before encoding. The code copies the entire decoded frames to encoder input data. However, the decoded frames might have different stride from the expected resolution. For instance, compressed data has 320x192 video frames and the SW decoder produces 384x192 video frames. The test must copy the resolution area that is specified by json file. Bug: 1045825 Test: video_encode_accelerator_tests on eve Change-Id: I3f6b5a78a30ef0e9e96211bee2c981af437607cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217831 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:David Staessens <dstaessens@chromium.org> Cr-Commit-Position: refs/heads/master@{#774001}
Showing
Please register or sign in to comment