![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <stdio.h>#include <string.h>#include <string>#include "debug.h"#include "video_codec.h"#include "video_decompress.h"#include "lib_common.h"
Go to the source code of this file.
Classes | |
| struct | state_decompress |
Macros | |
| #define | DECOMPRESS_MAGIC 0xdff34f21u |
Functions | |
| ADD_TO_PARAM ("decompress", "* decompress=<name>[:<codec>]\n" " Forces specified decompress module (will fail if not able to decompress\n" " the received compression). Optionally also force codec to decode to." " See 'uv --list-modules' to see available decompress modules.\n") | |
| void | decompress_done (struct state_decompress *s) |
| decompress_status | decompress_frame (struct state_decompress *s, unsigned char *dst, unsigned char *compressed, unsigned int compressed_len, int frame_seq, struct video_frame_callbacks *callbacks, struct pixfmt_desc *internal_prop) |
| Decompresses video frame. | |
| int | decompress_get_property (struct state_decompress *s, int property, void *val, size_t *len) |
| static struct state_decompress * | decompress_init (const video_decompress_info *vdi) |
| bool | decompress_init_multi (codec_t compression, struct pixfmt_desc internal_prop, codec_t out_codec, struct state_decompress **out, int count) |
| Initializes (multiple) decompress states. | |
| int | decompress_reconfigure (struct state_decompress *s, struct video_desc desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec) |
| static int | find_best_decompress (codec_t compression, struct pixfmt_desc internal_prop, codec_t out_pixfmt, int prio_min, int prio_max, const struct video_decompress_info **vdi, string &name) |
| static bool | try_initialize_decompress (const video_decompress_info *vdi, struct state_decompress **decompress_state, int substreams) |
Definition in file video_decompress.cpp.
| #define DECOMPRESS_MAGIC 0xdff34f21u |
Definition at line 52 of file video_decompress.cpp.
Referenced by decompress_done(), decompress_frame(), decompress_init(), and decompress_reconfigure().
| ADD_TO_PARAM | ( | "decompress" | ) |
|
static |
Initializes decompressor
| NULL | if initialization failed |
| not-NULL | state of new decompressor |
Definition at line 127 of file video_decompress.cpp.
References DECOMPRESS_MAGIC, state_decompress::functions, video_decompress_info::init, state_decompress::magic, and state_decompress::state.
Referenced by try_initialize_decompress().
|
static |
| [in] | compression | input compression |
| [in] | out_pixfmt | output pixel format |
| [in] | prio_min | minimal priority that can be probed |
| [in] | prio_max | maximal priority that can be probed |
| [out] | magic | if decompressor was found here is stored its magic |
| -1 | if no found |
| priority | best decoder's priority |
Definition at line 78 of file video_decompress.cpp.
References commandline_params, get_codec_from_name(), video_decompress_info::get_decompress_priority, get_libraries_for_class(), LIBRARY_CLASS_VIDEO_DECOMPRESS, name, and VIDEO_DECOMPRESS_ABI_VERSION.
Referenced by decompress_init_multi().

|
static |
Attemps to initialize decompress of given magic
| [in] | vdi | metadata struct of requested decompressor |
| [out] | decompress_state | decoder state |
| [in] | substreams | number of decoders to be created |
Definition at line 150 of file video_decompress.cpp.
References decompress_done(), and decompress_init().
Referenced by decompress_init_multi().
