Camera snapshot
checkState();
checkPermission();
if (null == imageType) {
imageType = System.getProperty("video.snapshot.encodings");
if (null == imageType) {
throw new MediaException("Requested format is not supported");
}
}
// Need revisit - Check encoding param validity (Not from Sprint PCS QVM based test case)
byte[] data = null;
if (hNative != 0) {
data = nSnapShot(hNative, imageType.toLowerCase());
}
if (null == data) {
throw new MediaException(imageType + " format is not supported");
}
return data;