Home | History | Annotate | Download | only in test

Lines Matching refs:rtpHeader

30                                const uint8_t* rtpHeader) {
31 rtpInfo->header.payloadType = rtpHeader[1];
32 rtpInfo->header.sequenceNumber = (static_cast<uint16_t>(rtpHeader[2]) << 8) |
33 rtpHeader[3];
34 rtpInfo->header.timestamp = (static_cast<uint32_t>(rtpHeader[4]) << 24) |
35 (static_cast<uint32_t>(rtpHeader[5]) << 16) |
36 (static_cast<uint32_t>(rtpHeader[6]) << 8) | rtpHeader[7];
37 rtpInfo->header.ssrc = (static_cast<uint32_t>(rtpHeader[8]) << 24) |
38 (static_cast<uint32_t>(rtpHeader[9]) << 16) |
39 (static_cast<uint32_t>(rtpHeader[10]) << 8) | rtpHeader[11];
42 void RTPStream::MakeRTPheader(uint8_t* rtpHeader, uint8_t payloadType,
45 rtpHeader[0] = (unsigned char) 0x80;
46 rtpHeader[1] = (unsigned char) (payloadType & 0xFF);
47 rtpHeader[2] = (unsigned char) ((seqNo >> 8) & 0xFF);
48 rtpHeader[3] = (unsigned char) ((seqNo) & 0xFF);
49 rtpHeader[4] = (unsigned char) ((timeStamp >> 24) & 0xFF);
50 rtpHeader[5] = (unsigned char) ((timeStamp >> 16) & 0xFF);
52 rtpHeader[6] = (unsigned char) ((timeStamp >> 8) & 0xFF);
53 rtpHeader[7] = (unsigned char) (timeStamp & 0xFF);
55 rtpHeader[8] = (unsigned char) ((ssrc >> 24) & 0xFF);
56 rtpHeader[9] = (unsigned char) ((ssrc >> 16) & 0xFF);
58 rtpHeader[10] = (unsigned char) ((ssrc >> 8) & 0xFF);
59 rtpHeader[11] = (unsigned char) (ssrc & 0xFF);
185 uint8_t rtpHeader[12];
186 MakeRTPheader(rtpHeader, payloadType, seqNo, timeStamp, 0);
202 if (fwrite(rtpHeader, 12, 1, _rtpFile) != 1) {
214 uint8_t rtpHeader[12];
228 EXPECT_EQ(1u, fread(rtpHeader, 12, 1, _rtpFile));
229 ParseRTPHeader(rtpInfo, rtpHeader);