Camera: fix more image copy/compare logic

For image copy, use min(srcRowPitch, dstRowPitch) to avoid
BufferOverflowException.
For image compare, handle the case of different strides
on Y plane properly.

BUG: 122707142
Test: build pass and test the testcase for about 25 times, all passed.
Change-Id: I43d3ba04cc3fd0cabdfd09be0c51b8a4338c6347
1 file changed