![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "cuda_dxt/cuda_dxt.h"#include <pthread.h>#include <stdlib.h>#include "libgpujpeg/gpujpeg_decoder.h"#include "libgpujpeg/gpujpeg_version.h"#include "debug.h"#include "lib_common.h"#include "host.h"#include "utils/synchronized_queue.h"#include "video.h"#include "video_decompress.h"
Go to the source code of this file.
Macros | |
| #define | MOD_NAME "[GPUJPEG to DXT] " |
Functions | |
| static void | flush (struct state_decompresss_gpujpeg_to_dxt *s) |
| static decompress_status | gpujpeg_to_dxt_decompress (void *state, unsigned char *dst, unsigned char *buffer, unsigned int src_len, int frame_seq, video_frame_callbacks *, codec_t *) |
| static void | gpujpeg_to_dxt_decompress_done (void *state) |
| static int | gpujpeg_to_dxt_decompress_get_priority (codec_t compression, struct pixfmt_desc internal, codec_t ugc) |
| static int | gpujpeg_to_dxt_decompress_get_property (void *state, int property, void *val, size_t *len) |
| static void * | gpujpeg_to_dxt_decompress_init (void) |
| static int | gpujpeg_to_dxt_decompress_reconfigure (void *state, struct video_desc desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec) |
| static int | reconfigure_thread (struct thread_data *s, struct video_desc desc, int ppb) |
| REGISTER_MODULE (gpujpeg_to_dxt, &gpujpeg_to_dxt_info, LIBRARY_CLASS_VIDEO_DECOMPRESS, VIDEO_DECOMPRESS_ABI_VERSION) | |
| static void * | worker_thread (void *arg) |
Variables | |
| static const struct video_decompress_info | gpujpeg_to_dxt_info |
Definition in file gpujpeg_to_dxt.cpp.
| #define MOD_NAME "[GPUJPEG to DXT] " |
Definition at line 59 of file gpujpeg_to_dxt.cpp.
Referenced by gpujpeg_to_dxt_decompress_init(), and worker_thread().
|
static |
Definition at line 210 of file gpujpeg_to_dxt.cpp.
References cuda_devices_count.
Referenced by gpujpeg_to_dxt_decompress_done(), and gpujpeg_to_dxt_decompress_reconfigure().
|
static |
Definition at line 308 of file gpujpeg_to_dxt.cpp.
References cuda_devices_count, DECODER_GOT_FRAME, video_desc::height, state, UNUSED, and video_desc::width.
|
static |
Definition at line 347 of file gpujpeg_to_dxt.cpp.
References cuda_devices_count, flush(), and state.

|
static |
Definition at line 369 of file gpujpeg_to_dxt.cpp.
|
static |
Definition at line 337 of file gpujpeg_to_dxt.cpp.
|
static |
Definition at line 183 of file gpujpeg_to_dxt.cpp.
References cuda_devices, cuda_devices_count, LOG_LEVEL_ERROR, log_msg(), MOD_NAME, TRUE, and worker_thread().

|
static |
Reconfigureation function
Definition at line 231 of file gpujpeg_to_dxt.cpp.
References cuda_devices_count, desc, DXT1, DXT5, FALSE, flush(), state, TRUE, UNUSED, and video_desc::width.

|
static |
Definition at line 274 of file gpujpeg_to_dxt.cpp.
References cuda_devices, cuda_wrapper_free(), cuda_wrapper_malloc_host(), CUDA_WRAPPER_SUCCESS, desc, video_desc::height, LOG_LEVEL_ERROR, log_msg(), and video_desc::width.
Referenced by worker_thread().

| REGISTER_MODULE | ( | gpujpeg_to_dxt | , |
| & | gpujpeg_to_dxt_info, | ||
| LIBRARY_CLASS_VIDEO_DECOMPRESS | , | ||
| VIDEO_DECOMPRESS_ABI_VERSION | ) |
|
static |
Definition at line 122 of file gpujpeg_to_dxt.cpp.
References cuda_rgb_to_dxt1(), cuda_rgb_to_dxt6(), cuda_wrapper_free(), cuda_wrapper_memcpy(), CUDA_WRAPPER_MEMCPY_DEVICE_TO_HOST, CUDA_WRAPPER_SUCCESS, DXT1, video_desc::height, LOG_LEVEL_ERROR, log_msg(), MOD_NAME, reconfigure_thread(), and video_desc::width.
Referenced by display_xrgl_run(), and gpujpeg_to_dxt_decompress_init().

|
static |
Definition at line 373 of file gpujpeg_to_dxt.cpp.