• Sheng-Hao Tsao's avatar
    Add Exif and IPC compatibility to JEA interface · eead1e75
    Sheng-Hao Tsao authored
    This CL adds 2 things to JEA interface.
    
    1. Exif. Currently HW JEA only encodes the image with APP0 JFIF segment.
    After this CL, it accepts Exif buffer and would insert the APP1 segment
    if Exif buffer is provided.
    
    2. IPC compatibility.
    IPC from ChromeOS side relies on the buffer ID to identify the encoded
    results. The ID of VideoFrame is generated randomly at Chromium side
    which ChromeOS doesn't know. The CL changes JEA interface to use output
    buffer ID to identify each encode attemp.
    
    BUG=819847
    TEST=Verified that JEA can be used from ChromeOS side with Exif buffer.
    
    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
    Change-Id: I87f13a435f9875999ca79dd5769fb925a9c59fb8
    Reviewed-on: https://chromium-review.googlesource.com/954411
    Commit-Queue: Sheng-hao Tsao <shenghao@google.com>
    Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#542200}
    eead1e75
jpeg_encode_accelerator.h 4.14 KB