![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "vo_postprocess.h"#include <assert.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "debug.h"#include "lib_common.h"#include "utils/color_out.h"#include "utils/list.h"#include "utils/macros.h"#include "video_codec.h"#include "video_display.h"
Go to the source code of this file.
Classes | |
| struct | vo_postprocess_state |
| struct | vo_postprocess_state_single |
Macros | |
| #define | MAGIC to_fourcc('V', 'P', 'S', 'T') |
| #define | MAGIC_SINGLE to_fourcc('V', 'P', 'S', 'S') |
| #define | MOD_NAME "[vo_postprocess] " |
Functions | |
| static _Bool | init (struct vo_postprocess_state *s, const char *config_string) |
| void | show_vo_postprocess_help (bool full) |
| bool | vo_postprocess (struct vo_postprocess_state *s, struct video_frame *in, struct video_frame *out, int req_pitch) |
| void | vo_postprocess_done (struct vo_postprocess_state *s) |
| void | vo_postprocess_get_out_desc (struct vo_postprocess_state *s, struct video_desc *out, int *display_mode, int *out_frames_count) |
| bool | vo_postprocess_get_property (struct vo_postprocess_state *s, int property, void *val, size_t *len) |
| struct video_frame * | vo_postprocess_getf (struct vo_postprocess_state *s) |
| struct vo_postprocess_state * | vo_postprocess_init (const char *config_string) |
| bool | vo_postprocess_reconfigure (struct vo_postprocess_state *s, struct video_desc desc) |
Ideas for 2.:
Definition in file vo_postprocess.c.
Definition at line 66 of file vo_postprocess.c.
Referenced by vo_postprocess_get_property(), and vo_postprocess_init().
Definition at line 67 of file vo_postprocess.c.
Referenced by init(), and vo_postprocess_get_property().
| #define MOD_NAME "[vo_postprocess] " |
Definition at line 68 of file vo_postprocess.c.
Referenced by init(), and vo_postprocess_reconfigure().
|
static |
Definition at line 91 of file vo_postprocess.c.
References vo_postprocess_state_single::funcs, vo_postprocess_info::init, LIBRARY_CLASS_VIDEO_POSTPROCESS, load_library(), LOG_LEVEL_ERROR, log_msg(), MAGIC_SINGLE, MOD_NAME, vo_postprocess_state::postprocessors, simple_linked_list_append(), state, and VO_PP_ABI_VERSION.
Referenced by vo_postprocess_init().

| void show_vo_postprocess_help | ( | bool | full | ) |
Definition at line 82 of file vo_postprocess.c.
References color_printf(), LIBRARY_CLASS_VIDEO_POSTPROCESS, list_modules(), TERM_BOLD, TERM_RESET, and VO_PP_ABI_VERSION.
Referenced by initialize_video_display(), and vo_postprocess_init().

| bool vo_postprocess | ( | struct vo_postprocess_state * | s, |
| struct video_frame * | in, | ||
| struct video_frame * | out, | ||
| int | req_pitch ) |
param in will be NULL if vo_postprocess_get_out_desc() returns out_frames_count > 1 and will be called out_frames_count-1 times
Definition at line 215 of file vo_postprocess.c.
References video_frame::color_spec, vo_postprocess_state_single::f, vo_postprocess_state::postprocessors, simple_linked_list_first(), simple_linked_list_it_init(), simple_linked_list_it_next(), simple_linked_list_it_peek_next(), state, video_frame::tiles, vc_get_linesize(), and tile::width.
Referenced by display_put_frame().

| void vo_postprocess_done | ( | struct vo_postprocess_state * | s | ) |
Definition at line 245 of file vo_postprocess.c.
References vo_postprocess_state::postprocessors, simple_linked_list_destroy(), simple_linked_list_it_init(), simple_linked_list_it_next(), and state.
Referenced by display_done(), process_message(), and vo_postprocess_init().

| void vo_postprocess_get_out_desc | ( | struct vo_postprocess_state * | s, |
| struct video_desc * | out, | ||
| int * | display_mode, | ||
| int * | out_frames_count ) |
Definition at line 259 of file vo_postprocess.c.
References vo_postprocess_state::postprocessors, simple_linked_list_last(), and state.
Referenced by display_reconfigure(), and restrict_returned_codecs().

| bool vo_postprocess_get_property | ( | struct vo_postprocess_state * | s, |
| int | property, | ||
| void * | val, | ||
| size_t * | len ) |
Definition at line 268 of file vo_postprocess.c.
References len, MAGIC, vo_postprocess_state::magic, MAGIC_SINGLE, vo_postprocess_state::postprocessors, property, simple_linked_list_first(), simple_linked_list_last(), simple_linked_list_size(), state, val, VO_PP_DOES_CHANGE_TILING_MODE, and VO_PP_PROPERTY_CODECS.
Referenced by display_ctl_property(), and display_reconfigure().

| struct video_frame * vo_postprocess_getf | ( | struct vo_postprocess_state * | s | ) |
Definition at line 188 of file vo_postprocess.c.
References vo_postprocess_state::postprocessors, simple_linked_list_it_destroy(), simple_linked_list_it_init(), simple_linked_list_it_next(), and state.
Referenced by display_get_frame().

| struct vo_postprocess_state * vo_postprocess_init | ( | const char * | config_string | ) |
Definition at line 128 of file vo_postprocess.c.
References init(), MAGIC, vo_postprocess_state::magic, vo_postprocess_state::postprocessors, show_vo_postprocess_help(), simple_linked_list_init(), and vo_postprocess_done().
Referenced by initialize_video_display(), and process_message().

| bool vo_postprocess_reconfigure | ( | struct vo_postprocess_state * | s, |
| struct video_desc | desc ) |
Definition at line 152 of file vo_postprocess.c.
References desc, DISPLAY_PROPERTY_VIDEO_MERGED, LOG_LEVEL_ERROR, log_msg(), MOD_NAME, vo_postprocess_state::postprocessors, simple_linked_list_it_destroy(), simple_linked_list_it_init(), simple_linked_list_it_next(), simple_linked_list_size(), and state.
Referenced by display_reconfigure(), and restrict_returned_codecs().
