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:
François Revol
2007-05-12 18:56:01 +00:00
parent 61064c3bea
commit 830d967717
2 changed files with 10 additions and 0 deletions
@@ -231,6 +231,15 @@ CamDevice::ValidateEndOfFrameTag(const uint8 *tag, size_t taglen, size_t datalen
return true;
}
// -----------------------------------------------------------------------------
status_t
CamDevice::WaitFrame(bigtime_t timeout)
{
if (fDeframer)
return WaitFrame(timeout);
return EINVAL;
}
// -----------------------------------------------------------------------------
status_t
CamDevice::GetFrameBitmap(BBitmap **bm)
@@ -64,6 +64,7 @@ class CamDevice
virtual bool ValidateEndOfFrameTag(const uint8 *tag, size_t taglen, size_t datalen);
// several ways to get raw frames
virtual status_t WaitFrame(bigtime_t timeout);
virtual status_t GetFrameBitmap(BBitmap **bm);
virtual status_t FillFrameBuffer(BBuffer *buffer);