Commit 9f10f23f authored by kirov's avatar kirov
Browse files

+ Added TestFrameCallback class, BUT Cond (ThreadUtils) is not wrapped!

git-svn-id: 45c4679d-1946-429d-baad-37912b19538b
parent 20678d0a
......@@ -48,6 +48,23 @@ print "Getting HW RoI"
hw_roi = hw_inter.getHwCtrlObj(lima.HwCap.Roi)
print type(hw_roi)
class TestFrameCallback( lima.HwFrameCallback ):
def __init__(self, hw_inter, soft_roi, buffer_save, acq_finished):
self.m_hw_inter = hw_inter
self.m_soft_roi = soft_roi
self.m_roi_task = lima.SoftRoi()
self.m_roi_cb = lima.SoftRoiCallback(hw_inter, buffer_save,
def newFrameReady(self, frame_info):
print "newFrameReady!"
soft_roi = lima.Roi()
#acq_finished = lima.Cond() # Thread utils are not wrapped!
#print "Creating a TestFrameCallback"
#cb = TestFrameCallback(hw_inter, soft_roi, buffer_save, acq_finished)
s = raw_input('Reset the hardware? (y/n):')
if s[0] == 'y' or s[0] == 'Y':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment