![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Classes | |
| struct | dxt_decoder |
Functions | |
| int | dxt_decoder_buffer_allocate (struct dxt_decoder *decoder, unsigned char **image, int *image_size) |
| int | dxt_decoder_buffer_free (unsigned char *image) |
| struct dxt_decoder * | dxt_decoder_create (enum dxt_type type, int width, int height, enum dxt_format out_format, int legacy) |
| int | dxt_decoder_decompress (struct dxt_decoder *decoder, unsigned char *image_compressed, DXT_IMAGE_TYPE *image) |
| int | dxt_decoder_destroy (struct dxt_decoder *decoder) |
Variables | |
| static GLfloat | points [] |
| int dxt_decoder_buffer_allocate | ( | struct dxt_decoder * | decoder, |
| unsigned char ** | image, | ||
| int * | image_size ) |
Documented at declaration
Definition at line 340 of file dxt_decoder.c.
References DXT_IMAGE_TYPE, dxt_decoder::height, and dxt_decoder::width.
Referenced by perform_decode().
| int dxt_decoder_buffer_free | ( | unsigned char * | image | ) |
Documented at declaration
Definition at line 527 of file dxt_decoder.c.
Referenced by perform_decode().
| struct dxt_decoder * dxt_decoder_create | ( | enum dxt_type | type, |
| int | width, | ||
| int | height, | ||
| enum dxt_format | out_format, | ||
| int | legacy ) |
Documented at declaration
Definition at line 106 of file dxt_decoder.c.
References dxt_decoder::compressed_tex, DXT_FORMAT_RGBA, DXT_FORMAT_YUV422, DXT_IMAGE_GL_FORMAT, DXT_IMAGE_GL_TYPE, dxt_shader_create_from_source(), DXT_TYPE_DXT1, DXT_TYPE_DXT1_YUV, DXT_TYPE_DXT5_YCOCG, dxt_decoder::fbo_rgba, dxt_decoder::fbo_yuv422, fp_display_dxt1_yuv, fp_display_dxt5ycocg, fp_display_rgba_to_yuv422_legacy, dxt_decoder::g_vao, dxt_decoder::g_vao_422, dxt_decoder::height, dxt_decoder::legacy, dxt_decoder::out_format, points, dxt_decoder::program_display, dxt_decoder::program_rgba_to_yuv422, dxt_decoder::shader_fragment_display, dxt_decoder::shader_fragment_rgba_to_yuv422, dxt_decoder::shader_vertex_display, dxt_decoder::shader_vertex_rgba_to_yuv422, dxt_decoder::type, type, dxt_decoder::uncompressed_rgba_tex, dxt_decoder::uncompressed_yuv422_tex, and dxt_decoder::width.
Referenced by configure_with(), and perform_decode().

| int dxt_decoder_decompress | ( | struct dxt_decoder * | decoder, |
| unsigned char * | image_compressed, | ||
| DXT_IMAGE_TYPE * | image ) |
Documented at declaration
Definition at line 351 of file dxt_decoder.c.
References dxt_decoder::compressed_tex, DXT_FORMAT_YUV422, DXT_IMAGE_GL_TYPE, DXT_TYPE_DXT5_YCOCG, dxt_decoder::fbo_rgba, dxt_decoder::fbo_yuv422, dxt_decoder::g_vao, dxt_decoder::g_vao_422, dxt_decoder::height, dxt_decoder::legacy, dxt_decoder::out_format, dxt_decoder::program_display, dxt_decoder::program_rgba_to_yuv422, TIMER_INIT, TIMER_START, TIMER_STOP_PRINT, dxt_decoder::type, dxt_decoder::uncompressed_rgba_tex, dxt_decoder::uncompressed_yuv422_tex, and dxt_decoder::width.
Referenced by dxt_glsl_decompress(), and perform_decode().
| int dxt_decoder_destroy | ( | struct dxt_decoder * | decoder | ) |
Documented at declaration
Definition at line 535 of file dxt_decoder.c.
References dxt_decoder::compressed_tex, DXT_FORMAT_YUV422, dxt_decoder::fbo_rgba, dxt_decoder::fbo_yuv422, dxt_decoder::out_format, dxt_decoder::program_display, dxt_decoder::shader_fragment_display, dxt_decoder::uncompressed_rgba_tex, and dxt_decoder::uncompressed_yuv422_tex.
Referenced by dxt_glsl_decompress_done(), dxt_glsl_decompress_reconfigure(), and perform_decode().
|
static |
Copyright (c) 2011, Martin Srom All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 50 of file dxt_decoder.c.
Referenced by dxt_decoder_create().