![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "types.h"

Go to the source code of this file.
Classes | |
| struct | vo_postprocess_info |
Macros | |
| #define | VO_PP_ABI_VERSION 7 |
| #define | VO_PP_DOES_CHANGE_TILING_MODE 1 /* bool false */ |
| #define | VO_PP_PROPERTY_CODECS 0 /* codec_t[] all uncompressed */ |
Typedefs | |
| typedef void(* | vo_postprocess_done_t) (void *) |
| typedef void(* | vo_postprocess_get_out_desc_t) (void *s, struct video_desc *out, int *in_tile_mode, int *out_frame_count) |
| typedef bool(* | vo_postprocess_get_property_t) (void *state, int property, void *val, size_t *len) |
| typedef struct video_frame *(* | vo_postprocess_getf_t) (void *state) |
| typedef void *(* | vo_postprocess_init_t) (const char *cfg) |
| typedef bool(* | vo_postprocess_reconfigure_t) (void *state, struct video_desc desc) |
| typedef bool(* | vo_postprocess_t) (void *state, struct video_frame *in, struct video_frame *out, int req_out_pitch) |
Functions | |
| void | show_vo_postprocess_help (bool full) |
| bool | vo_postprocess (struct vo_postprocess_state *, struct video_frame *, struct video_frame *, int req_pitch) |
| void | vo_postprocess_done (struct vo_postprocess_state *s) |
| void | vo_postprocess_get_out_desc (struct vo_postprocess_state *, struct video_desc *out, int *display_mode, int *out_frames_count) |
| bool | vo_postprocess_get_property (struct vo_postprocess_state *, int property, void *val, size_t *len) |
| struct video_frame * | vo_postprocess_getf (struct vo_postprocess_state *) |
| struct vo_postprocess_state * | vo_postprocess_init (const char *config_string) |
| bool | vo_postprocess_reconfigure (struct vo_postprocess_state *, struct video_desc) |
Definition in file vo_postprocess.h.
| #define VO_PP_ABI_VERSION 7 |
Definition at line 53 of file vo_postprocess.h.
Referenced by init(), and show_vo_postprocess_help().
| #define VO_PP_DOES_CHANGE_TILING_MODE 1 /* bool false */ |
Definition at line 51 of file vo_postprocess.h.
Referenced by display_reconfigure(), split_get_property(), and vo_postprocess_get_property().
| #define VO_PP_PROPERTY_CODECS 0 /* codec_t[] all uncompressed */ |
Definition at line 50 of file vo_postprocess.h.
Referenced by change_pixfmt_vo_pp_get_property(), delay_get_property(), display_ctl_property(), scale_get_property(), and vo_postprocess_get_property().
| typedef void(* vo_postprocess_done_t) (void *) |
Cleanup function
Definition at line 115 of file vo_postprocess.h.
| typedef void(* vo_postprocess_get_out_desc_t) (void *s, struct video_desc *out, int *in_tile_mode, int *out_frame_count) |
Definition at line 83 of file vo_postprocess.h.
Returns supported codecs
| state | postprocessor state |
| property | property to be queried |
| val | returned value, 0 indicates that the property is understood, but there was a problem processing the query (true is returned) |
| len | argument length IN - length of allocated block OUT - returned size (must be equal or less than allocated space) |
Definition at line 99 of file vo_postprocess.h.
| typedef struct video_frame *(* vo_postprocess_getf_t) (void *state) |
Definition at line 69 of file vo_postprocess.h.
| typedef void *(* vo_postprocess_init_t) (const char *cfg) |
| init | optional configuration, cannot be null |
Definition at line 60 of file vo_postprocess.h.
| typedef bool(* vo_postprocess_reconfigure_t) (void *state, struct video_desc desc) |
Reconfigures postprocessor for frame and returns resulting frame properties (they can be different)
| state | postprocessor state |
| desc | video description to be configured to |
Definition at line 69 of file vo_postprocess.h.
| typedef bool(* vo_postprocess_t) (void *state, struct video_frame *in, struct video_frame *out, int req_out_pitch) |
Postprocesses video frame
| state | postprocessor state |
| input | frame |
Definition at line 110 of file vo_postprocess.h.
| 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().
