Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Code in C (due to memory-management requirements):
- Allocate a huge buffer (1000 * sizeof(image))
- for i in [0..1000]:
- tell camera it can use memory at buffer + i * sizeof(image)
- getImage():
- get address of buffer used by camera to store image
- copy buffer data to new store
- tell camera it can use buffer again
- return data
- # Code in Python
- while True:
- image = getImage()
- image = fixImage(image) # Do some work
- self.client.receiveData(image)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement