![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "debug.h"#include "host.h"#include "lib_common.h"#include "video.h"#include "video_display.h"#include <GL/gl.h>#include <X11/Xlib.h>#include <sys/time.h>#include <assert.h>#include <semaphore.h>#include <signal.h>#include <pthread.h>#include <sail.h>#include <misc.h>#include <tv.h>#include <video_codec.h>
Go to the source code of this file.
Classes | |
| struct | state_sage |
Macros | |
| #define | MAGIC_SAGE 0x3e960c47 |
Functions | |
| static void | display_sage_done (void *state) |
| static bool | display_sage_get_property (void *state, int property, void *val, size_t *len) |
| static struct video_frame * | display_sage_getf (void *state) |
| static int | display_sage_handle_events (void) |
| static void * | display_sage_init (struct module *parent, const char *fmt, unsigned int flags) |
| static void | display_sage_probe (struct device_info **available_cards, int *count, void(**deleter)(void *)) |
| static void | display_sage_put_audio_frame (void *state, const struct audio_frame *frame) |
| static bool | display_sage_putf (void *state, struct video_frame *frame, long long nonblock) |
| static bool | display_sage_reconfigure (void *state, struct video_desc desc) |
| static bool | display_sage_reconfigure_audio (void *state, int quant_samples, int channels, int sample_rate) |
| static void | display_sage_run (void *arg) |
| static sail * | initSage (const char *confName, const char *fsIP, int appID, int nodeID, int width, int height, codec_t codec) |
| REGISTER_MODULE (sage, &display_sage_info, LIBRARY_CLASS_VIDEO_DISPLAY, VIDEO_DISPLAY_ABI_VERSION) | |
Variables | |
| static const struct video_display_info | display_sage_info |
| #define MAGIC_SAGE 0x3e960c47 |
Definition at line 79 of file sage.cpp.
Referenced by display_sage_done(), display_sage_getf(), display_sage_init(), display_sage_putf(), display_sage_reconfigure(), and display_sage_run().
|
static |
Definition at line 302 of file sage.cpp.
References state_sage::buffer_writable_cond, state_sage::buffer_writable_lock, state_sage::frame, state_sage::magic, MAGIC_SAGE, state_sage::sage_state, state_sage::semaphore, state, state_sage::thread_id, and vf_free().

|
static |
Definition at line 491 of file sage.cpp.
References codecs, DISPLAY_PROPERTY_BUF_PITCH, DISPLAY_PROPERTY_CODECS, DISPLAY_PROPERTY_RGB_SHIFT, DXT1, DXT5, len, PITCH_DEFAULT, property, state_sage::requestedDisplayCodec, RGB, RGBA, state, UNUSED, UYVY, val, and VIDEO_CODEC_NONE.
|
static |
Definition at line 319 of file sage.cpp.
References state_sage::buffer_writable, state_sage::buffer_writable_cond, state_sage::buffer_writable_lock, FALSE, state_sage::frame, state_sage::grab_waiting, state_sage::magic, MAGIC_SAGE, state, and TRUE.
|
static |
Prototyping
Definition at line 115 of file sage.cpp.
Referenced by display_sage_run().
|
static |
Definition at line 171 of file sage.cpp.
References state_sage::appID, state_sage::buffer_writable, state_sage::buffer_writable_cond, state_sage::buffer_writable_lock, state_sage::confName, debug_msg, state_sage::deinterlace, display_sage_run(), DXT1, DXT5, flags, fmt, state_sage::frame, state_sage::frames, state_sage::fsIP, get_codec_from_fcc(), state_sage::grab_waiting, INIT_NOERR, state_sage::is_tx, state_sage::magic, MAGIC_SAGE, state_sage::nodeID, parent, state_sage::requestedDisplayCodec, RGB, RGBA, state_sage::sage_state, state_sage::semaphore, state_sage::t0, state_sage::thread_id, state_sage::tile, UNUSED, UYVY, vf_alloc(), vf_get_tile(), and VIDEO_CODEC_NONE.

|
static |
Definition at line 554 of file sage.cpp.
References count, deleter, device_info::dev, name, and UNUSED.
|
static |
|
static |
Definition at line 337 of file sage.cpp.
References state_sage::buffer_writable, state_sage::buffer_writable_lock, frame, state_sage::magic, MAGIC_SAGE, nonblock, state_sage::semaphore, state_sage::should_exit, state, and UNUSED.
|
static |
Definition at line 447 of file sage.cpp.
References state_sage::appID, video_desc::color_spec, video_frame::color_spec, state_sage::confName, tile::data, tile::data_len, desc, DXT1, DXT5, video_desc::fps, video_frame::fps, state_sage::frame, state_sage::fsIP, tile::height, video_desc::height, initSage(), video_desc::interlacing, video_frame::interlacing, state_sage::magic, MAGIC_SAGE, state_sage::nodeID, RGB, RGBA, state_sage::sage_state, state, state_sage::tile, UYVY, vc_get_linesize(), tile::width, and video_desc::width.

|
static |
Definition at line 543 of file sage.cpp.
References channels, quant_samples, sample_rate, state, and UNUSED.
|
static |
Definition at line 120 of file sage.cpp.
References state_sage::buffer_writable, state_sage::buffer_writable_cond, state_sage::buffer_writable_lock, video_frame::color_spec, tile::data, state_sage::deinterlace, display_sage_handle_events(), exit_uv(), state_sage::frame, state_sage::frames, state_sage::grab_waiting, tile::height, LOG_LEVEL_INFO, log_msg(), state_sage::magic, MAGIC_SAGE, msg, state_sage::sage_state, state_sage::semaphore, state_sage::should_exit, state_sage::t0, state_sage::tile, tv_diff(), vc_deinterlace(), vc_get_linesize(), and tile::width.
Referenced by display_sage_init().

|
static |
Definition at line 367 of file sage.cpp.
References state_sage::appID, state_sage::confName, DXT1, DXT5, state_sage::fsIP, state_sage::nodeID, RGB, RGBA, and UYVY.
Referenced by display_sage_reconfigure().
| REGISTER_MODULE | ( | sage | , |
| & | display_sage_info, | ||
| LIBRARY_CLASS_VIDEO_DISPLAY | , | ||
| VIDEO_DISPLAY_ABI_VERSION | ) |
|
static |
Definition at line 563 of file sage.cpp.