• Home
  • Raw
  • Download

Lines Matching refs:rtpHeader

29                                const uint8_t* rtpHeader) {  in ParseRTPHeader()  argument
30 rtp_header->payloadType = rtpHeader[1]; in ParseRTPHeader()
32 (static_cast<uint16_t>(rtpHeader[2]) << 8) | rtpHeader[3]; in ParseRTPHeader()
33 rtp_header->timestamp = (static_cast<uint32_t>(rtpHeader[4]) << 24) | in ParseRTPHeader()
34 (static_cast<uint32_t>(rtpHeader[5]) << 16) | in ParseRTPHeader()
35 (static_cast<uint32_t>(rtpHeader[6]) << 8) | in ParseRTPHeader()
36 rtpHeader[7]; in ParseRTPHeader()
37 rtp_header->ssrc = (static_cast<uint32_t>(rtpHeader[8]) << 24) | in ParseRTPHeader()
38 (static_cast<uint32_t>(rtpHeader[9]) << 16) | in ParseRTPHeader()
39 (static_cast<uint32_t>(rtpHeader[10]) << 8) | in ParseRTPHeader()
40 rtpHeader[11]; in ParseRTPHeader()
43 void RTPStream::MakeRTPheader(uint8_t* rtpHeader, in MakeRTPheader() argument
48 rtpHeader[0] = 0x80; in MakeRTPheader()
49 rtpHeader[1] = payloadType; in MakeRTPheader()
50 rtpHeader[2] = (seqNo >> 8) & 0xFF; in MakeRTPheader()
51 rtpHeader[3] = seqNo & 0xFF; in MakeRTPheader()
52 rtpHeader[4] = timeStamp >> 24; in MakeRTPheader()
53 rtpHeader[5] = (timeStamp >> 16) & 0xFF; in MakeRTPheader()
54 rtpHeader[6] = (timeStamp >> 8) & 0xFF; in MakeRTPheader()
55 rtpHeader[7] = timeStamp & 0xFF; in MakeRTPheader()
56 rtpHeader[8] = ssrc >> 24; in MakeRTPheader()
57 rtpHeader[9] = (ssrc >> 16) & 0xFF; in MakeRTPheader()
58 rtpHeader[10] = (ssrc >> 8) & 0xFF; in MakeRTPheader()
59 rtpHeader[11] = ssrc & 0xFF; in MakeRTPheader()
186 uint8_t rtpHeader[12]; in Write() local
187 MakeRTPheader(rtpHeader, payloadType, seqNo, timeStamp, 0); in Write()
198 EXPECT_EQ(1u, fwrite(&rtpHeader, 12, 1, _rtpFile)); in Write()
208 uint8_t rtpHeader[12]; in Read() local
222 EXPECT_EQ(1u, fread(rtpHeader, 12, 1, _rtpFile)); in Read()
223 ParseRTPHeader(rtp_header, rtpHeader); in Read()