added CamdDevice::WaitFrame() which will be needed to rewrite teh producer frame generator thread
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21126 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -231,6 +231,15 @@ CamDevice::ValidateEndOfFrameTag(const uint8 *tag, size_t taglen, size_t datalen
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
status_t
|
||||||
|
CamDevice::WaitFrame(bigtime_t timeout)
|
||||||
|
{
|
||||||
|
if (fDeframer)
|
||||||
|
return WaitFrame(timeout);
|
||||||
|
return EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
status_t
|
status_t
|
||||||
CamDevice::GetFrameBitmap(BBitmap **bm)
|
CamDevice::GetFrameBitmap(BBitmap **bm)
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class CamDevice
|
|||||||
virtual bool ValidateEndOfFrameTag(const uint8 *tag, size_t taglen, size_t datalen);
|
virtual bool ValidateEndOfFrameTag(const uint8 *tag, size_t taglen, size_t datalen);
|
||||||
|
|
||||||
// several ways to get raw frames
|
// several ways to get raw frames
|
||||||
|
virtual status_t WaitFrame(bigtime_t timeout);
|
||||||
virtual status_t GetFrameBitmap(BBitmap **bm);
|
virtual status_t GetFrameBitmap(BBitmap **bm);
|
||||||
virtual status_t FillFrameBuffer(BBuffer *buffer);
|
virtual status_t FillFrameBuffer(BBuffer *buffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user