vaapi/jpeg_enc: Fix quantization scaling
This is a workaround to match with iHD media driver that shifts the quantization values by 50 while encoding. https://github.com/intel/media-driver/blob/master/media_driver/linux/common/codec/ddi/media_ddi_encode_jpeg.cpp#L694 The patch ensures the shifted value in the middleware generated packed header. Linux media stack test cases claiming to have a significant psnr improvement in Y plane (41.27 to 48.31) with this quirk. BUG=None TEST=./jpeg_encode_accelerator_unittest Change-Id: Ie2316cce2b5c86fefeb3879872c881868687011b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446208 Commit-Queue: Sreerenj Balachandran <sreerenj.balachandran@intel.com> Reviewed-by:Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#814326}
Showing
Please register or sign in to comment