libjpegrecoverymap: a few fixes

1. introduce maxLength parameter in compressed data structure that holds max available buffer size, and buffer boundary checks should rely on this parameter
2. make recovery map compress quality a static configuration instead of using a magic number

Change-Id: I4af25931ab905c0d524cfa02c6057e9cf128b5ca
Test: build
Bug: b/252835416
2 files changed