![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <assert.h>#include <compat/platform_semaphore.h>#include <pthread.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "types.h"#include "utils/fs.h"#include "video_codec.h"#include "video_export.h"#include "video_frame.h"
Go to the source code of this file.
Classes | |
| struct | output_entry |
| struct | video_export |
Macros | |
| #define | MAX_QUEUE_SIZE 300 |
Functions | |
| void | output_summary (struct video_export *s) |
| void | video_export (struct video_export *s, struct video_frame *frame) |
| void | video_export_destroy (struct video_export *s) |
| struct video_export * | video_export_init (const char *path) |
| static void * | video_export_thread (void *arg) |
Definition in file video_export.c.
| #define MAX_QUEUE_SIZE 300 |
Definition at line 52 of file video_export.c.
Referenced by hd_rum_decompress::state_transcoder_decompress::frame_arrived(), and video_export().
| void output_summary | ( | struct video_export * | s | ) |
Definition at line 148 of file video_export.c.
References video_desc::color_spec, video_desc::fps, get_fourcc(), video_desc::height, video_desc::interlacing, MAX_PATH_SIZE, name, video_export::path, video_export::saved_desc, video_export::total, VIDEO_EXPORT_SUMMARY_VERSION, and video_desc::width.
Referenced by video_export_destroy().

| void video_export | ( | struct video_export * | s, |
| struct video_frame * | frame ) |
Definition at line 203 of file video_export.c.
References video_frame::color_spec, output_entry::data, tile::data, output_entry::data_len, tile::data_len, output_entry::filename, frame, get_codec_file_extension(), video_export::head, video_export::lock, MAX_PATH_SIZE, MAX_QUEUE_SIZE, output_entry::next, video_export::path, platform_sem_post(), video_export::queue_len, video_export::saved_desc, video_export::semaphore, video_export::tail, video_frame::tile_count, video_frame::tiles, video_export::total, video_desc_eq(), video_desc_from_frame(), and video_desc::width.
Referenced by export_video().

| void video_export_destroy | ( | struct video_export * | s | ) |
Definition at line 172 of file video_export.c.
References video_export::head, video_export::lock, output_entry::next, output_summary(), video_export::path, platform_sem_post(), video_export::semaphore, video_export::tail, video_export::thread_id, and video_export::total.
Referenced by disable_export(), and enable_export().

| struct video_export * video_export_init | ( | const char * | path | ) |
Definition at line 125 of file video_export.c.
References video_export::head, video_export::lock, video_export::path, platform_sem_init(), video_export::queue_len, video_export::saved_desc, video_export::semaphore, video_export::tail, video_export::thread_id, video_export::total, and video_export_thread().
Referenced by enable_export().

|
static |
Definition at line 84 of file video_export.c.
References output_entry::data, output_entry::data_len, output_entry::filename, video_export::head, video_export::lock, output_entry::next, platform_sem_wait(), video_export::queue_len, and video_export::semaphore.
Referenced by video_export_init().
