SHARE
TWEET

Untitled

a guest Jun 24th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. device.streamON();
  2.     v4l2_buffer bufferQueue;
  3.     while (!exit_requested){
  4.         //capture code
  5.         device.dequeueBuffer(&bufferQueue);
  6.         // use the h264 buffer inside bufferPtr[bufferQueue.index]
  7.         ...
  8.         device.queueBuffer(bufferQueue.index, &bufferQueue);
  9.     }
  10.     device.streamOFF();
  11.      
  12. BroadcomVideoDecode decoder;
  13.      while (!exit_requested) {
  14.         //capture code start
  15.         ...
  16.         //decoding code
  17.         decoder.writeH264Buffer(bufferPtr[bufferQueue.index],bufferQueue.bytesused);
  18.         //capture code end
  19.         ...
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top