This file is indexed.

/usr/include/dvbpsi/dr_81.h is in libdvbpsi-dev 1.3.0-4.

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
/*
Copyright (C) 2013-2014  Michael Ira Krufky

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

dr_81.h

Decode AC-3 Audio Descriptor.

*/

/*!
 * \file dr_81.h
 * \author Michael Ira Krufky
 * \brief Decode AC-3 Audio Descriptor.
 */

#ifndef _DR_81_H
#define _DR_81_H

#ifdef __cplusplus
extern "C" {
#endif

/*****************************************************************************
 * dvbpsi_ac3_audio_dr_s
 *****************************************************************************/
/*!
 * \struct dvbpsi_ac3_audio_dr_s
 * \brief AC-3 Audio Descriptor
 *
 * This structure is used to store a decoded AC-3 Audio descriptor.
 */
/*!
 * \typedef struct dvbpsi_ac3_audio_dr_s dvbpsi_ac3_audio_dr_t
 * \brief dvbpsi_ac3_audio_dr_t type definition.
 */
typedef struct dvbpsi_ac3_audio_dr_s
{
    uint8_t  i_sample_rate_code; /*!< sample rate code (3bits) */
    uint8_t  i_bsid;             /*!< bsid (5bits) */
    uint8_t  i_bit_rate_code;    /*!< bitrate code (6bits) */
    uint8_t  i_surround_mode;    /*!< surround mode indicator (2bits) */
    uint8_t  i_bsmod;            /*!< (3bits) */
    uint8_t  i_num_channels;     /*!< number of audio channels (4bits) */
    int      b_full_svc;         /*!< full SVC flag */
    uint8_t  i_lang_code;        /*!< language code (8bits) */
    uint8_t  i_lang_code2;       /*!< language code (8bits( */
    uint8_t  i_mainid;           /*!< main identifier (3bits) */
    uint8_t  i_priority;         /*!< priority (2bits) */
    uint8_t  i_asvcflags;        /*!< asvc flags  (8bits) */
    uint8_t  i_textlen;          /*!< text length (7bits) */
    int      b_text_code;        /*!< text code is present */
    unsigned char text[128];     /*!< text code */
    int      b_language_flag;    /*!< language flag */
    int      b_language_flag_2;  /*!< language flag */
    uint8_t  language[3];        /*!< language code */
    uint8_t  language_2[3];      /*!< language code */
}dvbpsi_ac3_audio_dr_t;

/*****************************************************************************
 * dvbpsi_DecodeAc3AudioDr
 *****************************************************************************/
/*!
 * \fn dvbpsi_ac3_audio_dr_t dvbpsi_DecodeAc3AudioDr(dvbpsi_descriptor_t *p_descriptor)
 * \brief Decode a AC-3 Audio descriptor (tag 0x81)
 * \param p_descriptor Raw descriptor to decode.
 * \return NULL if the descriptor could not be decoded or a pointer to a
 *         dvbpsi_ac3_audio_dr_t structure.
 */
dvbpsi_ac3_audio_dr_t *dvbpsi_DecodeAc3AudioDr(dvbpsi_descriptor_t *p_descriptor);

#ifdef __cplusplus
}
#endif

#endif