Definition at line 106 of file avfoundation.mm.
◆ captureOutput:didOutputSampleBuffer:fromConnection:
| - (void) captureOutput: |
|
(AVCaptureOutput *) | captureOutput |
| didOutputSampleBuffer: |
|
(CMSampleBufferRef) | sampleBuffer |
| fromConnection: |
|
(AVCaptureConnection *) | connection |
Definition at line 115 of file avfoundation.mm.
437 :(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
438fromConnection:(AVCaptureConnection *)connection
439{
440#pragma unused (captureOutput)
441#pragma unused (connection)
449 } else {
450 NSLog(@"Frame dropped!");
452 }
453 }
454}
struct video_frame * frame
condition_variable m_frame_ready
queue< struct video_frame * > m_queue
constexpr int MAX_CAPTURE_QUEUE_SIZE
Struct video_frame represents a video frame and contains video description.
#define VIDEO_FRAME_DISPOSE(frame)
◆ grab
Definition at line 115 of file avfoundation.mm.
530{
534 return NULL;
535 } else {
539
541
542 chrono::steady_clock::time_point now = chrono::steady_clock::now();
543 double seconds = chrono::duration_cast<chrono::microseconds>(now -
m_t0).count() / 1000000.0;
544 if (seconds >= 5) {
545 cout <<
"[AVfoundation capture] " <<
m_frames <<
" frames in "
546 << seconds <<
" seconds = " <<
m_frames / seconds <<
" FPS\n";
549 }
550
551 return ret;
552 }
553}
chrono::steady_clock::time_point m_t0
◆ m_device
| - (AVCaptureDevice*) m_device |
|
protected |
◆ m_fps_req
◆ m_frame_ready
| - (condition_variable) m_frame_ready |
|
protected |
◆ m_frames
◆ m_lock
◆ m_queue
◆ m_session
| - (AVCaptureSession*) m_session |
|
protected |
◆ m_t0
The documentation for this class was generated from the following file: