Enable pixelformat check
This commit is contained in:
parent
a419ecfde5
commit
c7cf80fd59
@ -183,7 +183,7 @@ bool CvCaptureCAM_PvAPI::open( int index )
|
|||||||
PvAttrUint32Get(Camera.Handle, "TotalBytesPerFrame", &frameSize);
|
PvAttrUint32Get(Camera.Handle, "TotalBytesPerFrame", &frameSize);
|
||||||
PvAttrUint32Get(Camera.Handle, "Width", &frameWidth);
|
PvAttrUint32Get(Camera.Handle, "Width", &frameWidth);
|
||||||
PvAttrUint32Get(Camera.Handle, "Height", &frameHeight);
|
PvAttrUint32Get(Camera.Handle, "Height", &frameHeight);
|
||||||
//PvAttrEnumGet(Camera.Handle, "pixelFormat", pixelFormat,256,NULL);
|
PvAttrEnumGet(Camera.Handle, "PixelFormat", pixelFormat,256,NULL);
|
||||||
maxSize = 8228;
|
maxSize = 8228;
|
||||||
PvAttrUint32Get(Camera.Handle,"PacketSize",&maxSize);
|
PvAttrUint32Get(Camera.Handle,"PacketSize",&maxSize);
|
||||||
if (PvCaptureAdjustPacketSize(Camera.Handle,maxSize)!=ePvErrSuccess)
|
if (PvCaptureAdjustPacketSize(Camera.Handle,maxSize)!=ePvErrSuccess)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user