![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <errno.h>#include <stdlib.h>#include <string.h>#include "capture_filter.h"#include "capture_filter/resize_utils.h"#include "debug.h"#include "lib_common.h"#include "utils/color_out.h"#include "utils/macros.h"#include "utils/parallel_conv.h"#include "video.h"#include "video_codec.h"#include "vo_postprocess/capture_filter_wrapper.h"
Go to the source code of this file.
Classes | |
| struct | state_resize |
Macros | |
| #define | MOD_NAME "[resize filter] " |
Functions | |
| static void | cleanup_common (struct state_resize *s) |
| static void | done (void *state) |
| static struct video_frame * | filter (void *state, struct video_frame *in) |
| static int | init (struct module *parent, const char *cfg, void **state) |
| static int | parse_fmt (char *cfg, struct resize_param *param) |
| static bool | reconfigure_if_needed (struct state_resize *s, const struct video_frame *in) |
| REGISTER_MODULE (resize, &capture_filter_resize, LIBRARY_CLASS_CAPTURE_FILTER, CAPTURE_FILTER_ABI_VERSION) | |
| static void | usage () |
| static void | vo_pp_set_out_buffer (void *state, char *buffer) |
Variables | |
| static const struct capture_filter_info | capture_filter_resize |
Definition in file resize.c.
|
static |
Definition at line 172 of file resize.c.
References state_resize::dec_frame, and vf_free().
Referenced by done(), and reconfigure_if_needed().

|
static |
Definition at line 179 of file resize.c.
References cleanup_common(), and state.

|
static |
Definition at line 231 of file resize.c.
References video_frame::callbacks, video_frame::color_spec, tile::data, video_frame_callbacks::data_deleter, tile::data_len, state_resize::dec_frame, state_resize::decoder, video_frame_callbacks::dispose, tile::height, state_resize::out_desc, parallel_pix_conv(), state_resize::param, reconfigure_if_needed(), resize_frame(), state, video_frame::tile_count, video_frame::tiles, vc_get_linesize(), vc_memcpy, vf_alloc_desc(), vf_data_deleter(), vf_free(), VIDEO_FRAME_DISPOSE, state_resize::vo_pp_out_buffer, and tile::width.

|
static |
Definition at line 147 of file resize.c.
References fmt, param, state_resize::param, parent, parse_fmt(), RESIZE_ALGO_DFL, state, UNUSED, and usage().

|
static |
Definition at line 101 of file resize.c.
References IS_KEY_PREFIX, LOG_LEVEL_ERROR, log_msg(), MSG, param, resize_algo_from_string(), and RESIZE_ALGO_HELP_SHOWN.
Referenced by init().

|
static |
Definition at line 186 of file resize.c.
References cleanup_common(), codec_is_in_set(), video_desc::color_spec, video_frame::color_spec, state_resize::dec_frame, state_resize::decoder, DEPTH8, resize_param::factor, get_best_decoder_from(), get_bits_per_component(), get_codec_name(), tile::height, video_desc::height, resize_param::mode, MSG, state_resize::out_desc, state_resize::param, RESIZE_SUPPORTED_PIXFMT_INIT, RG48, RGB, state_resize::saved_desc, resize_param::target_height, resize_param::target_width, video_frame::tiles, vc_memcpy, vf_alloc_desc_data(), VIDEO_CODEC_NONE, video_desc_eq(), video_desc_from_frame(), tile::width, and video_desc::width.
Referenced by filter().

| REGISTER_MODULE | ( | resize | , |
| & | capture_filter_resize, | ||
| LIBRARY_CLASS_CAPTURE_FILTER | , | ||
| CAPTURE_FILTER_ABI_VERSION | ) |
|
static |
Definition at line 80 of file resize.c.
References color_printf(), TBOLD, and TRED.
Referenced by init().

|
static |
Definition at line 272 of file resize.c.
References state, and state_resize::vo_pp_out_buffer.
|
static |