• Sheng-Hao Tsao's avatar
    Fix a bug that VAAPI JEA generates corrupted JPEG · 62e06800
    Sheng-Hao Tsao authored
    VAAPI JEA generates incorrect encoded image when the APP1 segment in the
    header has a thumbnail image. This CL works around the problem by
    providing an all-zero APP1 buffer with the same size and fill in the
    real APP1 buffer data after the encode is done.
    
    BUG=b:79840013
    TEST=Verified on nautilus that GCA can take photos.
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: Ic8dd17487a03af7a881a6d2804baee73bbbd13a1
    Reviewed-on: https://chromium-review.googlesource.com/1061277Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
    Commit-Queue: Sheng-hao Tsao <shenghao@google.com>
    Cr-Commit-Position: refs/heads/master@{#559436}
    62e06800
vaapi_jpeg_encode_accelerator.cc 11.8 KB