UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
rtpdec_state.h
Go to the documentation of this file.
1/*
2 * AUTHOR: David Cassany <david.cassany@i2cat.net>,
3 * Ignacio Contreras <ignacio.contreras@i2cat.net>,
4 * Gerard Castillo <gerard.castillo@i2cat.net>
5 *
6 * Copyright (c) 2013-2014 Fundació i2CAT, Internet I Innovació Digital a Catalunya
7 * Copyright (c) 2015-2024 CESNET
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, is permitted provided that the following conditions
11 * are met:
12 *
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 *
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 *
20 * 3. All advertising materials mentioning features or use of this software
21 * must display the following acknowledgement:
22 *
23 * This product includes software developed by the University of Southern
24 * California Information Sciences Institute.
25 *
26 * 4. Neither the name of the University nor of the Institute may be used
27 * to endorse or promote products derived from this software without
28 * specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
32 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
33 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
34 * EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
39 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
41 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 *
43 */
44
45#ifndef RTP_RTPDEC_STATE_H_1712C4BC_F5CA_44DE_AF8B_EB2996D0E8A5
46#define RTP_RTPDEC_STATE_H_1712C4BC_F5CA_44DE_AF8B_EB2996D0E8A5
47
48#include <stdbool.h> // for bool
49#include <stdint.h> // for uint8_t
50
51#include "utils/jpeg_writer.h" // for JPEG_QUANT_SIZE
52
53struct coded_data;
54struct video_frame;
55
56enum {
58 JPEG_Q_TAB_COUNT = 2, // for RFC 2435 defined JPEG Types
59};
60
62 int (*decode)(struct coded_data *cdata, void *decode_data);
66
67 // codec specific
68 union {
69 struct {
71 unsigned char offset_buffer[2048];
72 } h264;
73 struct {
74 uint8_t quantization_tables[JPEG_QUANT_TAB_COUNT]
77 bool quantization_table_set[JPEG_QUANT_TAB_COUNT];
78 char *dqt_start;
80 } jpeg;
81 };
82};
83
84#endif // defined RTP_RTPDEC_STATE_H_1712C4BC_F5CA_44DE_AF8B_EB2996D0E8A5
@ JPEG_QUANT_SIZE
items, bytes (for precision=0)
Definition jpeg_writer.h:54
@ JPEG_QUANT_TAB_COUNT
@ JPEG_Q_TAB_COUNT
int not_first_run
decrease verbosity next time
struct video_frame * frame
int(* decode)(struct coded_data *cdata, void *decode_data)
Struct video_frame represents a video frame and contains video description.
Definition types.h:305