Skip to content

Commit

Permalink
fixed wrong frame size
Browse files Browse the repository at this point in the history
  • Loading branch information
vtchernitski committed Oct 24, 2019
1 parent 0cd9edf commit 5f0fd1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PayCardsRecognizer/CrossPlatform/Recognizer/FrameStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ static const Size lowSize = Size(660,416);
CFrameStorage::CFrameStorage() : _grayOrientation(PayCardsRecognizerOrientationUnknown), _yuvOrientation(PayCardsRecognizerOrientationUnknown)
{
int bufferHeightY = 1280;
int bytesPerRowY = 768;
int bytesPerRowY = 720;

int bufferHeightUV = 640;
int bytesPerRowUV = 768;
int bytesPerRowUV = 720;

_bufferSizeY = bufferHeightY * bytesPerRowY;
_bufferY = malloc(_bufferSizeY);
Expand Down

0 comments on commit 5f0fd1e

Please sign in to comment.