优化代码,为后面移除java代码做准备

serial
BlueMatthew 1 year ago
parent 0d9ea78025
commit 8ff0e3c272

@ -775,9 +775,10 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
params.orientation = mPhotoInfo.orientation; params.orientation = mPhotoInfo.orientation;
// GpioControl::EnableGpio(CMD_SET_CAM_3V3_EN_STATE, true); // GpioControl::EnableGpio(CMD_SET_CAM_3V3_EN_STATE, true);
bool res = false;
JNIEnv* env = NULL; JNIEnv* env = NULL;
bool didAttachThread = false; bool didAttachThread = false;
bool res = GetJniEnv(m_vm, &env, didAttachThread); res = GetJniEnv(m_vm, &env, didAttachThread);
if (!res) if (!res)
{ {
ALOGE("Failed to get JNI Env"); ALOGE("Failed to get JNI Env");
@ -790,7 +791,6 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
} }
TurnOnCameraPower(env); TurnOnCameraPower(env);
res = true; res = true;
if (mPhotoInfo.mediaType == 0) if (mPhotoInfo.mediaType == 0)
{ {

Loading…
Cancel
Save