UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
video_frame_pool.cpp File Reference
#include "config_msvc.h"
#include "video_frame_pool.h"
#include <cassert>
#include <cstdlib>
#include <condition_variable>
#include <exception>
#include <functional>
#include <iostream>
#include <memory>
#include <mutex>
#include <queue>
#include <stdexcept>
#include <utility>
#include "video_codec.h"
#include "video_frame.h"
Include dependency graph for video_frame_pool.cpp:

Go to the source code of this file.

Classes

struct  video_frame_pool::impl
 
struct  video_frame_pool::impl::m_desc
 

Functions

void video_frame_pool_destroy (void *state)
 
struct video_frame * video_frame_pool_get_disposable_frame (void *state)
 
void * video_frame_pool_init (struct video_desc desc, int len)
 

Detailed Description

Author
Martin Pulec pulec.nosp@m.@ces.nosp@m.net.c.nosp@m.z

Definition in file video_frame_pool.cpp.

Function Documentation

◆ video_frame_pool_destroy()

void video_frame_pool_destroy ( void * state)

Definition at line 266 of file video_frame_pool.cpp.

266 {
267 auto *s = static_cast<video_frame_pool* >(state);
268 delete s;
269}
void ** state

References state.

Referenced by vidcap_screen_osx_done().

◆ video_frame_pool_get_disposable_frame()

struct video_frame * video_frame_pool_get_disposable_frame ( void * state)

Definition at line 261 of file video_frame_pool.cpp.

261 {
262 auto *s = static_cast<video_frame_pool* >(state);
263 return s->get_disposable_frame();
264}
struct video_frame * get_disposable_frame()

References video_frame_pool::get_disposable_frame(), and state.

Referenced by vidcap_screen_osx_grab().

Here is the call graph for this function:

◆ video_frame_pool_init()

void * video_frame_pool_init ( struct video_desc desc,
int len )

Definition at line 255 of file video_frame_pool.cpp.

255 {
256 auto *out = new video_frame_pool(len, default_data_allocator());
257 out->reconfigure(desc);
258 return (void *) out;
259}
struct video_desc desc
int void size_t * len

References video_frame_pool::video_frame_pool(), desc, and len.

Referenced by initialize().

Here is the call graph for this function: