This file is indexed.

/usr/include/bitstream/ietf/rtcp_sr.h is in libbitstream-dev 1.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
#ifndef __BITSTREAM_IETF_RTCP_SR_H__
# define __BITSTREAM_IETF_RTCP_SR_H__

# include <inttypes.h>
# include <bitstream/ietf/rtcp.h>

# define RTCP_SR_SIZE    28

# define RTCP_PT_SR             200

static inline void rtcp_sr_set_rtp_version(uint8_t *p_rtcp)
{
    rtcp_set_rtp_version(p_rtcp);
}

static inline void rtcp_sr_set_pt(uint8_t *p_rtcp_sr)
{
    rtcp_set_pt(p_rtcp_sr, RTCP_PT_SR);
}

static inline void rtcp_sr_set_length(uint8_t *p_rtcp_sr,
                                      uint16_t length)
{
    rtcp_set_length(p_rtcp_sr, length);
}

static inline uint32_t rtcp_sr_get_ntp_time_msw(const uint8_t *p_rtcp_sr)
{
    return (p_rtcp_sr[8] << 24) | (p_rtcp_sr[9] << 16) |
           (p_rtcp_sr[10] << 8) | p_rtcp_sr[11];
}

static inline void rtcp_sr_set_ntp_time_msw(uint8_t *p_rtcp_sr,
                                            uint32_t ntp_time_msw)
{
    p_rtcp_sr[8] = (ntp_time_msw >> 24) & 0xff;
    p_rtcp_sr[9] = (ntp_time_msw >> 16) & 0xff;
    p_rtcp_sr[10] = (ntp_time_msw >> 8) & 0xff;
    p_rtcp_sr[11] = ntp_time_msw & 0xff;
}

static inline uint32_t rtcp_sr_get_ntp_time_lsw(const uint8_t *p_rtcp_sr)
{
    return (p_rtcp_sr[12] << 24) | (p_rtcp_sr[13] << 16) |
           (p_rtcp_sr[14] << 8) | p_rtcp_sr[15];
}

static inline void rtcp_sr_set_ntp_time_lsw(uint8_t *p_rtcp_sr,
                                            uint32_t ntp_time_lsw)
{
    p_rtcp_sr[12] = (ntp_time_lsw >> 24) & 0xff;
    p_rtcp_sr[13] = (ntp_time_lsw >> 16) & 0xff;
    p_rtcp_sr[14] = (ntp_time_lsw >> 8) & 0xff;
    p_rtcp_sr[15] = ntp_time_lsw & 0xff;
}

static inline uint32_t rtcp_sr_get_rtp_time(const uint8_t *p_rtcp_sr)
{
    return (p_rtcp_sr[16] << 24) | (p_rtcp_sr[17] << 16) |
           (p_rtcp_sr[18] << 8) | p_rtcp_sr[19];
}

static inline void rtcp_sr_set_rtp_time(uint8_t *p_rtcp_sr,
                                            uint32_t rtp_time)
{
    p_rtcp_sr[16] = (rtp_time >> 24) & 0xff;
    p_rtcp_sr[17] = (rtp_time >> 16) & 0xff;
    p_rtcp_sr[18] = (rtp_time >> 8) & 0xff;
    p_rtcp_sr[19] = rtp_time & 0xff;
}

static inline uint32_t rtcp_sr_get_packet_count(const uint8_t *p_rtcp_sr)
{
    return (p_rtcp_sr[20] << 24) | (p_rtcp_sr[21] << 16) |
           (p_rtcp_sr[22] << 8) | p_rtcp_sr[23];
}

static inline void rtcp_sr_set_packet_count(uint8_t *p_rtcp_sr,
                                            uint32_t packet_count)
{
    p_rtcp_sr[20] = (packet_count >> 24) & 0xff;
    p_rtcp_sr[21] = (packet_count >> 16) & 0xff;
    p_rtcp_sr[22] = (packet_count >> 8) & 0xff;
    p_rtcp_sr[23] = packet_count & 0xff;
}

static inline uint32_t rtcp_sr_get_octet_count(const uint8_t *p_rtcp_sr)
{
    return (p_rtcp_sr[24] << 24) | (p_rtcp_sr[25] << 16) |
           (p_rtcp_sr[26] << 8) | p_rtcp_sr[27];
}

static inline void rtcp_sr_set_octet_count(uint8_t *p_rtcp_sr,
                                            uint32_t octet_count)
{
    p_rtcp_sr[24] = (octet_count >> 24) & 0xff;
    p_rtcp_sr[25] = (octet_count >> 16) & 0xff;
    p_rtcp_sr[26] = (octet_count >> 8) & 0xff;
    p_rtcp_sr[27] = octet_count & 0xff;
}

#endif /* !__BITSTREAM_IETF_RTCP_SR_H__ */