• David Staessens's avatar
    media/gpu: Improve jpeg HW encode tests, so they can be executed from Tast. · 93c6800e
    David Staessens authored
    Fixed a bug that would prevent using absolute input file paths. This is required
    by tast, since the test image data is uploaded to a custom directory.
    
    Temporary files are generated, written to a temporary file, and read into memory
    again. This unnecessary step has been removed. File operations introduce
    additional points of failure, and it can be tricky to write to temporary files
    when using the Tast framework. This also prevents files cluttering the temp
    folder when not being cleaned up on crashes.
    
    The encode output of generated images is now written to the current folder using
    HxW_[black|white].jpg as output file name.
    
    TEST=ran jpeg_encode_accelerator_unittest on eve
    
    BUG=899605
    
    Change-Id: Ie3f0e299ef85ce663586b4ba4c1177e84ec7a8ca
    Reviewed-on: https://chromium-review.googlesource.com/c/1333011
    Commit-Queue: David Staessens <dstaessens@chromium.org>
    Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#608176}
    93c6800e
jpeg_encode_accelerator_unittest.cc 28 KB