TT_CmeraFrameBuffer
Posted: Thu Feb 02, 2023 7:14 pm
I'm calling TT_UpdateSingleFrame() and getting the bytes out of our prime 41 (?) with TT_CameraFrameBuffer( 0, 2048, 2048, 0, 8, pLumaBuffer ).
it's returning false. pLumaBuffer is full of 0's. It's not clear how this method is supposed to be called. I'm going off MotiveApi.h.
1. What is ByteSpan, the 4th arg to CameraFrameBuffer? What should it be?
2. What if the passed in width/height aren't the same as the camera's native resolution? will the method fail?
3. i'm assuming since the camera is set to kVideoType_Grayscle, the bit depth is 8? The camera is a Prime x41?
4. are there restrictions on when I can call TT_CameraFrameBuffer()? Do I have to call UpdateSingleFrame first?
5. is there sample code I'm not seeing for this?
thanks
it's returning false. pLumaBuffer is full of 0's. It's not clear how this method is supposed to be called. I'm going off MotiveApi.h.
1. What is ByteSpan, the 4th arg to CameraFrameBuffer? What should it be?
2. What if the passed in width/height aren't the same as the camera's native resolution? will the method fail?
3. i'm assuming since the camera is set to kVideoType_Grayscle, the bit depth is 8? The camera is a Prime x41?
4. are there restrictions on when I can call TT_CameraFrameBuffer()? Do I have to call UpdateSingleFrame first?
5. is there sample code I'm not seeing for this?
thanks