Lines Matching defs:frame
109 /* this never happens as sbc_info->codesize is always frame-aligned */
115 /* If MTU exceeds mSBC frame size there could be up to 1 + MTU / (mSBC frame size)
151 struct msbc_frame *frame;
161 frame = (struct msbc_frame *)output_buffer;
163 frame->hdr.id0 = MSBC_H2_ID0;
164 frame->hdr.id1.s.id1 = MSBC_H2_ID1;
166 frame->hdr.id1.s.sn1 = 3;
168 frame->hdr.id1.s.sn1 = 0;
170 frame->hdr.id1.s.sn0 = 3;
172 frame->hdr.id1.s.sn0 = 0;
176 frame->payload, MSBC_FRAME_SIZE,
179 frame->padding = 0x00;
213 * We build a msbc frame up in the sbc_info buffer until we have a whole one
271 struct msbc_frame *frame;
277 frame = msbc_find_frame(sbc_info, &input_size, input_buffer + total_processed, &seq);
281 /* Only full mSBC frame should be decoded */
282 if (!frame)
295 decoded = sbc_decode(&sbc_info->sbc, frame->payload, MSBC_FRAME_SIZE, output_buffer, output_size, &written);