![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cstdlib>#include <opencv2/imgproc.hpp>#include <opencv2/imgproc/types_c.h>#include "capture_filter/resize_utils.h"#include "debug.h"#include "utils/color_out.h"#include "video.h"
Go to the source code of this file.
Macros | |
| #define | DEFAULT_ALGO INTER_LINEAR |
| #define | MOD_NAME "[resize] " |
Functions | |
| static int | get_out_cv_data_type (codec_t pixfmt) |
| int | resize_algo_from_string (const char *str) |
| static const char * | resize_algo_to_string (int algo) |
| void | resize_frame (char *indata, codec_t in_color, char *outdata, int width, int height, struct resize_param *resize_spec) |
| static void | resize_frame_dimensions (char *indata, codec_t in_color, char *outdata, int width, int height, int target_width, int target_height, int algo) |
| static Mat | ug_to_rgb_mat (codec_t codec, int width, int height, char *indata) |
Variables | ||
| struct { | ||
| const char * name | ||
| int val | ||
| } | interp_map [] | |
Definition in file resize_utils.cpp.
| #define DEFAULT_ALGO INTER_LINEAR |
Definition at line 69 of file resize_utils.cpp.
Referenced by resize_algo_from_string(), and resize_frame().
| #define MOD_NAME "[resize] " |
Definition at line 70 of file resize_utils.cpp.
Referenced by ug_to_rgb_mat().
|
static |
Definition at line 130 of file resize_utils.cpp.
References DEPTH16, and get_bits_per_component().
Referenced by resize_frame(), and resize_frame_dimensions().

| int resize_algo_from_string | ( | const char * | str | ) |
Definition at line 224 of file resize_utils.cpp.
References color_printf(), DEFAULT_ALGO, interp_map, RESIZE_ALGO_HELP_SHOWN, RESIZE_ALGO_UNKN, and TBOLD.
Referenced by parse_fmt().

|
static |
Definition at line 243 of file resize_utils.cpp.
References interp_map.
Referenced by resize_frame().
| void resize_frame | ( | char * | indata, |
| codec_t | in_color, | ||
| char * | outdata, | ||
| int | width, | ||
| int | height, | ||
| struct resize_param * | resize_spec ) |
Definition at line 184 of file resize_utils.cpp.
References resize_param::algo, DEBUG_TIMER_START, DEBUG_TIMER_STOP, DEFAULT_ALGO, resize_param::factor, get_out_cv_data_type(), resize_param::mode, MSG, RESIZE_ALGO_DFL, resize_algo_to_string(), resize_frame_dimensions(), resize_param::target_height, resize_param::target_width, ug_to_rgb_mat(), resize_param::USE_DIMENSIONS, and resize_param::USE_FRACTION.
Referenced by filter().

|
static |
Definition at line 136 of file resize_utils.cpp.
References get_bits_per_component(), get_out_cv_data_type(), RG48, RGB, ug_to_rgb_mat(), and vc_get_linesize().
Referenced by resize_frame().

|
static |
Definition at line 85 of file resize_utils.cpp.
References I420, LOG, LOG_LEVEL_ERROR, MOD_NAME, RG48, RGB, RGBA, UYVY, and YUYV.
Referenced by resize_frame(), and resize_frame_dimensions().
| const struct { ... } interp_map[] |
Referenced by resize_algo_from_string(), and resize_algo_to_string().
| const char* name |
Definition at line 212 of file resize_utils.cpp.
| int val |
Definition at line 211 of file resize_utils.cpp.