Home
last modified time | relevance | path

Searched refs:data_length (Results 1 – 25 of 99) sorted by relevance

1234

/external/webrtc/webrtc/common_audio/vad/
Dvad_filterbank.c41 static void HighPassFilter(const int16_t* data_in, size_t data_length, in HighPassFilter() argument
57 for (i = 0; i < data_length; i++) { in HighPassFilter()
83 static void AllPassFilter(const int16_t* data_in, size_t data_length, in AllPassFilter() argument
97 for (i = 0; i < data_length; i++) { in AllPassFilter()
120 static void SplitFilter(const int16_t* data_in, size_t data_length, in SplitFilter() argument
124 size_t half_length = data_length >> 1; // Downsampling by 2. in SplitFilter()
154 static void LogOfEnergy(const int16_t* data_in, size_t data_length, in LogOfEnergy() argument
164 assert(data_length > 0); in LogOfEnergy()
166 energy = (uint32_t) WebRtcSpl_Energy((int16_t*) data_in, data_length, in LogOfEnergy()
246 size_t data_length, int16_t* features) { in WebRtcVad_CalculateFeatures() argument
[all …]
/external/webrtc/webrtc/common_audio/signal_processing/
Dsplitting_filter.c48 void WebRtcSpl_AllPassQMF(int32_t* in_data, size_t data_length, in WebRtcSpl_AllPassQMF() argument
83 for (k = 1; k < data_length; k++) in WebRtcSpl_AllPassQMF()
92 filter_state[0] = in_data[data_length - 1]; // x[N-1], becomes x[-1] next time in WebRtcSpl_AllPassQMF()
93 filter_state[1] = out_data[data_length - 1]; // y_1[N-1], becomes y_1[-1] next time in WebRtcSpl_AllPassQMF()
100 for (k = 1; k < data_length; k++) in WebRtcSpl_AllPassQMF()
108 filter_state[2] = out_data[data_length - 1]; // y_1[N-1], becomes y_1[-1] next time in WebRtcSpl_AllPassQMF()
109 filter_state[3] = in_data[data_length - 1]; // y_2[N-1], becomes y_2[-1] next time in WebRtcSpl_AllPassQMF()
116 for (k = 1; k < data_length; k++) in WebRtcSpl_AllPassQMF()
123 filter_state[4] = in_data[data_length - 1]; // y_2[N-1], becomes y_2[-1] next time in WebRtcSpl_AllPassQMF()
124 filter_state[5] = out_data[data_length - 1]; // y[N-1], becomes y[-1] next time in WebRtcSpl_AllPassQMF()
Dfilter_ar_fast_q12_mips.c18 size_t data_length) { in WebRtcSpl_FilterARFastQ12() argument
28 assert(data_length > 0); in WebRtcSpl_FilterARFastQ12()
131 : [coefficients] "r" (coefficients), [data_length] "r" (data_length), in WebRtcSpl_FilterARFastQ12()
Dfilter_ar_fast_q12.c20 size_t data_length) { in WebRtcSpl_FilterARFastQ12() argument
24 assert(data_length > 0); in WebRtcSpl_FilterARFastQ12()
27 for (i = 0; i < data_length; i++) { in WebRtcSpl_FilterARFastQ12()
/external/v8/src/
Dunicode-decoder.h117 uint16_t* data, size_t data_length, in WriteUtf16() argument
119 DCHECK_GT(data_length, 0); in WriteUtf16()
120 data_length = std::min(data_length, utf16_length_); in WriteUtf16()
123 size_t memcpy_length = std::min(data_length, chars_written_); in WriteUtf16()
126 if (data_length <= chars_written_) return data_length; in WriteUtf16()
129 WriteUtf16Slow(data + chars_written_, data_length - chars_written_, stream, in WriteUtf16()
131 return data_length; in WriteUtf16()
/external/webrtc/webrtc/modules/audio_processing/transient/
Dwpd_tree.cc23 WPDTree::WPDTree(size_t data_length, const float* high_pass_coefficients, in WPDTree() argument
26 : data_length_(data_length), in WPDTree()
29 assert(data_length > (static_cast<size_t>(1) << levels) && in WPDTree()
39 nodes_[1].reset(new WPDNode(data_length, &kRootCoefficient, 1)); in WPDTree()
76 int WPDTree::Update(const float* data, size_t data_length) { in Update() argument
77 if (!data || data_length != data_length_) { in Update()
82 int update_result = nodes_[1]->set_data(data, data_length); in Update()
Dwpd_tree.h41 WPDTree(size_t data_length,
70 int Update(const float* data, size_t data_length);
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp8.cc25 size_t* data_length, in ParseVP8PictureID() argument
28 if (*data_length == 0) in ParseVP8PictureID()
35 if (--(*data_length) == 0) in ParseVP8PictureID()
42 (*data_length)--; in ParseVP8PictureID()
48 size_t* data_length, in ParseVP8Tl0PicIdx() argument
51 if (*data_length == 0) in ParseVP8Tl0PicIdx()
57 (*data_length)--; in ParseVP8Tl0PicIdx()
63 size_t* data_length, in ParseVP8TIDAndKeyIdx() argument
68 if (*data_length == 0) in ParseVP8TIDAndKeyIdx()
80 (*data_length)--; in ParseVP8TIDAndKeyIdx()
[all …]
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc126 static grpc_status_code write_frame_header(size_t data_length, in write_frame_header() argument
133 size_t frame_length = kZeroCopyFrameMessageTypeFieldSize + data_length; in write_frame_header()
141 static grpc_status_code verify_frame_header(size_t data_length, in verify_frame_header() argument
149 if (frame_length != kZeroCopyFrameMessageTypeFieldSize + data_length) { in verify_frame_header()
213 size_t data_length = in alts_iovec_record_protocol_integrity_only_protect() local
216 status = write_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_protect()
266 size_t data_length = get_total_length(protected_vec, protected_vec_length); in alts_iovec_record_protocol_integrity_only_unprotect() local
268 status = verify_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_unprotect()
311 size_t data_length = in alts_iovec_record_protocol_privacy_integrity_protect() local
319 alts_iovec_record_protocol_get_header_length() + data_length + in alts_iovec_record_protocol_privacy_integrity_protect()
[all …]
/external/ltp/testcases/network/rpc/basic_tests/rpc01/lib/
Dlibrpc01.c31 rc = rc && xdr_long(xdrs, &bp->data_length); in xdr_receive_data()
32 p = (*buffer)->data = malloc(bp->data_length); in xdr_receive_data()
33 for (i = 0; rc && i < bp->data_length; p++, i++) in xdr_receive_data()
45 rc = rc && xdr_long(xdrs, &buffer->data_length); in xdr_send_data()
46 for (i = 0, p = buffer->data; rc && i < buffer->data_length; i++, p++) in xdr_send_data()
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dapp.cc50 void App::WithData(const uint8_t* data, size_t data_length) { in WithData() argument
52 RTC_DCHECK_EQ(0u, data_length % 4) << "Data must be 32 bits aligned."; in WithData()
53 RTC_DCHECK(data_length <= kMaxDataSize) << "App data size << " << data_length in WithData()
56 data_.SetData(data, data_length); in WithData()
/external/libjpeg-turbo/
Djdicc.c39 marker->data_length >= ICC_OVERHEAD_LEN && in marker_is_icc()
84 unsigned int data_length[MAX_SEQ_NO + 1]; /* size of profile data in marker */ in jpeg_read_icc_profile() local
120 data_length[seq_no] = marker->data_length - ICC_OVERHEAD_LEN; in jpeg_read_icc_profile()
138 total_length += data_length[seq_no]; in jpeg_read_icc_profile()
160 length = data_length[seq_no]; in jpeg_read_icc_profile()
/external/harfbuzz_ng/util/
Dhb-subset.cc66 unsigned int data_length; in write_file() local
67 const char* data = hb_blob_get_data (blob, &data_length); in write_file()
74 int bytes_written = fwrite(data, 1, data_length, fp_out); in write_file()
82 if ((unsigned int) bytes_written != data_length) { in write_file()
83 fprintf(stderr, "Expected %u bytes written, got %d\n", data_length, in write_file()
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol_test.cc48 size_t data_length; member
167 var->data_length = gsec_test_bias_random_uint32(kMaxDataSize) + 1; in alts_iovec_record_protocol_test_var_create()
168 var->data_buf = static_cast<uint8_t*>(gpr_malloc(var->data_length)); in alts_iovec_record_protocol_test_var_create()
169 gsec_test_random_bytes(var->data_buf, var->data_length); in alts_iovec_record_protocol_test_var_create()
170 gsec_test_copy(var->data_buf, &var->dup_buf, var->data_length); in alts_iovec_record_protocol_test_var_create()
173 randomly_slice(var->data_buf, var->data_length, &var->data_iovec, in alts_iovec_record_protocol_test_var_create()
177 var->header_length + var->data_length + var->tag_length; in alts_iovec_record_protocol_test_var_create()
183 var->unprotected_iovec.iov_len = var->data_length; in alts_iovec_record_protocol_test_var_create()
215 randomly_slice(var->data_buf, var->data_length, &var->data_iovec, in integrity_only_random_seal_unseal()
223 GPR_ASSERT(memcmp(var->data_buf, var->dup_buf, var->data_length) == 0); in integrity_only_random_seal_unseal()
[all …]
/external/u-boot/board/ge/common/
Dvpd_reader.c47 size_t data_length, const u8 *ecc, size_t ecc_length) in verify_bch() argument
49 int gfo = calculate_galois_field_order(data_length); in verify_bch()
64 unsigned int *errloc = (unsigned int *)calloc(data_length, in verify_bch()
66 int errors = decode_bch(bch, data, data_length, ecc, NULL, NULL, in verify_bch()
77 if (errloc[n] >= 8 * data_length) { in verify_bch()
/external/icu/icu4c/source/test/intltest/
Ddtifmtts.h70 void expect(const char** data, int32_t data_length);
76 void expectUserDII(const char** data, int32_t data_length);
81 void stress(const char** data, int32_t data_length, const Locale& loc,
Ddtfmttst.h281 void expectParse(const char** data, int32_t data_length,
284 void expect(const char** data, int32_t data_length,
287 void expectFormat(const char **data, int32_t data_length,
/external/webrtc/webrtc/test/
Dfake_network_pipe.cc55 size_t data_length() const { return data_length_; } in data_length() function in webrtc::NetworkPacket
103 void FakeNetworkPipe::SendPacket(const uint8_t* data, size_t data_length) { in SendPacket() argument
121 capacity_delay_ms = data_length / (config_.link_capacity_kbps / 8); in SendPacket()
130 NetworkPacket* packet = new NetworkPacket(data, data_length, time_now, in SendPacket()
205 packet->data_length(), PacketTime()); in Process()
/external/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc1.c117 buffer.data_length = stat_buffer.st_size; in main()
118 if (buffer.data_length > 2187) { in main()
123 buffer.data = malloc(buffer.data_length); in main()
124 for (i = 0, p = buffer.data; i < buffer.data_length; i++, p++) in main()
178 rc = memcmp(buffer->data, ret_data, buffer->data_length); in do_compare()
/external/epid-sdk/epid/member/tiny/math/src/
Dhashwrap.c39 void tinysha_update(tiny_sha* s, void const* data, size_t data_length) { in tinysha_update() argument
43 tinysha512_update(&s->sha_state_t.sha512s, data, data_length); in tinysha_update()
48 tc_sha256_update(&s->sha_state_t.sha256s, data, data_length); in tinysha_update()
/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors.py120 data_length = len(data)
122 if unpack_length > data_length:
125 (unpack_length, data_length))
145 if data_length != obj.bLength:
148 (data_length, obj.bLength))
/external/u-boot/drivers/spi/
Dich.c533 uint32_t data_length; in ich_spi_xfer() local
539 data_length = min(trans->bytesout, ctlr->databytes); in ich_spi_xfer()
541 data_length = min(trans->bytesin, ctlr->databytes); in ich_spi_xfer()
545 write_reg(ctlr, trans->out, ctlr->data, data_length); in ich_spi_xfer()
546 spi_use_out(trans, data_length); in ich_spi_xfer()
548 trans->offset += data_length; in ich_spi_xfer()
554 control |= (data_length - 1) << 8; in ich_spi_xfer()
570 read_reg(ctlr, ctlr->data, trans->in, data_length); in ich_spi_xfer()
571 spi_use_in(trans, data_length); in ich_spi_xfer()
573 trans->offset += data_length; in ich_spi_xfer()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddsp_helper.cc102 void DspHelper::PeakDetection(int16_t* data, size_t data_length, in PeakDetection() argument
114 data_length++; in PeakDetection()
117 peak_index[i] = WebRtcSpl_MaxIndexW16(data, data_length - 1); in PeakDetection()
121 max_index = std::min(data_length - 1, peak_index[i] + 2); in PeakDetection()
124 if ((peak_index[i] != 0) && (peak_index[i] != (data_length - 2))) { in PeakDetection()
128 if (peak_index[i] == data_length - 2) { in PeakDetection()
/external/toybox/toys/pending/
Ddhcp6.c305 uint8_t *get_msg_ptr(uint8_t *data, int data_length, int msgtype) in get_msg_ptr() argument
313 data_length -= (4 + length); in get_msg_ptr()
314 if (data_length <= 0) break; in get_msg_ptr()
323 static uint8_t *check_server_id(uint8_t *data, int data_length) in check_server_id() argument
325 return get_msg_ptr(data, data_length, DHCP6_OPT_SERVERID); in check_server_id()
328 static int check_client_id(uint8_t *data, int data_length) in check_client_id() argument
330 if ((data = get_msg_ptr(data, data_length, DHCP6_OPT_CLIENTID))) { in check_client_id()
354 static void parse_ia_na(uint8_t *data, int data_length) in parse_ia_na() argument
356 uint8_t *t = get_msg_ptr(data, data_length, DHCP6_OPT_IA_NA); in parse_ia_na()
/external/webrtc/webrtc/modules/video_coding/codecs/test/
Dpacket_manipulator_unittest.cc81 size_t data_length = 400; // smaller than the packet size in TEST_F() local
82 image_._length = data_length; in TEST_F()
86 VerifyPacketLoss(0, nbr_packets_dropped, data_length, packet_data_, image_); in TEST_F()

1234