Searched refs:sr_idx (Results 1 – 4 of 4) sorted by relevance
176 guint8 obj_type = 0, sr_idx = 0, channels = 0; in gst_rtp_mp4a_depay_setcaps() local232 if (!gst_bit_reader_get_bits_uint8 (&br, &sr_idx, 4)) in gst_rtp_mp4a_depay_setcaps()234 if (sr_idx >= G_N_ELEMENTS (aac_sample_rates) && sr_idx != 15) { in gst_rtp_mp4a_depay_setcaps()235 GST_WARNING_OBJECT (depayload, "invalid sample rate index %d", sr_idx); in gst_rtp_mp4a_depay_setcaps()238 GST_LOG_OBJECT (rtpmp4adepay, "sample rate index %u", sr_idx); in gst_rtp_mp4a_depay_setcaps()248 if (sr_idx == 15) { in gst_rtp_mp4a_depay_setcaps()252 } else if (sr_idx >= G_N_ELEMENTS (aac_sample_rates)) { in gst_rtp_mp4a_depay_setcaps()256 rate = aac_sample_rates[sr_idx]; in gst_rtp_mp4a_depay_setcaps()
849 gint sr_idx = (data[2] & 0x3c) >> 2; in gst_aac_parse_parse_adts_header() local851 *rate = gst_codec_utils_aac_get_sample_rate_from_index (sr_idx); in gst_aac_parse_parse_adts_header()997 int sr_idx; in gst_aac_parse_detect_stream() local1036 sr_idx = (adif[7 + skip_size] & 0x78) >> 3; in gst_aac_parse_detect_stream()1041 sr_idx = ((adif[4 + skip_size] & 0x07) << 1) | in gst_aac_parse_detect_stream()1048 gst_codec_utils_aac_get_sample_rate_from_index (sr_idx); in gst_aac_parse_detect_stream()
33 guint gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx);
101 gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx) in gst_codec_utils_aac_get_sample_rate_from_index() argument103 if (G_LIKELY (sr_idx < G_N_ELEMENTS (aac_sample_rates))) in gst_codec_utils_aac_get_sample_rate_from_index()104 return aac_sample_rates[sr_idx]; in gst_codec_utils_aac_get_sample_rate_from_index()106 GST_WARNING ("Invalid sample rate index %u", sr_idx); in gst_codec_utils_aac_get_sample_rate_from_index()