codec2: add decode content sanity check for C2VDAComponent_test

Implement sanity check test by computing MD5Sum for each iteration and
comparing to golden MD5Sums, which are stored in .md5 files.

Add "-r" argument for recording output raw YUV contents into file to help us to
confirm decoder visually for debudding.

Bug: 72431959
Test: run MultiplePlayThroughSanityTest on Bob(ARC++N) and Kevin(ARC++P)
> adb shell /data/local/tmp/C2VDAComponent_test/C2VDAComponent_test -i /data/local/tmp/C2VDAComponent_test/bear.mp4:v4l2.h264.decode:640:368:82:84 --gtest_filter=MultiplePlaythroughSanityTest/C2VDAComponentParamTest.SimpleDecodeTest/0

Test: run SinglePlayThroughTest with -r
> adb shell /data/local/tmp/C2VDAComponent_test/C2VDAComponent_test -i /data/local/tmp/C2VDAComponent_test/bear.mp4:v4l2.h264.decode:640:368:82:84 -r --gtest_filter=MultiplePlaythroughSanityTest/C2VDAComponentParamTest.SimpleDecodeTest/0
> adb pull /data/local/tmp/C2VDAComponent_test/bear_output_640x368.yuv .
> mplayer -demuxer rawvideo -rawvideo w=640:h=368:format=nv12 bear_output_640x368.yuv
(use mplayer to play raw yuv file)

Change-Id: I13910324f6c202ecc456bb165e4a7059f503fbab
diff --git a/C2VDAComponent.cpp b/C2VDAComponent.cpp
index 7fce311..40908ca 100644
--- a/C2VDAComponent.cpp
+++ b/C2VDAComponent.cpp
@@ -980,7 +980,10 @@
     info.mBlockId = mGraphicBlocks.size();
     info.mGraphicBlock = std::move(block);
 
-    const C2GraphicView& view = info.mGraphicBlock->map().get();
+    C2ConstGraphicBlock constBlock = info.mGraphicBlock->share(
+            C2Rect(info.mGraphicBlock->width(), info.mGraphicBlock->height()), C2Fence());
+
+    const C2GraphicView& view = constBlock.map().get();
     const uint8_t* const* data = view.data();
     CHECK_NE(data, nullptr);
     const C2PlanarLayout& layout = view.layout();