• Moja Hsu's avatar
    Add V4L2 JPEG Encoder support. · 6f961aae
    Moja Hsu authored
    Support V4L2 JPEG devices.
    It supports both JPEG and JPEG_RAW devices for different hardware
    accelerators.
    This CL also increase the kMeanDiffThreshold to 10 in
    jpeg_encode_accelerator_unittest.
    The encoded results are much different between SW and HW encode.
    
    
    CQ-DEPEND=CL:1161846
    BUG=b:77835279
    TEST=Pass compile on scarlet and nautilus.
    Pass jpeg_encode_accelerator_unittest
    Pass libjea_test
    Take picture on dru and check if we use HW encoder for jpeg.
    
    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: I9d12625d398e9d66a5e228081a718f55e194a8a4
    Reviewed-on: https://chromium-review.googlesource.com/c/1122146
    Commit-Queue: Hsu Wei-Cheng <mojahsu@chromium.org>
    Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
    Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#607555}
    6f961aae
vaapi_jpeg_encoder.cc 14.4 KB