libjpegrecoverymap: refactor

Add public functions for encode/decode APIs, and make the the rest
functions private.
Rename jpeg_r to jpegr, and j_r to jr

Test: build
Bug: b/252835416
Change-Id: Ia43fa75447ad6aa7154ef2e2207a3d7e8035f412
diff --git a/libs/jpegrecoverymap/Android.bp b/libs/jpegrecoverymap/Android.bp
index 285f8d5..b52c4c7 100644
--- a/libs/jpegrecoverymap/Android.bp
+++ b/libs/jpegrecoverymap/Android.bp
@@ -31,4 +31,8 @@
     srcs: [
         "recoverymap.cpp",
     ],
+
+    shared_libs: [
+        "libutils",
+    ],
 }
\ No newline at end of file