Lines Matching refs:stt
1158 _gst_mpegts_atsc_stt_copy (GstMpegtsAtscSTT * stt) in _gst_mpegts_atsc_stt_copy() argument
1162 copy = g_slice_dup (GstMpegtsAtscSTT, stt); in _gst_mpegts_atsc_stt_copy()
1163 copy->descriptors = g_ptr_array_ref (stt->descriptors); in _gst_mpegts_atsc_stt_copy()
1169 _gst_mpegts_atsc_stt_free (GstMpegtsAtscSTT * stt) in _gst_mpegts_atsc_stt_free() argument
1171 if (stt->descriptors) in _gst_mpegts_atsc_stt_free()
1172 g_ptr_array_unref (stt->descriptors); in _gst_mpegts_atsc_stt_free()
1173 if (stt->utc_datetime) in _gst_mpegts_atsc_stt_free()
1174 gst_date_time_unref (stt->utc_datetime); in _gst_mpegts_atsc_stt_free()
1176 g_slice_free (GstMpegtsAtscSTT, stt); in _gst_mpegts_atsc_stt_free()
1186 GstMpegtsAtscSTT *stt = NULL; in _parse_atsc_stt() local
1190 stt = g_slice_new0 (GstMpegtsAtscSTT); in _parse_atsc_stt()
1198 stt->protocol_version = GST_READ_UINT8 (data); in _parse_atsc_stt()
1200 stt->system_time = GST_READ_UINT32_BE (data); in _parse_atsc_stt()
1202 stt->gps_utc_offset = GST_READ_UINT8 (data); in _parse_atsc_stt()
1207 stt->ds_status = daylight_saving >> 15; in _parse_atsc_stt()
1208 stt->ds_dayofmonth = (daylight_saving >> 8) & 0x1F; in _parse_atsc_stt()
1209 stt->ds_hour = daylight_saving & 0xFF; in _parse_atsc_stt()
1211 stt->descriptors = gst_mpegts_parse_descriptors (data, end - data - 4); in _parse_atsc_stt()
1212 if (stt->descriptors == NULL) in _parse_atsc_stt()
1215 return (gpointer) stt; in _parse_atsc_stt()
1218 _gst_mpegts_atsc_stt_free (stt); in _parse_atsc_stt()
1226 const GstMpegtsAtscSTT *stt; in _packetize_stt() local
1231 stt = gst_mpegts_section_get_atsc_stt (section); in _packetize_stt()
1233 if (stt == NULL) in _packetize_stt()
1245 if (stt->descriptors) { in _packetize_stt()
1246 for (i = 0; i < stt->descriptors->len; i++) { in _packetize_stt()
1247 GstMpegtsDescriptor *descriptor = g_ptr_array_index (stt->descriptors, i); in _packetize_stt()
1257 GST_WRITE_UINT8 (data, stt->protocol_version); in _packetize_stt()
1260 GST_WRITE_UINT32_BE (data, stt->system_time); in _packetize_stt()
1263 GST_WRITE_UINT8 (data, stt->gps_utc_offset); in _packetize_stt()
1267 (stt->ds_status << 7) | 0x60 | (stt->ds_dayofmonth & 0x1f)); in _packetize_stt()
1269 GST_WRITE_UINT8 (data, stt->ds_hour); in _packetize_stt()
1272 _packetize_descriptor_array (stt->descriptors, &data); in _packetize_stt()
1285 gst_mpegts_section_from_atsc_stt (GstMpegtsAtscSTT * stt) in gst_mpegts_section_from_atsc_stt() argument
1289 g_return_val_if_fail (stt != NULL, NULL); in gst_mpegts_section_from_atsc_stt()
1295 section->cached_parsed = (gpointer) stt; in gst_mpegts_section_from_atsc_stt()
1335 GstMpegtsAtscSTT *stt; in gst_mpegts_atsc_stt_new() local
1337 stt = g_slice_new0 (GstMpegtsAtscSTT); in gst_mpegts_atsc_stt_new()
1338 stt->descriptors = g_ptr_array_new_with_free_func ((GDestroyNotify) in gst_mpegts_atsc_stt_new()
1341 return stt; in gst_mpegts_atsc_stt_new()
1353 gst_mpegts_atsc_stt_get_datetime_utc (GstMpegtsAtscSTT * stt) in gst_mpegts_atsc_stt_get_datetime_utc() argument
1355 if (stt->utc_datetime == NULL) in gst_mpegts_atsc_stt_get_datetime_utc()
1356 stt->utc_datetime = _gst_mpegts_atsc_gps_time_to_datetime (stt->system_time, in gst_mpegts_atsc_stt_get_datetime_utc()
1357 stt->gps_utc_offset); in gst_mpegts_atsc_stt_get_datetime_utc()
1359 if (stt->utc_datetime) in gst_mpegts_atsc_stt_get_datetime_utc()
1360 return gst_date_time_ref (stt->utc_datetime); in gst_mpegts_atsc_stt_get_datetime_utc()