Lines Matching refs:lengthIn

431 int Resampler::Push(const WebRtc_Word16 * samplesIn, int lengthIn, WebRtc_Word16* samplesOut,  in Push()  argument
446 WebRtc_Word16* left = (WebRtc_Word16*)malloc(lengthIn * sizeof(WebRtc_Word16) / 2); in Push()
447 WebRtc_Word16* right = (WebRtc_Word16*)malloc(lengthIn * sizeof(WebRtc_Word16) / 2); in Push()
452 for (int i = 0; i < lengthIn; i += 2) in Push()
459 lengthIn = lengthIn / 2; in Push()
464 res |= slave_left_->Push(left, lengthIn, out_left, maxLen / 2, actualOutLen_left); in Push()
465 res |= slave_right_->Push(right, lengthIn, out_right, maxLen / 2, actualOutLen_right); in Push()
500 memcpy(samplesOut, samplesIn, lengthIn * sizeof(WebRtc_Word16)); in Push()
501 outLen = lengthIn; in Push()
504 if (maxLen < (lengthIn * 2)) in Push()
508 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, samplesOut, (WebRtc_Word32*)state1_); in Push()
509 outLen = lengthIn * 2; in Push()
515 if ((lengthIn % 160) != 0) in Push()
519 if (maxLen < (lengthIn * 3)) in Push()
525 for (int i = 0; i < lengthIn; i += 160) in Push()
531 outLen = lengthIn * 3; in Push()
535 if (maxLen < (lengthIn * 4)) in Push()
540 tmp = (WebRtc_Word16*)malloc(sizeof(WebRtc_Word16) * 2 * lengthIn); in Push()
542 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
544 WebRtcSpl_UpsampleBy2(tmp, lengthIn * 2, samplesOut, (WebRtc_Word32*)state2_); in Push()
545 outLen = lengthIn * 4; in Push()
551 if ((lengthIn % 80) != 0) in Push()
555 if (maxLen < (lengthIn * 6)) in Push()
563 tmp = (WebRtc_Word16*)malloc(sizeof(WebRtc_Word16) * 2 * lengthIn); in Push()
565 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
566 outLen = lengthIn * 2; in Push()
582 if ((lengthIn % 40) != 0) { in Push()
585 if (maxLen < (lengthIn * 12)) { in Push()
590 tmp = (WebRtc_Word16*) malloc(sizeof(WebRtc_Word16) * 4 * lengthIn); in Push()
592 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, samplesOut, in Push()
594 outLen = lengthIn * 2; in Push()
615 if (maxLen < (lengthIn * 3 / 2)) in Push()
622 if ((lengthIn % 160) != 0) in Push()
626 tmp = static_cast<WebRtc_Word16*> (malloc(sizeof(WebRtc_Word16) * lengthIn * 3)); in Push()
628 for (int i = 0; i < lengthIn; i += 160) in Push()
634 lengthIn = lengthIn * 3; in Push()
636 WebRtcSpl_DownsampleBy2(tmp, lengthIn, samplesOut, (WebRtc_Word32*)state2_); in Push()
637 outLen = lengthIn / 2; in Push()
645 if ((lengthIn % 80) != 0) in Push()
649 if (maxLen < ((lengthIn * 11) / 2)) in Push()
653 tmp = (WebRtc_Word16*)malloc(sizeof(WebRtc_Word16) * 2 * lengthIn); in Push()
655 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
656 lengthIn *= 2; in Push()
660 for (int i = 0; i < lengthIn; i += 80) in Push()
666 outLen = (lengthIn * 11) / 4; in Push()
674 if ((lengthIn % 80) != 0) in Push()
678 if (maxLen < ((lengthIn * 11) / 4)) in Push()
684 for (int i = 0; i < lengthIn; i += 80) in Push()
690 outLen = (lengthIn * 11) / 4; in Push()
696 if ((lengthIn % 160) != 0) in Push()
700 if (maxLen < ((lengthIn * 11) / 8)) in Push()
706 for (int i = 0; i < lengthIn; i += 160) in Push()
712 outLen = (lengthIn * 11) / 8; in Push()
718 if ((lengthIn % 110) != 0) in Push()
722 if (maxLen < ((lengthIn * 16) / 11)) in Push()
728 tmp = (WebRtc_Word16*)malloc((sizeof(WebRtc_Word16) * lengthIn * 2)); in Push()
730 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
732 for (int i = 0; i < (lengthIn * 2); i += 220) in Push()
739 outLen = (lengthIn * 16) / 11; in Push()
748 if ((lengthIn % 110) != 0) in Push()
752 if (maxLen < ((lengthIn * 32) / 11)) in Push()
758 tmp = (WebRtc_Word16*)malloc((sizeof(WebRtc_Word16) * lengthIn * 2)); in Push()
761 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, samplesOut, (WebRtc_Word32*)state1_); in Push()
764 for (int i = 0; i < (lengthIn * 2); i += 220) in Push()
772 WebRtcSpl_UpsampleBy2(tmp, (lengthIn * 16) / 11, samplesOut, in Push()
775 outLen = (lengthIn * 32) / 11; in Push()
782 if (maxLen < (lengthIn / 2)) in Push()
786 WebRtcSpl_DownsampleBy2(samplesIn, lengthIn, samplesOut, (WebRtc_Word32*)state1_); in Push()
787 outLen = lengthIn / 2; in Push()
792 if ((lengthIn % 480) != 0) in Push()
796 if (maxLen < (lengthIn / 3)) in Push()
802 for (int i = 0; i < lengthIn; i += 480) in Push()
808 outLen = lengthIn / 3; in Push()
812 if (maxLen < (lengthIn / 4)) in Push()
816 tmp = (WebRtc_Word16*)malloc(sizeof(WebRtc_Word16) * lengthIn / 2); in Push()
818 WebRtcSpl_DownsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
820 WebRtcSpl_DownsampleBy2(tmp, lengthIn / 2, samplesOut, (WebRtc_Word32*)state2_); in Push()
821 outLen = lengthIn / 4; in Push()
828 if ((lengthIn % 480) != 0) in Push()
832 if (maxLen < (lengthIn / 6)) in Push()
838 tmp = (WebRtc_Word16*)malloc((sizeof(WebRtc_Word16) * lengthIn) / 3); in Push()
840 for (int i = 0; i < lengthIn; i += 480) in Push()
846 outLen = lengthIn / 3; in Push()
855 if ((lengthIn % 480) != 0) { in Push()
858 if (maxLen < (lengthIn / 12)) { in Push()
863 tmp = (WebRtc_Word16*) malloc((sizeof(WebRtc_Word16) * lengthIn) / 3); in Push()
864 tmp_2 = (WebRtc_Word16*) malloc((sizeof(WebRtc_Word16) * lengthIn) / 6); in Push()
866 for (int i = 0; i < lengthIn; i += 480) { in Push()
876 outLen = lengthIn / 3; in Push()
890 if (maxLen < (lengthIn * 2 / 3)) in Push()
895 tmp = static_cast<WebRtc_Word16*> (malloc(sizeof(WebRtc_Word16) * lengthIn * 2)); in Push()
896 WebRtcSpl_UpsampleBy2(samplesIn, lengthIn, tmp, (WebRtc_Word32*)state1_); in Push()
897 lengthIn *= 2; in Push()
901 if ((lengthIn % 480) != 0) in Push()
907 for (int i = 0; i < lengthIn; i += 480) in Push()
913 outLen = lengthIn / 3; in Push()
920 if ((lengthIn % 220) != 0) in Push()
924 if (maxLen < ((lengthIn * 2) / 11)) in Push()
929 tmp = (WebRtc_Word16*)malloc((lengthIn * 4) / 11 * sizeof(WebRtc_Word16)); in Push()
931 for (int i = 0; i < lengthIn; i += 220) in Push()
937 lengthIn = (lengthIn * 4) / 11; in Push()
939 WebRtcSpl_DownsampleBy2(tmp, lengthIn, samplesOut, (WebRtc_Word32*)state2_); in Push()
940 outLen = lengthIn / 2; in Push()
948 if ((lengthIn % 220) != 0) in Push()
952 if (maxLen < ((lengthIn * 4) / 11)) in Push()
958 for (int i = 0; i < lengthIn; i += 220) in Push()
964 outLen = (lengthIn * 4) / 11; in Push()
970 if ((lengthIn % 220) != 0) in Push()
974 if (maxLen < ((lengthIn * 8) / 11)) in Push()
980 for (int i = 0; i < lengthIn; i += 220) in Push()
986 outLen = (lengthIn * 8) / 11; in Push()
996 int Resampler::Insert(WebRtc_Word16 * samplesIn, int lengthIn) in Insert() argument
1005 sizeNeeded = out_buffer_size_ + ((lengthIn + in_buffer_size_) * my_out_frequency_khz_) in Insert()
1019 if (in_buffer_size_ || (lengthIn % tenMsblock)) in Insert()
1022 if ((in_buffer_size_ + lengthIn) > in_buffer_size_max_) in Insert()
1025 sizeNeeded = ((in_buffer_size_ + lengthIn) / tenMsblock + 1) * tenMsblock; in Insert()
1031 memcpy(in_buffer_ + in_buffer_size_, samplesIn, lengthIn * sizeof(WebRtc_Word16)); in Insert()
1048 Push(in_buffer_, lengthIn, out_buffer_ + out_buffer_size_, in Insert()