This file is indexed.

/usr/include/QtGStreamer/QGst/discoverer.h is in libqtgstreamer-dev 1.2.0-3.

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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/*
    Copyright (C) 2012 Openismus GmbH
      @author Mathias Hasselmann <mathias@openismus.com>

    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 program 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 program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QGST_DISCOVERER_H
#define QGST_DISCOVERER_H

#include <QGst/ClockTime>
#include <QGst/Fraction>
#include <QGst/MiniObject>
#include <QGst/Object>
#include <QGst/Structure>
#include <QGst/TagList>

#include <QtCore/QUrl>

#include "global.h"

namespace QGst {

class QTGSTREAMER_EXPORT DiscovererStreamInfo : public QGlib::Object
{
    QGST_WRAPPER(DiscovererStreamInfo)

public:
    DiscovererStreamInfoPtr previous() const;
    DiscovererStreamInfoPtr next() const;
    QString streamTypeNick() const;
    CapsPtr caps() const;
    TagList tags() const;
    Structure misc() const;
};

class QTGSTREAMER_EXPORT DiscovererContainerInfo : public DiscovererStreamInfo
{
    QGST_WRAPPER(DiscovererContainerInfo)

public:
    QList<DiscovererStreamInfoPtr> streams() const;
};

class QTGSTREAMER_EXPORT DiscovererAudioInfo : public DiscovererStreamInfo
{
    QGST_WRAPPER(DiscovererAudioInfo)

public:
    uint channels() const;
    uint sampleRate() const;
    uint depth() const;
    uint bitrate() const;
    uint maxBitrate() const;
    QString language() const;
};

class QTGSTREAMER_EXPORT DiscovererVideoInfo : public DiscovererStreamInfo
{
    QGST_WRAPPER(DiscovererVideoInfo)

public:
    uint width() const;
    uint height() const;
    uint depth() const;
    Fraction framerate() const;
    Fraction pixelAspectRatio() const;
    uint bitrate() const;
    uint maxBitrate() const;
    bool isInterlaced() const;
    bool isImage() const;
};

class QTGSTREAMER_EXPORT DiscovererSubtitleInfo : public DiscovererStreamInfo
{
    QGST_WRAPPER(DiscovererSubtitleInfo)

public:
    QString language() const;
};

class QTGSTREAMER_EXPORT DiscovererInfo : public QGlib::Object
{
    QGST_WRAPPER(DiscovererInfo)

public:
    QUrl uri() const;
    DiscovererResult result() const;

    ClockTime duration() const;
    bool seekable() const;
    Structure misc() const;
    TagList tags() const;

    DiscovererStreamInfoPtr streamInfo() const;
    QList<DiscovererStreamInfoPtr> streams() const;
    QList<DiscovererStreamInfoPtr> streams(QGlib::Type streamType) const;
    QList<DiscovererStreamInfoPtr> audioStreams() const;
    QList<DiscovererStreamInfoPtr> videoStreams() const;
    QList<DiscovererStreamInfoPtr> subtitleStreams() const;
    QList<DiscovererStreamInfoPtr> containerStreams() const;
};

class QTGSTREAMER_EXPORT Discoverer : public QGlib::Object
{
    QGST_WRAPPER(Discoverer)

public:
    /*! Creates a new discoverer with the provided timeout.
     * \throws QGlib::Error when there was a problem creating the discoverer
     */
    static DiscovererPtr create(ClockTime timeout);

    /*! Allow asynchronous discovering of URIs to take place.
     * \note A GLib event loop must be available for QGst::Discoverer to work
     * properly in asynchronous mode. This feature might not be available on all
     * platforms supported by Qt.
     * \ingroup async
     */
    void start();

    /*! Stop the discovery of any pending URIs and clears the list of pending URIS (if any).
     * \ingroup async
     */
    void stop();

    /*! Appends the given \param uri to the list of URIs to discoverer.
     * The actual discovery of the \param uri will only take place if start() has been called.
     * \ingroup async
     */
    bool discoverUriAsync(const char *uri);

    /*! \overload */
    inline bool discoverUriAsync(const QUrl &uri);

    /*! Synchronously discovers the given \param uri.
     * \throws QGlib::Error if an error occurred
     * \ingroup sync
     */
    DiscovererInfoPtr discoverUri(const char *uri);

    /*! \overload */
    inline DiscovererInfoPtr discoverUri(const QUrl &uri);
};

inline bool Discoverer::discoverUriAsync(const QUrl &uri)
{
    return discoverUriAsync(uri.toEncoded().constData());
}

inline DiscovererInfoPtr Discoverer::discoverUri(const QUrl &uri)
{
    return discoverUri(uri.toEncoded().constData());
}

QTGSTREAMER_EXPORT QDebug operator<<(QDebug debug, DiscovererResult result);
QTGSTREAMER_EXPORT QDebug operator<<(QDebug debug, const DiscovererStreamInfoPtr &info);
QTGSTREAMER_EXPORT QDebug operator<<(QDebug debug, const DiscovererInfoPtr &info);

} // namespace QGst

QGST_REGISTER_TYPE(QGst::DiscovererStreamInfo)
QGST_REGISTER_TYPE(QGst::DiscovererContainerInfo)
QGST_REGISTER_TYPE(QGst::DiscovererAudioInfo)
QGST_REGISTER_TYPE(QGst::DiscovererVideoInfo)
QGST_REGISTER_TYPE(QGst::DiscovererSubtitleInfo)
QGST_REGISTER_TYPE(QGst::DiscovererInfo)
QGST_REGISTER_TYPE(QGst::Discoverer)

#endif // QGST_DISCOVERER_H