UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
video_frame_pool.h File Reference
#include "types.h"
#include "utils/macros.h"
#include <cstddef>
#include <memory>
Include dependency graph for video_frame_pool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  default_data_allocator
 
struct  video_frame_pool
 
struct  video_frame_pool_allocator
 

Functions

EXTERN_C void video_frame_pool_destroy (void *)
 
EXTERN_C struct video_frame * video_frame_pool_get_disposable_frame (void *)
 
EXTERN_C 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.h.

Function Documentation

◆ video_frame_pool_destroy()

EXTERN_C 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()

EXTERN_C 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()

EXTERN_C 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: