![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "dxt_encoder.h"#include "dxt_decoder.h"#include "dxt_display.h"#include <getopt.h>#include <string.h>#include <strings.h>
Go to the source code of this file.
Macros | |
| #define | DEBUG |
| #define | RUN_MAX 100 |
Functions | |
| const char * | get_filename_extension (const char *filename) |
| int | main (int argc, char *argv[]) |
| int | perform_comparison (const char *input, const char *output, enum dxt_type type, int width, int height, enum dxt_format format) |
| int | perform_decode (const char *filename_in, const char *filename_out, enum dxt_type type, int width, int height, int display, int run) |
| int | perform_display (const char *filename, enum dxt_type type, int width, int height, enum dxt_format format) |
| int | perform_encode (const char *filename_in, const char *filename_out, enum dxt_type type, int width, int height, enum dxt_format format, int display, int run) |
| void | print_help () |
| void | printf_duration (const char *name, int run) |
Variables | |
| static float | duration [RUN_MAX] |
| #define DEBUG |
Definition at line 27 of file main.c.
Referenced by compress_pop(), decode_frame_jpeg(), get_sw_format(), keep_alive_thread(), module_mutex_lock(), module_mutex_unlock(), parallel_conv(), rg48_to_r12l(), and vdp_interop_supported().
| const char * get_filename_extension | ( | const char * | filename | ) |
Definition at line 168 of file main.c.
Referenced by perform_comparison(), and perform_display().
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 269 of file main.c.
References dxt_encoder_buffer_allocate(), dxt_encoder_buffer_free(), dxt_encoder_compress(), dxt_encoder_create(), dxt_encoder_destroy(), DXT_FORMAT_RGBA, DXT_FORMAT_YUV, dxt_image_compressed_save_to_file(), dxt_image_destroy(), dxt_image_load_from_file(), DXT_IMAGE_TYPE, dxt_init(), DXT_TYPE_DXT1, DXT_TYPE_DXT5_YCOCG, dxt_encoder::format, dxt_encoder::height, perform_comparison(), perform_decode(), perform_display(), perform_encode(), print_help(), RUN_MAX, type, and dxt_encoder::width.

| int perform_comparison | ( | const char * | input, |
| const char * | output, | ||
| enum dxt_type | type, | ||
| int | width, | ||
| int | height, | ||
| enum dxt_format | format ) |
Definition at line 207 of file main.c.
References dxt_display_image_comparison(), dxt_image_compressed_destroy(), dxt_image_compressed_load_from_file(), dxt_image_destroy(), dxt_image_load_from_file(), DXT_IMAGE_TYPE, get_filename_extension(), dxt_decoder::height, type, and dxt_decoder::width.
Referenced by main().

| int perform_decode | ( | const char * | filename_in, |
| const char * | filename_out, | ||
| enum dxt_type | type, | ||
| int | width, | ||
| int | height, | ||
| int | display, | ||
| int | run ) |
Definition at line 114 of file main.c.
References dxt_decoder_buffer_allocate(), dxt_decoder_buffer_free(), dxt_decoder_create(), dxt_decoder_decompress(), dxt_decoder_destroy(), dxt_display_image(), dxt_display_image_compressed(), DXT_FORMAT_RGBA, dxt_image_compressed_destroy(), dxt_image_compressed_load_from_file(), dxt_image_save_to_file(), DXT_IMAGE_TYPE, dxt_decoder::height, dxt_encoder::height, printf_duration(), TIMER_DURATION, TIMER_INIT, TIMER_START, TIMER_STOP, type, dxt_decoder::width, and dxt_encoder::width.
Referenced by main().

| int perform_display | ( | const char * | filename, |
| enum dxt_type | type, | ||
| int | width, | ||
| int | height, | ||
| enum dxt_format | format ) |
Definition at line 178 of file main.c.
References dxt_display_image(), dxt_display_image_compressed(), dxt_image_compressed_destroy(), dxt_image_compressed_load_from_file(), dxt_image_destroy(), dxt_image_load_from_file(), DXT_IMAGE_TYPE, get_filename_extension(), dxt_decoder::height, type, and dxt_decoder::width.
Referenced by main().

| int perform_encode | ( | const char * | filename_in, |
| const char * | filename_out, | ||
| enum dxt_type | type, | ||
| int | width, | ||
| int | height, | ||
| enum dxt_format | format, | ||
| int | display, | ||
| int | run ) |
Definition at line 61 of file main.c.
References dxt_display_image(), dxt_display_image_compressed(), dxt_encoder_buffer_allocate(), dxt_encoder_buffer_free(), dxt_encoder_compress(), dxt_encoder_create(), dxt_encoder_destroy(), dxt_image_compressed_save_to_file(), dxt_image_destroy(), dxt_image_load_from_file(), DXT_IMAGE_TYPE, dxt_encoder::format, dxt_encoder::height, printf_duration(), TIMER_DURATION, TIMER_INIT, TIMER_START, TIMER_STOP, type, and dxt_encoder::width.
Referenced by main().

| void print_help | ( | ) |
Definition at line 251 of file main.c.
Referenced by main().
| void printf_duration | ( | const char * | name, |
| int | run ) |
Definition at line 41 of file main.c.
References name.
Referenced by perform_decode(), and perform_encode().