Skip to content

Commit

Permalink
do not choose camera format
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyTheCo committed Apr 7, 2024
1 parent f686270 commit bdedd50
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions QtQrDec/Qrimagedecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ void QRImageDecoder::getCamera(void)
}
}
m_camera=new QCamera(best,this);
auto bvF=best.videoFormats().at(0);
for (const QCameraFormat &format : best.videoFormats())
{
if(abs(format.resolution().width()*1.0-format.resolution().height())<abs(bvF.resolution().width()*1.0-bvF.resolution().height()))
{
bvF=format;
}
}
m_camera->setCameraFormat(bvF);

}

}
Expand Down

0 comments on commit bdedd50

Please sign in to comment.