Home | History | Annotate | Download | only in test

Lines Matching refs:rtpHeader

31                                const uint8_t* rtpHeader) {
32 rtpInfo->header.payloadType = rtpHeader[1];
33 rtpInfo->header.sequenceNumber = (static_cast<uint16_t>(rtpHeader[2]) << 8) |
34 rtpHeader[3];
35 rtpInfo->header.timestamp = (static_cast<uint32_t>(rtpHeader[4]) << 24) |
36 (static_cast<uint32_t>(rtpHeader[5]) << 16) |
37 (static_cast<uint32_t>(rtpHeader[6]) << 8) | rtpHeader[7];
38 rtpInfo->header.ssrc = (static_cast<uint32_t>(rtpHeader[8]) << 24) |
39 (static_cast<uint32_t>(rtpHeader[9]) << 16) |
40 (static_cast<uint32_t>(rtpHeader[10]) << 8) | rtpHeader[11];
43 void RTPStream::MakeRTPheader(uint8_t* rtpHeader, uint8_t payloadType,
46 rtpHeader[0] = 0x80;
47 rtpHeader[1] = payloadType;
48 rtpHeader[2] = (seqNo >> 8) & 0xFF;
49 rtpHeader[3] = seqNo & 0xFF;
50 rtpHeader[4] = timeStamp >> 24;
51 rtpHeader[5] = (timeStamp >> 16) & 0xFF;
52 rtpHeader[6] = (timeStamp >> 8) & 0xFF;
53 rtpHeader[7] = timeStamp & 0xFF;
54 rtpHeader[8] = ssrc >> 24;
55 rtpHeader[9] = (ssrc >> 16) & 0xFF;
56 rtpHeader[10] = (ssrc >> 8) & 0xFF;
57 rtpHeader[11] = ssrc & 0xFF;
173 uint8_t rtpHeader[12];
174 MakeRTPheader(rtpHeader, payloadType, seqNo, timeStamp, 0);
185 EXPECT_EQ(1u, fwrite(&rtpHeader, 12, 1, _rtpFile));
193 uint8_t rtpHeader[12];
207 EXPECT_EQ(1u, fread(rtpHeader, 12, 1, _rtpFile));
208 ParseRTPHeader(rtpInfo, rtpHeader);