UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
null.c File Reference
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#include "debug.h"
#include "lib_common.h"
#include "video.h"
#include "video_display.h"
Include dependency graph for null.c:

Go to the source code of this file.

Classes

struct  state_null
 

Macros

#define MAGIC_NULL   0x17bad83f
 

Functions

static void display_null_done (void *state)
 
static bool display_null_get_property (void *state, int property, void *val, size_t *len)
 
static struct video_frame * display_null_getf (void *state)
 
static void * display_null_init (struct module *parent, const char *fmt, unsigned int flags)
 
static void display_null_probe (struct device_info **available_cards, int *count, void(**deleter)(void *))
 
static void display_null_put_audio_frame (void *state, const struct audio_frame *frame)
 
static bool display_null_putf (void *state, struct video_frame *frame, long long nonblock)
 
static bool display_null_reconfigure (void *state, struct video_desc desc)
 
static bool display_null_reconfigure_audio (void *state, int quant_samples, int channels, int sample_rate)
 
 REGISTER_HIDDEN_MODULE (none, &display_null_info, LIBRARY_CLASS_VIDEO_DISPLAY, VIDEO_DISPLAY_ABI_VERSION)
 

Variables

static const struct video_display_info display_null_info
 

Macro Definition Documentation

◆ MAGIC_NULL

#define MAGIC_NULL   0x17bad83f

Function Documentation

◆ display_null_done()

static void display_null_done ( void * state)
static

Definition at line 81 of file null.c.

82{
83 struct state_null *s = (struct state_null *)state;
84 assert(s->magic == MAGIC_NULL);
85 free(s);
86}
void ** state
uint32_t magic
Definition null.c:57
#define MAGIC_NULL
Definition null.c:54

References state_null::magic, MAGIC_NULL, and state.

◆ display_null_get_property()

static bool display_null_get_property ( void * state,
int property,
void * val,
size_t * len )
static

Definition at line 104 of file null.c.

105{
106 UNUSED(state);
108 UNUSED(val);
109 UNUSED(len);
110
111 return false;
112}
#define UNUSED(x)
int void * val
int void size_t * len
int property

References len, property, state, UNUSED, and val.

◆ display_null_getf()

static struct video_frame * display_null_getf ( void * state)
static

Definition at line 88 of file null.c.

89{
90 struct state_null *s = (struct state_null *)state;
91 assert(s->magic == MAGIC_NULL);
92 return NULL;
93}

References state_null::magic, MAGIC_NULL, and state.

◆ display_null_init()

static void * display_null_init ( struct module * parent,
const char * fmt,
unsigned int flags )
static

Definition at line 67 of file null.c.

68{
69 UNUSED(fmt);
72 struct state_null *s;
73
74 s = (struct state_null *)calloc(1, sizeof(struct state_null));
75 if (s != NULL) {
76 s->magic = MAGIC_NULL;
77 }
78 return s;
79}
const char * fmt
const char unsigned int flags
const char * parent
Definition settings.cpp:198

References flags, fmt, state_null::magic, MAGIC_NULL, parent, and UNUSED.

◆ display_null_probe()

static void display_null_probe ( struct device_info ** available_cards,
int * count,
void(** deleter )(void *) )
static

Definition at line 60 of file null.c.

61{
63 *available_cards = NULL;
64 *count = 0;
65}
int void(** deleter)(void *))
int count
Definition hd-rum.c:44

References count, deleter, and UNUSED.

◆ display_null_put_audio_frame()

static void display_null_put_audio_frame ( void * state,
const struct audio_frame * frame )
static

Definition at line 123 of file null.c.

124{
125 UNUSED(state);
126 UNUSED(frame);
127}
struct video_frame * frame

References frame, state, and UNUSED.

◆ display_null_putf()

static bool display_null_putf ( void * state,
struct video_frame * frame,
long long nonblock )
static

Definition at line 95 of file null.c.

96{
97 struct state_null *s = (struct state_null *)state;
98 assert(s->magic == MAGIC_NULL);
101 return true;
102}
struct video_frame long long nonblock

References frame, state_null::magic, MAGIC_NULL, nonblock, state, and UNUSED.

◆ display_null_reconfigure()

static bool display_null_reconfigure ( void * state,
struct video_desc desc )
static

Definition at line 114 of file null.c.

115{
116 UNUSED(desc);
117 struct state_null *s = (struct state_null *)state;
118 assert(s->magic == MAGIC_NULL);
119
120 return true;
121}
struct video_desc desc

References desc, state_null::magic, MAGIC_NULL, state, and UNUSED.

◆ display_null_reconfigure_audio()

static bool display_null_reconfigure_audio ( void * state,
int quant_samples,
int channels,
int sample_rate )
static

Definition at line 129 of file null.c.

131{
132 UNUSED(state);
136
137 return false;
138}
int int int sample_rate
int int channels
int quant_samples

References channels, quant_samples, sample_rate, state, and UNUSED.

◆ REGISTER_HIDDEN_MODULE()

REGISTER_HIDDEN_MODULE ( none ,
& display_null_info,
LIBRARY_CLASS_VIDEO_DISPLAY ,
VIDEO_DISPLAY_ABI_VERSION  )

Variable Documentation

◆ display_null_info

const struct video_display_info display_null_info
static
Initial value:
= {
NULL,
}
#define DISPLAY_NO_GENERIC_FPS_INDICATOR
static bool display_null_reconfigure(void *state, struct video_desc desc)
Definition null.c:114
static struct video_frame * display_null_getf(void *state)
Definition null.c:88
static void display_null_put_audio_frame(void *state, const struct audio_frame *frame)
Definition null.c:123
static bool display_null_reconfigure_audio(void *state, int quant_samples, int channels, int sample_rate)
Definition null.c:129
static void display_null_probe(struct device_info **available_cards, int *count, void(**deleter)(void *))
Definition null.c:60
static bool display_null_putf(void *state, struct video_frame *frame, long long nonblock)
Definition null.c:95
static void * display_null_init(struct module *parent, const char *fmt, unsigned int flags)
Definition null.c:67
static bool display_null_get_property(void *state, int property, void *val, size_t *len)
Definition null.c:104
static void display_null_done(void *state)
Definition null.c:81

Definition at line 140 of file null.c.