1 /* GStreamer H.265 parser types
2  * Copyright (C) 2013 Intel Corporation
3  * Copyright (C) 2013 Sreerenj Balachandran <sreerenj.balachandran@intel.com>
4  *
5  *  Contact: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef __GST_RTP_H265_TYPES_H__
24 #define __GST_RTP_H265_TYPES_H__
25 
26 #include <glib.h>
27 
28 G_BEGIN_DECLS
29 
30 typedef enum
31 {
32   GST_H265_NAL_SLICE_TRAIL_N    = 0,
33   GST_H265_NAL_SLICE_TRAIL_R    = 1,
34   GST_H265_NAL_SLICE_TSA_N      = 2,
35   GST_H265_NAL_SLICE_TSA_R      = 3,
36   GST_H265_NAL_SLICE_STSA_N     = 4,
37   GST_H265_NAL_SLICE_STSA_R     = 5,
38   GST_H265_NAL_SLICE_RADL_N     = 6,
39   GST_H265_NAL_SLICE_RADL_R     = 7,
40   GST_H265_NAL_SLICE_RASL_N     = 8,
41   GST_H265_NAL_SLICE_RASL_R     = 9,
42   GST_H265_NAL_SLICE_BLA_W_LP   = 16,
43   GST_H265_NAL_SLICE_BLA_W_RADL = 17,
44   GST_H265_NAL_SLICE_BLA_N_LP   = 18,
45   GST_H265_NAL_SLICE_IDR_W_RADL = 19,
46   GST_H265_NAL_SLICE_IDR_N_LP   = 20,
47   GST_H265_NAL_SLICE_CRA_NUT    = 21,
48   GST_H265_NAL_VPS              = 32,
49   GST_H265_NAL_SPS              = 33,
50   GST_H265_NAL_PPS              = 34,
51   GST_H265_NAL_AUD              = 35,
52   GST_H265_NAL_EOS              = 36,
53   GST_H265_NAL_EOB              = 37,
54   GST_H265_NAL_FD               = 38,
55   GST_H265_NAL_PREFIX_SEI       = 39,
56   GST_H265_NAL_SUFFIX_SEI       = 40
57 } GstH265NalUnitType;
58 
59 #define RESERVED_NON_IRAP_SUBLAYER_NAL_TYPE_MIN 10
60 #define RESERVED_NON_IRAP_SUBLAYER_NAL_TYPE_MAX 15
61 
62 #define RESERVED_IRAP_NAL_TYPE_MIN 22
63 #define RESERVED_IRAP_NAL_TYPE_MAX 23
64 
65 #define RESERVED_NON_IRAP_NAL_TYPE_MIN 24
66 #define RESERVED_NON_IRAP_NAL_TYPE_MAX 31
67 
68 #define RESERVED_NON_VCL_NAL_TYPE_MIN 41
69 #define RESERVED_NON_VCL_NAL_TYPE_MAX 47
70 
71 #define UNSPECIFIED_NON_VCL_NAL_TYPE_MIN 48
72 #define UNSPECIFIED_NON_VCL_NAL_TYPE_MAX 63
73 
74 G_END_DECLS
75 
76 #endif
77