![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "debug.h"#include "host.h"#include "video.h"#include "video_decompress.h"#include <libgpujpeg/gpujpeg_decoder.h>#include <libgpujpeg/gpujpeg_version.h>#include <pthread.h>#include <stdlib.h>#include "lib_common.h"#include "utils/macros.h"
Go to the source code of this file.
Classes | |
| struct | state_decompress_gpujpeg |
Macros | |
| #define | MOD_NAME "[GPUJPEG dec.] " |
| #define | NEW_PARAM_IMG_NO_COMP_COUNT |
Functions | |
| static int | configure_with (struct state_decompress_gpujpeg *s, struct video_desc desc) |
| static decompress_status | gpujpeg_decompress (void *state, unsigned char *dst, unsigned char *buffer, unsigned int src_len, int frame_seq, struct video_frame_callbacks *callbacks, struct pixfmt_desc *internal_prop) |
| static void | gpujpeg_decompress_done (void *state) |
| static int | gpujpeg_decompress_get_priority (codec_t compression, struct pixfmt_desc internal, codec_t ugc) |
| static int | gpujpeg_decompress_get_property (void *state, int property, void *val, size_t *len) |
| static void * | gpujpeg_decompress_init (void) |
| static int | gpujpeg_decompress_reconfigure (void *state, struct video_desc desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec) |
| static decompress_status | gpujpeg_probe_internal_codec (unsigned char *buffer, size_t len, struct pixfmt_desc *internal_prop) |
| REGISTER_MODULE (gpujpeg, &gpujpeg_info, LIBRARY_CLASS_VIDEO_DECOMPRESS, VIDEO_DECOMPRESS_ABI_VERSION) | |
Variables | |
| static const struct video_decompress_info | gpujpeg_info |
Definition in file gpujpeg.c.
| #define MOD_NAME "[GPUJPEG dec.] " |
Definition at line 57 of file gpujpeg.c.
Referenced by gpujpeg_decompress_init(), and gpujpeg_probe_internal_codec().
| #define NEW_PARAM_IMG_NO_COMP_COUNT |
Definition at line 60 of file gpujpeg.c.
Referenced by configure_with().
|
static |
Definition at line 74 of file gpujpeg.c.
References state_decompress_gpujpeg::bshift, state_decompress_gpujpeg::decoder, desc, state_decompress_gpujpeg::desc, FALSE, state_decompress_gpujpeg::gshift, video_desc::height, I420, log_level, LOG_LEVEL_INFO, MAX, NEW_PARAM_IMG_NO_COMP_COUNT, state_decompress_gpujpeg::out_codec, param, state_decompress_gpujpeg::pitch, RGB, RGBA, state_decompress_gpujpeg::rshift, TRUE, UYVY, vc_get_linesize(), VIDEO_CODEC_NONE, and video_desc::width.
Referenced by gpujpeg_decompress_reconfigure().

|
static |
Definition at line 250 of file gpujpeg.c.
References state_decompress_gpujpeg::bshift, cuda_devices, state_decompress_gpujpeg::decoder, DECODER_GOT_FRAME, DECODER_NO_FRAME, state_decompress_gpujpeg::desc, gpujpeg_probe_internal_codec(), state_decompress_gpujpeg::gshift, video_desc::height, I420, state_decompress_gpujpeg::out_codec, state_decompress_gpujpeg::pitch, RGB, RGBA, state_decompress_gpujpeg::rshift, state, UNUSED, UYVY, vc_copylineRGBtoRGBA, vc_get_linesize(), VIDEO_CODEC_NONE, and video_desc::width.

|
static |
Definition at line 327 of file gpujpeg.c.
References state_decompress_gpujpeg::decoder, and state.
|
static |
Definition at line 337 of file gpujpeg.c.
References codec_is_a_rgb(), I420, JPEG, MJPG, RGB, RGBA, UYVY, and VIDEO_CODEC_NONE.

|
static |
Definition at line 306 of file gpujpeg.c.
References DECOMPRESS_PROPERTY_ACCEPTS_CORRUPTED_FRAME, FALSE, len, property, state, TRUE, UNUSED, and val.
|
static |
Definition at line 130 of file gpujpeg.c.
References cuda_devices, LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, log_msg(), MOD_NAME, and TRUE.

|
static |
Definition at line 156 of file gpujpeg.c.
References state_decompress_gpujpeg::bshift, configure_with(), state_decompress_gpujpeg::decoder, desc, state_decompress_gpujpeg::desc, state_decompress_gpujpeg::gshift, I420, state_decompress_gpujpeg::out_codec, PARAM_INTERLACING, state_decompress_gpujpeg::pitch, RGB, RGBA, state_decompress_gpujpeg::rshift, state, TRUE, UYVY, VIDEO_CODEC_NONE, and video_desc_eq_excl_param().

|
static |
Definition at line 184 of file gpujpeg.c.
References DECODER_GOT_CODEC, DECODER_NO_FRAME, pixfmt_desc::depth, len, log_level, LOG_LEVEL_INFO, LOG_LEVEL_VERBOSE, LOG_LEVEL_WARNING, log_msg(), MAX, MOD_NAME, pixfmt_desc::rgb, and pixfmt_desc::subsampling.
Referenced by gpujpeg_decompress().

| REGISTER_MODULE | ( | gpujpeg | , |
| & | gpujpeg_info, | ||
| LIBRARY_CLASS_VIDEO_DECOMPRESS | , | ||
| VIDEO_DECOMPRESS_ABI_VERSION | ) |
|
static |