Lines Matching refs:enc_len
251 int len, enc_len;
582 enc_len = makeDTMFpayload(&rtp_data[12], NTone % 12, 0, 4, (int) (sendtime - NTone * DTMF_PACKET_INTERVAL)*(fs/1000) + len);
587 enc_len = makeDTMFpayload(&rtp_data[12], NTone % 12, 1, 4, DTMF_DURATION*(fs/1000));
593 length = htons(12 + enc_len + 8);
594 plen = htons(12 + enc_len);
606 if (fwrite(rtp_data, 12 + enc_len, 1, out_file) != 1) {
617 enc_len = 0;
622 enc_len=NetEQTest_encode(usedCodec, org_data, packet_size, &rtp_data[12] ,fs,&vad, useVAD, bitrate, numChannels);
623 if (enc_len==-1) {
633 stereoInterleave(&rtp_data[12], enc_len, stereoMode);
639 if (enc_len > 0 && (sendtime <= STOPSENDTIME || sendtime > RESTARTSENDTIME)) {
642 memmove(&rtp_data[RTPheaderLen+red_len[0]], &rtp_data[12], enc_len);
645 red_len[1] = enc_len;
655 enc_len += red_len[0] + RTPheaderLen - 12;
658 memmove(&rtp_data[RTPheaderLen-4], &rtp_data[12], enc_len);
661 red_len[1] = enc_len;
671 enc_len += red_len[0] + RTPheaderLen - 4 - 12; // 4 is length of redundancy header (not used)
688 length = htons(12 + enc_len + 8);
689 plen = htons(12 + enc_len);
703 for (int k=0; k<12+enc_len; k++) {
708 for (int k=12; k<12+enc_len; k++) {
712 if (fwrite(rtp_data, 12 + enc_len, 1, out_file) != 1) {
743 memcpy(old_rtp_data,rtp_data,12+enc_len);
744 old_enc_len=enc_len;
763 memcpy(red_data, &rtp_data[RTPheaderLen+red_len[0]], enc_len);