Home | History | Annotate | Download | only in rtp

Lines Matching refs:length

55     int decode(int16_t *samples, int count, void *payload, int length);
105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode,
108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) {
115 ++length;
121 // Shift left 6 bits and update the length.
122 bytes[length + 1] = 0;
123 for (int i = 0; i <= length; ++i) {
126 length = (10 + gFrameBits[mMode] + 7) >> 3;
128 return length;
131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length)
135 if (length < 2) {
145 if (length != (16 + gFrameBits[type] + 7) >> 3) {
148 length -= 2;
155 if (length != (10 + gFrameBits[type] + 7) >> 3) {
159 // Shift left 2 bits and update the length.
160 --length;
161 for (int i = 1; i < length; ++i) {
164 bytes[length] <<= 2;
165 length = (gFrameBits[type] + 7) >> 3;
169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) {
216 int decode(int16_t *samples, int count, void *payload, int length);
229 int length = AMREncode(mEncoder, mSidSync, MR122,
232 if (type == AMR_122 && length == 32) {
242 int GsmEfrCodec::decode(int16_t *samples, int count, void *payload, int length)
246 while (n + 160 <= count && length >= 31 && (bytes[0] >> 4) == 0x0C) {
256 length -= 31;