UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
state_sdl Struct Reference
Collaboration diagram for state_sdl:
Collaboration graph

Public Member Functions

 state_sdl (struct module *parent)
 
 ~state_sdl ()
 

Public Attributes

struct ring_buffer * audio_buffer
 
struct audio_frame audio_frame
 
int buffered_frames_count
 
struct video_desc current_desc
 
struct video_desc current_display_desc
 with those desc new data frames will be generated (getf)
 
bool deinterlace
 
SDL_Rect dst_rect
 
int fixed_h
 
bool fixed_size
 
int fixed_w
 
condition_variable frame_consumed_cv
 
int frames
 
queue< struct video_frame * > free_frame_queue
 
bool fs
 
mutex lock
 
uint32_t magic
 
struct module mod
 
bool nodecorate
 
bool play_audio
 
int screen_h
 
int screen_w
 
uint32_t sdl_flags_fs
 
uint32_t sdl_flags_win
 
SDL_Surface * sdl_screen
 
struct timeval tv
 
SDL_Overlay * yuv_image
 

Detailed Description

Definition at line 83 of file sdl.cpp.

Constructor & Destructor Documentation

◆ state_sdl()

state_sdl::state_sdl ( struct module * parent)
inline

Definition at line 119 of file sdl.cpp.

119 : magic(MAGIC_SDL), frames(0), yuv_image(nullptr), sdl_screen(nullptr), dst_rect(),
120 deinterlace(false), fs(false), nodecorate(false), fixed_size(false),
121 fixed_w(0), fixed_h(0),
124#ifdef __APPLE__
125 autorelease_pool(nullptr),
126#endif
128 {
129 gettimeofday(&tv, NULL);
133 }
void module_init_default(struct module *module_data)
Definition module.c:48
void module_register(struct module *module_data, struct module *parent)
Definition module.c:82
@ MODULE_CLASS_DATA
Definition module.h:86
#define MAGIC_SDL
Definition sdl.cpp:73
const char * parent
Definition settings.cpp:198
enum module_class cls
Definition module.h:115
uint32_t sdl_flags_fs
Definition sdl.cpp:115
SDL_Rect dst_rect
Definition sdl.cpp:91
struct timeval tv
Definition sdl.cpp:86
bool fixed_size
Definition sdl.cpp:96
struct ring_buffer * audio_buffer
Definition sdl.cpp:101
struct module mod
Definition sdl.cpp:117
int fixed_w
Definition sdl.cpp:97
uint32_t magic
Definition sdl.cpp:84
bool deinterlace
Definition sdl.cpp:93
bool fs
Definition sdl.cpp:94
struct video_desc current_desc
Definition sdl.cpp:107
int frames
Definition sdl.cpp:87
int screen_h
Definition sdl.cpp:99
uint32_t sdl_flags_win
Definition sdl.cpp:115
SDL_Overlay * yuv_image
Definition sdl.cpp:89
struct audio_frame audio_frame
Definition sdl.cpp:102
int buffered_frames_count
Definition sdl.cpp:105
int screen_w
Definition sdl.cpp:99
struct video_desc current_display_desc
with those desc new data frames will be generated (getf)
Definition sdl.cpp:108
bool play_audio
Definition sdl.cpp:103
int fixed_h
Definition sdl.cpp:97
SDL_Surface * sdl_screen
Definition sdl.cpp:90
bool nodecorate
Definition sdl.cpp:95

References module::cls, mod, MODULE_CLASS_DATA, module_init_default(), module_register(), parent, and tv.

Referenced by display_sdl_init().

Here is the call graph for this function:

◆ ~state_sdl()

state_sdl::~state_sdl ( )
inline

Definition at line 135 of file sdl.cpp.

135 {
137 }
void module_done(struct module *module_data)
Definition module.c:93

References mod, and module_done().

Here is the call graph for this function:

Member Data Documentation

◆ audio_buffer

struct ring_buffer* state_sdl::audio_buffer

Definition at line 101 of file sdl.cpp.

Referenced by configure_audio(), display_sdl_put_audio_frame(), and sdl_audio_callback().

◆ audio_frame

struct audio_frame state_sdl::audio_frame

Definition at line 102 of file sdl.cpp.

Referenced by configure_audio(), and display_sdl_reconfigure_audio().

◆ buffered_frames_count

int state_sdl::buffered_frames_count

Definition at line 105 of file sdl.cpp.

Referenced by display_sdl_putf(), and display_sdl_run().

◆ current_desc

struct video_desc state_sdl::current_desc

Definition at line 107 of file sdl.cpp.

Referenced by display_sdl_getf(), and display_sdl_reconfigure().

◆ current_display_desc

struct video_desc state_sdl::current_display_desc

with those desc new data frames will be generated (getf)

Definition at line 108 of file sdl.cpp.

Referenced by cleanup_screen(), display_frame(), display_sdl_reconfigure_real(), display_sdl_run(), and update_size().

◆ deinterlace

bool state_sdl::deinterlace

Definition at line 93 of file sdl.cpp.

Referenced by display_frame(), display_sdl_init(), and display_sdl_run().

◆ dst_rect

SDL_Rect state_sdl::dst_rect

Definition at line 91 of file sdl.cpp.

Referenced by compute_dst_rect(), and display_frame().

◆ fixed_h

int state_sdl::fixed_h

Definition at line 97 of file sdl.cpp.

Referenced by display_sdl_init().

◆ fixed_size

bool state_sdl::fixed_size

Definition at line 96 of file sdl.cpp.

Referenced by display_sdl_init(), and display_sdl_reconfigure_real().

◆ fixed_w

int state_sdl::fixed_w

Definition at line 97 of file sdl.cpp.

Referenced by display_sdl_init().

◆ frame_consumed_cv

condition_variable state_sdl::frame_consumed_cv

Definition at line 110 of file sdl.cpp.

Referenced by display_sdl_putf(), and display_sdl_run().

◆ frames

int state_sdl::frames

Definition at line 87 of file sdl.cpp.

Referenced by display_frame().

◆ free_frame_queue

queue<struct video_frame *> state_sdl::free_frame_queue

Definition at line 106 of file sdl.cpp.

Referenced by display_frame(), display_sdl_done(), and display_sdl_getf().

◆ fs

bool state_sdl::fs

Definition at line 94 of file sdl.cpp.

Referenced by display_sdl_init(), display_sdl_run(), and update_size().

◆ lock

mutex state_sdl::lock

Definition at line 109 of file sdl.cpp.

Referenced by display_frame(), display_sdl_getf(), display_sdl_putf(), and display_sdl_run().

◆ magic

uint32_t state_sdl::magic

Definition at line 84 of file sdl.cpp.

Referenced by display_sdl_done(), display_sdl_getf(), and display_sdl_putf().

◆ mod

struct module state_sdl::mod

Definition at line 117 of file sdl.cpp.

Referenced by state_sdl(), ~state_sdl(), and display_sdl_run().

◆ nodecorate

bool state_sdl::nodecorate

Definition at line 95 of file sdl.cpp.

Referenced by display_sdl_init(), and display_sdl_reconfigure_real().

◆ play_audio

bool state_sdl::play_audio

◆ screen_h

int state_sdl::screen_h

Definition at line 99 of file sdl.cpp.

Referenced by display_sdl_init(), and update_size().

◆ screen_w

int state_sdl::screen_w

Definition at line 99 of file sdl.cpp.

Referenced by display_sdl_init(), and update_size().

◆ sdl_flags_fs

uint32_t state_sdl::sdl_flags_fs

Definition at line 115 of file sdl.cpp.

Referenced by display_sdl_reconfigure_real(), and update_size().

◆ sdl_flags_win

uint32_t state_sdl::sdl_flags_win

Definition at line 115 of file sdl.cpp.

Referenced by display_sdl_reconfigure_real(), and update_size().

◆ sdl_screen

SDL_Surface* state_sdl::sdl_screen

Definition at line 90 of file sdl.cpp.

Referenced by cleanup_screen(), display_frame(), display_sdl_reconfigure_real(), and update_size().

◆ tv

struct timeval state_sdl::tv

Definition at line 86 of file sdl.cpp.

Referenced by state_sdl(), and display_frame().

◆ yuv_image

SDL_Overlay* state_sdl::yuv_image

Definition at line 89 of file sdl.cpp.

Referenced by cleanup_screen(), display_frame(), and display_sdl_reconfigure_real().


The documentation for this struct was generated from the following file: