/usr/include/gpac/ait.h is in libgpac-dev 0.5.0+svn5324~dfsg1-1+b3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | /*
* Copyright (c) TELECOM ParisTech 2011
*/
#ifndef _GF_AIT_H_
#define _GF_AIT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <gpac/mpegts.h>
#include <gpac/dsmcc.h>
#include <string.h>
#include <gpac/bitstream.h>
#ifndef GPAC_DISABLE_MPEG2TS
#define AIT_SECTION_LENGTH_MAX 1021
#define APPLICATION_TYPE_HTTP_APPLICATION 16
#define DSMCC_SECTION_LENGTH_MAX 4093
typedef enum {
APPLICATION_DESCRIPTOR = 0x00,
APPLICATION_NAME_DESCRIPTOR = 0x01,
TRANSPORT_PROTOCOL_DESCRIPTOR = 0x02,
SIMPLE_APPLICATION_LOCATION_DESCRIPTOR = 0x15,
APPLICATION_USAGE_DESCRIPTOR = 0x16,
APPLICATION_BOUNDARY_DESCRIPTOR = 0x17,
} DESCRIPTOR_TAG;
enum ApplicationControlCode {
AUTOSTART = 0x01,
PRESENT = 0x02,
DESTROY = 0x03,
KILL = 0x04,
PREFETCH = 0x05,
REMOTE = 0x06,
DISABLED = 0x07,
PLAYBACK_AUTOSTART = 0x08
};
enum TransportType {
BROADCAST = 0x01,
BROADBAND = 0x03
};
typedef struct
{
u32 pid;
u32 service_id;
u8 table_id;
Bool section_syntax_indicator;
u16 section_length;
Bool test_application_flag;
u16 application_type;
u8 version_number;
Bool current_next_indicator;
u8 section_number;
u8 last_section_number;
u16 common_descriptors_length;
GF_List * common_descriptors;
u16 application_loop_length;
GF_List * application_decoded;
u32 CRC_32;
} GF_M2TS_AIT;
typedef struct
{
ABSTRACT_ES
GF_M2TS_SectionFilter *sec;
} GF_M2TS_AIT_CARRY;
typedef struct
{
u32 organisation_id;
u16 application_id;
u8 application_control_code;
u16 application_descriptors_loop_length;
GF_List * application_descriptors;
u8 application_descriptors_id[50];
u8 index_app_desc_id;
} GF_M2TS_AIT_APPLICATION_DECODE;
typedef enum {
FUTURE_USE = 0x00,
CAROUSEL = 0x01,
RESERVED = 0x02,
TRANSPORT_HTTP = 0x03,
DVB_USE = 0x04,
TO_REGISTER = 0x100,
} PROTOCOL_ID;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
u8 application_profiles_length;
u16 application_profile;
u8 version_major;
u8 version_minor;
u8 version_micro;
Bool service_bound_flag;
u8 visibility;
u8 application_priority;
u8 transport_protocol_label[5];
} GF_M2TS_APPLICATION_DESCRIPTOR;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
u8 usage_type;
} GF_M2TS_APPLICATION_USAGE;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
char* initial_path_bytes;
} GF_M2TS_SIMPLE_APPLICATION_LOCATION;
typedef struct
{
Bool remote_connection;
u16 original_network_id;
u16 transport_stream_id;
u16 service_id;
u8 component_tag;
} GF_M2TS_OBJECT_CAROUSEL_SELECTOR_BYTE;
typedef struct {
u8 URL_extension_length;
char* URL_extension_byte;
} GF_M2TS_TRANSPORT_HTTP_URL_EXTENTION;
typedef struct
{
u8 URL_base_length;
char* URL_base_byte;
u8 URL_extension_count;
GF_M2TS_TRANSPORT_HTTP_URL_EXTENTION* URL_extentions;
} GF_M2TS_TRANSPORT_HTTP_SELECTOR_BYTE;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
u16 protocol_id;
u8 transport_protocol_label;
void* selector_byte;
} GF_M2TS_TRANSPORT_PROTOCOL_DESCRIPTOR;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
u32 ISO_639_language_code;
u8 application_name_length;
char* application_name_char;
} GF_M2TS_APPLICATION_NAME_DESCRIPTOR;
typedef struct
{
u8 boundary_extension_length;
char* boundary_extension_byte;
} GF_M2TS_APPLICATION_BOUNDARY_EXTENSION_INFO;
typedef struct
{
u8 descriptor_tag;
u8 descriptor_length;
u8 boundary_extension_count;
GF_M2TS_APPLICATION_BOUNDARY_EXTENSION_INFO* boundary_extension_info;
} GF_M2TS_APPLICATION_BOUNDARY_DESCRIPTOR;
typedef struct
{
u32 application_id;
u8 application_control_code;
u8 priority;
u16 application_profile;
/* Transport mode - 1 Broadcast - 3 Broadband */
Bool broadcast;
Bool broadband;
char* http_url;
char* carousel_url;
Bool url_received;
/* Carousel */
u32 carousel_pid;
u32 component_tag;
char* appli_name;
} GF_M2TS_AIT_APPLICATION;
typedef struct
{
u32 service_id;
u32 version_number;
u32 ait_pid;
u32 nb_application;
GF_List *Application;
} GF_M2TS_CHANNEL_APPLICATION_INFO;
void on_ait_section(GF_M2TS_Demuxer *ts, u32 evt_type, void *par);
GF_M2TS_ES *gf_ait_section_new(u32 service_id);
GF_M2TS_CHANNEL_APPLICATION_INFO* gf_m2ts_get_channel_application_info(GF_List* ChannelAppList, u32 ait_service_id);
void gf_m2ts_delete_channel_application_info(GF_M2TS_CHANNEL_APPLICATION_INFO* ChannelApp);
#endif /*GPAC_DISABLE_MPEG2TS*/
#ifdef __cplusplus
}
#endif
#endif //_GF_CAROUSSEL_H_
|