/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpqcelpdepay.c | 173 gint frame_len; in count_packets() local 175 frame_len = get_frame_len (depay, data[0]); in count_packets() 178 if (frame_len == 0) in count_packets() 181 if (frame_len < 0) in count_packets() 182 frame_len = -frame_len; in count_packets() 184 if (frame_len > size) in count_packets() 187 size -= frame_len; in count_packets() 188 data += frame_len; in count_packets() 329 gint frame_len; in gst_rtp_qcelp_depay_process() local 332 frame_len = get_frame_len (depay, payload[0]); in gst_rtp_qcelp_depay_process() [all …]
|
D | gstrtpmp4adepay.c | 256 rtpmp4adepay->frame_len = 1024; in gst_rtp_mp4a_depay_setcaps() 270 rtpmp4adepay->frame_len = 960; in gst_rtp_mp4a_depay_setcaps() 401 if (rtpmp4adepay->frame_len && timestamp != -1 in gst_rtp_mp4a_depay_process() 404 gst_util_uint64_scale_int (rtpmp4adepay->frame_len, GST_SECOND, in gst_rtp_mp4a_depay_process() 444 rtpmp4adepay->frame_len = 0; in gst_rtp_mp4a_depay_change_state()
|
D | gstrtpsbcpay.c | 134 gint frame_len; in gst_rtp_sbc_pay_set_caps() local 156 frame_len = gst_rtp_sbc_pay_get_frame_len (subbands, channels, blocks, in gst_rtp_sbc_pay_set_caps() 159 sbcpay->frame_length = frame_len; in gst_rtp_sbc_pay_set_caps() 165 GST_DEBUG_OBJECT (payload, "calculated frame length: %d ", frame_len); in gst_rtp_sbc_pay_set_caps()
|
D | gstrtpmp4gpay.c | 158 rtpmp4gpay->frame_len = 0; in gst_rtp_mp4g_pay_cleanup() 226 rtpmp4gpay->frame_len = 1024; in gst_rtp_mp4g_pay_parse_audio_config() 240 rtpmp4gpay->frame_len = 960; in gst_rtp_mp4g_pay_parse_audio_config() 262 rtpmp4gpay->frame_len); in gst_rtp_mp4g_pay_parse_audio_config()
|
D | gstrtpmp4adepay.h | 47 guint frame_len; member
|
D | gstrtpmp4gpay.h | 58 guint frame_len; member
|
/third_party/lwip/test/fuzz/ |
D | fuzz.c | 121 u16_t frame_len; in input_pkts() local 122 memcpy(&frame_len, ptr, sizeof(u16_t)); in input_pkts() 125 frame_len = htons(frame_len) & 0x7FF; in input_pkts() 126 frame_len = LWIP_MIN(frame_len, max_packet_size); in input_pkts() 127 if (frame_len > rem_len) { in input_pkts() 128 frame_len = (u16_t)rem_len; in input_pkts() 130 if (frame_len != 0) { in input_pkts() 131 input_pkt(netif, ptr, frame_len); in input_pkts() 133 ptr += frame_len; in input_pkts() 134 rem_len -= frame_len; in input_pkts()
|
/third_party/gstreamer/gstplugins_bad/ext/sbc/ |
D | gstsbcdec.c | 86 if (G_UNLIKELY (in_map.size % dec->frame_len != 0)) in gst_sbc_dec_handle_frame() 89 num_frames = in_map.size / dec->frame_len; in gst_sbc_dec_handle_frame() 103 ret = sbc_decode (&dec->sbc, in_map.data + (i * dec->frame_len), in gst_sbc_dec_handle_frame() 104 dec->frame_len, out_map.data + (i * dec->samples_per_frame * 2), in gst_sbc_dec_handle_frame() 162 dec->frame_len = 4 + (subbands * 1) / 2 + ((blocks * 1 * bitpool) + 7) / 8; in gst_sbc_dec_set_format() 164 dec->frame_len = 4 + (subbands * 2) / 2 + ((blocks * 2 * bitpool) + 7) / 8; in gst_sbc_dec_set_format() 166 dec->frame_len = 4 + (subbands * 2) / 2 + ((blocks * bitpool) + 7) / 8; in gst_sbc_dec_set_format() 168 dec->frame_len = in gst_sbc_dec_set_format() 177 "%" G_GSIZE_FORMAT, dec->frame_len, dec->samples_per_frame); in gst_sbc_dec_set_format() 206 sbcdec->frame_len = 0; in gst_sbc_dec_stop() [all …]
|
D | gstsbcenc.c | 257 gsize frame_len; in gst_sbc_enc_handle_frame() local 259 frame_len = sbc_get_frame_length (&enc->sbc); in gst_sbc_enc_handle_frame() 261 frames * frame_len); in gst_sbc_enc_handle_frame() 272 samples_per_frame * 2, out_map.data + (i * frame_len), frame_len, in gst_sbc_enc_handle_frame() 275 if (ret < 0 || written != frame_len) { in gst_sbc_enc_handle_frame() 285 gst_buffer_set_size (outbuf, i * frame_len); in gst_sbc_enc_handle_frame()
|
D | gstsbcdec.h | 49 gsize frame_len; member
|
/third_party/ffmpeg/libavcodec/ |
D | binkaudio.c | 53 int frame_len; ///< transform size (samples) member 109 s->frame_len = 1 << frame_len_bits; in decode_init() 110 s->overlap_len = s->frame_len / 16; in decode_init() 111 s->block_size = (s->frame_len - s->overlap_len) * s->channels; in decode_init() 114 s->root = 2.0 / (sqrt(s->frame_len) * 32768.0); in decode_init() 116 s->root = s->frame_len / (sqrt(s->frame_len) * 32768.0); in decode_init() 134 s->bands[i] = (ff_wma_critical_freqs[i - 1] * s->frame_len / sample_rate_half) & ~1; in decode_init() 135 s->bands[s->num_bands] = s->frame_len; in decode_init() 208 while (i < s->frame_len) { in decode_block() 221 j = FFMIN(j, s->frame_len); in decode_block() [all …]
|
D | wmadec.c | 49 static void wma_lsp_to_curve_init(WMACodecContext *s, int frame_len); 123 wma_lsp_to_curve_init(s, s->frame_len); in wma_decode_init() 155 static av_cold void wma_lsp_to_curve_init(WMACodecContext *s, int frame_len) in wma_lsp_to_curve_init() argument 160 wdel = M_PI / frame_len; in wma_lsp_to_curve_init() 161 for (i = 0; i < frame_len; i++) in wma_lsp_to_curve_init() 493 if ((s->block_pos + s->block_len) > s->frame_len) { in wma_decode_block() 761 index = (s->frame_len / 2) + s->block_pos - n4; in wma_decode_block() 768 if (s->block_pos >= s->frame_len) in wma_decode_block() 782 s->frame_count++, s->frame_len); in wma_decode_frame() 799 s->frame_len * sizeof(*s->frame_out[ch])); in wma_decode_frame() [all …]
|
D | wma.c | 108 s->frame_len = 1 << s->frame_len_bits; in ff_wma_init() 142 s->byte_offset_bits = av_log2((int) (bps * s->frame_len / 8.0 + 0.5)) + 2; in ff_wma_init() 206 block_len = s->frame_len >> k; in ff_wma_init() 262 s->coefs_end[k] = (s->frame_len - ((s->frame_len * 9) / 100)) >> k; in ff_wma_init() 290 s->frame_len >> i, in ff_wma_init()
|
/third_party/gstreamer/gstplugins_good/gst/audioparsers/ |
D | gstsbcparse.c | 190 gsize frame_len, next_len; in gst_sbc_parse_handle_frame() local 197 frame_len = gst_sbc_parse_header (map.data, &rate, &n_blocks, &ch_mode, in gst_sbc_parse_handle_frame() 200 GST_LOG_OBJECT (parse, "frame_len: %u", (guint) frame_len); in gst_sbc_parse_handle_frame() 202 if (frame_len == 0) in gst_sbc_parse_handle_frame() 227 avg_bitrate = (8 * frame_len * rate) / (n_subbands * n_blocks); in gst_sbc_parse_handle_frame() 242 if (frame_len > map.size) in gst_sbc_parse_handle_frame() 250 max_frames = MIN (map.size / frame_len, n_blocks * n_subbands * 5); in gst_sbc_parse_handle_frame() 254 next_len = gst_sbc_parse_header (map.data + (i * frame_len), &rate, in gst_sbc_parse_handle_frame() 257 if (next_len != frame_len || sbcparse->alloc_method != alloc_method || in gst_sbc_parse_handle_frame() 272 return gst_base_parse_finish_frame (parse, frame, i * frame_len); in gst_sbc_parse_handle_frame() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/jpegformat/ |
D | gstjpegparse.c | 224 guint frame_len; in gst_jpeg_parse_get_image_length() local 268 frame_len = 0; in gst_jpeg_parse_get_image_length() 275 4, &frame_len); in gst_jpeg_parse_get_image_length() 276 frame_len = frame_len & 0xffff; in gst_jpeg_parse_get_image_length() 278 GST_DEBUG ("0x%08x: tag %02x, frame_len=%u", offset + 2, value, frame_len); in gst_jpeg_parse_get_image_length() 281 if (offset + 2 + 2 + frame_len + 2 > size) { in gst_jpeg_parse_get_image_length() 289 noffset = offset + 2 + frame_len + eseglen; in gst_jpeg_parse_get_image_length() 295 parse->last_entropy_len = size - offset - 4 - frame_len - 2; in gst_jpeg_parse_get_image_length() 299 eseglen = noffset - offset - frame_len - 2; in gst_jpeg_parse_get_image_length() 305 frame_len += eseglen; in gst_jpeg_parse_get_image_length() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | crc32.c | 75 u32 crc32(const u8 *frame, size_t frame_len) in crc32() argument 81 for (i = 0; i < frame_len; i++) in crc32()
|
D | crc32.h | 12 u32 crc32(const u8 *frame, size_t frame_len);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | crc32.c | 75 u32 crc32(const u8 *frame, size_t frame_len) in crc32() argument 81 for (i = 0; i < frame_len; i++) in crc32()
|
D | crc32.h | 12 u32 crc32(const u8 *frame, size_t frame_len);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/fst/ |
D | fst_session.c | 360 size_t frame_len) in fst_session_handle_setup_request() argument 369 if (frame_len < IEEE80211_HDRLEN + 1 + sizeof(*req)) { in fst_session_handle_setup_request() 372 frame_len, in fst_session_handle_setup_request() 376 plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_setup_request() 503 size_t frame_len) in fst_session_handle_setup_response() argument 506 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_setup_response() 607 size_t frame_len) in fst_session_handle_tear_down() argument 610 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_tear_down() 642 size_t frame_len) in fst_session_handle_ack_request() argument 645 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_ack_request() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/fst/ |
D | fst_session.c | 360 size_t frame_len) in fst_session_handle_setup_request() argument 369 if (frame_len < IEEE80211_HDRLEN + 1 + sizeof(*req)) { in fst_session_handle_setup_request() 372 frame_len, in fst_session_handle_setup_request() 376 plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_setup_request() 503 size_t frame_len) in fst_session_handle_setup_response() argument 506 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_setup_response() 607 size_t frame_len) in fst_session_handle_tear_down() argument 610 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_tear_down() 642 size_t frame_len) in fst_session_handle_ack_request() argument 645 size_t plen = frame_len - IEEE80211_HDRLEN - 1; in fst_session_handle_ack_request() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/dv/ |
D | gstdvdemux.c | 260 dvdemux->frame_len = -1; in gst_dvdemux_reset() 389 if (dvdemux->frame_len <= 0) in gst_dvdemux_src_convert() 404 *dest_value = src_value / dvdemux->frame_len; in gst_dvdemux_src_convert() 412 dvdemux->frame_len * dvdemux->framerate_numerator); in gst_dvdemux_src_convert() 426 dvdemux->frame_len * dvdemux->framerate_numerator, in gst_dvdemux_src_convert() 466 *dest_value = src_value * dvdemux->frame_len; in gst_dvdemux_src_convert() 509 if (dvdemux->frame_len <= 0) in gst_dvdemux_sink_convert() 521 frame = src_value / dvdemux->frame_len; in gst_dvdemux_sink_convert() 544 *dest_value = frame * dvdemux->frame_len; in gst_dvdemux_sink_convert() 1622 while (gst_adapter_available (dvdemux->adapter) >= dvdemux->frame_len) { in gst_dvdemux_flush() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/jpeg/ |
D | gstjpegdec.c | 339 guint frame_len; in gst_jpeg_dec_parse() local 390 frame_len = 0; in gst_jpeg_dec_parse() 397 &frame_len); in gst_jpeg_dec_parse() 398 frame_len = frame_len & 0xffff; in gst_jpeg_dec_parse() 400 GST_DEBUG ("0x%08x: tag %02x, frame_len=%u", offset + 2, value, frame_len); in gst_jpeg_dec_parse() 403 if (offset + 2 + 2 + frame_len + 2 > size) { in gst_jpeg_dec_parse() 412 if (size < offset + 2 + frame_len + eseglen) in gst_jpeg_dec_parse() 414 noffset = offset + 2 + frame_len + dec->parse_entropy_len; in gst_jpeg_dec_parse() 422 dec->parse_entropy_len = size - offset - 4 - frame_len - 2; in gst_jpeg_dec_parse() 426 eseglen = noffset - offset - frame_len - 2; in gst_jpeg_dec_parse() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_dynaudnorm.c | 60 int frame_len; member 335 s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec); in config_input() 336 av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len); in config_input() 740 AVFrame *out = ff_get_audio_buffer(outlink, s->frame_len); in flush_buffer() 791 ret = ff_inlink_consume_samples(inlink, s->frame_len, s->frame_len, &in); in activate() 800 if (ff_inlink_queued_samples(inlink) >= s->frame_len) { in activate() 848 s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec); in process_command()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | drv_callbacks.c | 1153 if (drv_mgmt->frame_len < IEEE80211_HDRLEN + 2 + 1) in hostapd_action_rx() 1156 plen = drv_mgmt->frame_len - IEEE80211_HDRLEN; in hostapd_action_rx() 1182 ieee802_11_sa_query_action(hapd, mgmt, drv_mgmt->frame_len); in hostapd_action_rx() 1188 ieee802_11_rx_wnm_action_ap(hapd, mgmt, drv_mgmt->frame_len); in hostapd_action_rx() 1194 fst_rx_action(hapd->iface->fst, mgmt, drv_mgmt->frame_len); in hostapd_action_rx() 1209 end = drv_mgmt->frame + drv_mgmt->frame_len; in hostapd_action_rx() 1265 size_t hex_len = 2 * rx_mgmt->frame_len + 1; in hostapd_mgmt_rx() 1270 rx_mgmt->frame_len); in hostapd_mgmt_rx() 1279 bssid = get_hdr_bssid(hdr, rx_mgmt->frame_len); in hostapd_mgmt_rx() 1315 rx_mgmt->frame_len, &fi) > 0) in hostapd_mgmt_rx() [all …]
|