UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
src
rtp
rtpenc_h264.h
Go to the documentation of this file.
1
7
/*
8
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
9
* Copyright (c) 2014-2022 CESNET
10
*
11
* Redistribution and use in source and binary forms, with or without
12
* modification, is permitted provided that the following conditions
13
* are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright
16
* notice, this list of conditions and the following disclaimer.
17
*
18
* 2. Redistributions in binary form must reproduce the above copyright
19
* notice, this list of conditions and the following disclaimer in the
20
* documentation and/or other materials provided with the distribution.
21
*
22
* 3. All advertising materials mentioning features or use of this software
23
* must display the following acknowledgement:
24
*
25
* This product includes software developed by the University of Southern
26
* California Information Sciences Institute.
27
*
28
* 4. Neither the name of the University nor of the Institute may be used
29
* to endorse or promote products derived from this software without
30
* specific prior written permission.
31
*
32
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
33
* "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
34
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
35
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
36
* EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
37
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
39
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
41
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
42
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
43
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
*
45
*/
46
47
#ifndef _RTP_ENC_H264_H
48
#define _RTP_ENC_H264_H
49
50
#define START_CODE_3B 0x00, 0x00, 0x01
51
#define START_CODE_4B 0x00, 0x00, 0x00, 0x01
52
#define H264_NAL_SEI_PREFIX 0x06, 0x05
// SEI, category
53
#define HEVC_NAL_SEI_PREFIX 0x4E, 0x01, 0x05
// SEI, category
55
#define UG_ORIG_FORMAT_ISO_IEC_11578_GUID 0xDB, 0x69, 0xDA, 0x43, 0x42, 0x11, 0x40, 0xEC, 0xA2, 0xF1, 0x45, 0x96, 0x64, 0xFA, 0x14, 0x63
56
57
#ifndef __cplusplus
58
#include <stdbool.h>
59
#else
60
extern
"C"
{
61
#endif
62
63
// function documented at definition
64
const
unsigned
char
*
rtpenc_get_next_nal
(
const
unsigned
char
*
start
,
long
len
,
65
const
unsigned
char
**endptr);
66
const
unsigned
char
*
rtpenc_get_first_nal
(
const
unsigned
char
*src,
67
long
src_len,
bool
hevc);
68
const
char
*
get_nalu_name
(
int
type
);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
len
int void size_t * len
Definition
aja_win32_stub.cpp:69
get_nalu_name
const char * get_nalu_name(int type)
Definition
rtpenc_h264.c:136
rtpenc_get_next_nal
const unsigned char * rtpenc_get_next_nal(const unsigned char *start, long len, const unsigned char **endptr)
Definition
rtpenc_h264.c:101
rtpenc_get_first_nal
const unsigned char * rtpenc_get_first_nal(const unsigned char *src, long src_len, bool hevc)
Definition
rtpenc_h264.c:118
start
static void start()
Definition
sdp.c:202
type
Option::OptType type
Definition
settings.cpp:194
Generated on Wed Sep 25 2024 14:27:18 for UltraGrid by
1.12.0