YUV拍照适配

Signed-off-by: chen0088 <chenmenghuan3@huawei.com>
This commit is contained in:
chen0088
2022-04-26 20:14:17 +08:00
parent 55367f4521
commit 6ddea4e488
@@ -605,7 +605,7 @@ void DStreamOperator::ConvertStreamInfo(std::shared_ptr<StreamInfo> &srcInfo, st
dstInfo->type_ = DCStreamType::SNAPSHOT_FRAME;
if (dstInfo->encodeType_ == ENCODE_TYPE_JPEG) {
dstInfo->format_ = OHOS_CAMERA_FORMAT_JPEG;
} else if (dstInfo->encodeType_ == ENCODE_TYPE_NULL){
} else if (dstInfo->encodeType_ == ENCODE_TYPE_NULL) {
dstInfo->format_ = OHOS_CAMERA_FORMAT_YCRCB_420_SP;
}
} else {