diff --git a/src/video_decompress/jpeg.c b/src/video_decompress/jpeg.c index f57782211..61e38021f 100644 --- a/src/video_decompress/jpeg.c +++ b/src/video_decompress/jpeg.c @@ -1,32 +1,23 @@ +/** + * @file video_decompress/jpeg.cpp + * @author Martin Pulec + */ /* - * FILE: video_decompress/dxt_glsl.c - * AUTHORS: Martin Benes - * Lukas Hejtmanek - * Petr Holub - * Milos Liska - * Jiri Matela - * Dalibor Matura <255899@mail.muni.cz> - * Ian Wesley-Smith - * - * Copyright (c) 2005-2011 CESNET z.s.p.o. + * Copyright (c) 2011-2016 CESNET, z. s. p. o. + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. - * + * * 2. 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. - * - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * - * This product includes software developed by CESNET z.s.p.o. - * - * 4. Neither the name of the CESNET nor the names of its contributors may be + * + * 3. Neither the name of CESNET nor the names of its contributors may be * used to endorse or promote products derived from this software without * specific prior written permission. * @@ -42,7 +33,6 @@ * 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. - * */ #ifdef HAVE_CONFIG_H @@ -159,9 +149,7 @@ static int jpeg_decompress(void *state, unsigned char *dst, unsigned char *buffe if((s->out_codec != RGB || (s->rshift == 0 && s->gshift == 8 && s->bshift == 16)) && s->pitch == linesize) { - gpujpeg_decoder_output_set_default(&decoder_output); - decoder_output.type = GPUJPEG_DECODER_OUTPUT_CUSTOM_BUFFER; - decoder_output.data = dst; + gpujpeg_decoder_output_set_custom(&decoder_output, dst); //int data_decompressed_size = decoder_output.data_size; ret = gpujpeg_decoder_decode(s->decoder, (uint8_t*) buffer, src_len, &decoder_output);