调整赋值位置,避免遗漏字段

hdrplus
Matthew 11 months ago
parent c912bf123c
commit 707de491bb

@ -976,8 +976,6 @@ void NdkCamera::onImageAvailable(AImageReader* reader)
mResult.duration = GetMicroTimeStamp() - m_startTime;
mFinalResult = mResult;
int32_t format;
AImage_getFormat(image, &format);
@ -1021,6 +1019,8 @@ void NdkCamera::onImageAvailable(AImageReader* reader)
mResult.avgY = avgY / y_len;
#endif
mFinalResult = mResult;
if (u_data == v_data + 1 && v_data == y_data + width * height && y_pixelStride == 1 && u_pixelStride == 2 && v_pixelStride == 2 && y_rowStride == width && u_rowStride == width && v_rowStride == width)
{
// already nv21 :)

Loading…
Cancel
Save