/usr/include/libAvKys/akvideocaps.h is in libavkys-dev 7.2.1+dfsg1-5.
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 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | /* Webcamoid, webcam capture application.
* Copyright (C) 2011-2016 Gonzalo Exequiel Pedone
*
* Webcamoid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Webcamoid 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Webcamoid. If not, see <http://www.gnu.org/licenses/>.
*
* Web-Site: http://webcamoid.github.io/
*/
#ifndef AKVIDEOCAPS_H
#define AKVIDEOCAPS_H
#include <QSize>
#include "akcaps.h"
#include "akfrac.h"
inline quint32 AkFourCC(quint32 a, quint32 b, quint32 c, quint32 d)
{
return (d << 24) | (c << 16) | (b << 8) | a;
}
#define AK_FOURCC_NULL AkFourCC('\x0', '\x0', '\x0', '\x0')
class AkVideoCapsPrivate;
class AkVideoCaps: public QObject
{
Q_OBJECT
Q_ENUMS(PixelFormat)
Q_PROPERTY(bool isValid
READ isValid)
Q_PROPERTY(PixelFormat format
READ format
WRITE setFormat
RESET resetFormat
NOTIFY formatChanged)
Q_PROPERTY(int bpp
READ bpp
WRITE setBpp
RESET resetBpp
NOTIFY bppChanged)
Q_PROPERTY(QSize size
READ size
WRITE setSize
RESET resetSize
NOTIFY sizeChanged)
Q_PROPERTY(int width
READ width
WRITE setWidth
RESET resetWidth
NOTIFY widthChanged)
Q_PROPERTY(int height
READ height
WRITE setHeight
RESET resetHeight
NOTIFY heightChanged)
Q_PROPERTY(AkFrac fps
READ fps
WRITE setFps
RESET resetFps
NOTIFY fpsChanged)
Q_PROPERTY(int pictureSize
READ pictureSize)
public:
enum PixelFormat
{
Format_none = -1,
Format_yuv420p,
Format_yuyv422,
Format_rgb24,
Format_bgr24,
Format_yuv422p,
Format_yuv444p,
Format_yuv410p,
Format_yuv411p,
Format_gray,
Format_monow,
Format_monob,
Format_pal8,
Format_yuvj420p,
Format_yuvj422p,
Format_yuvj444p,
Format_xvmcmc,
Format_xvmcidct,
Format_uyvy422,
Format_uyyvyy411,
Format_bgr8,
Format_bgr4,
Format_bgr4_byte,
Format_rgb8,
Format_rgb4,
Format_rgb4_byte,
Format_nv12,
Format_nv21,
Format_argb,
Format_rgba,
Format_abgr,
Format_bgra,
Format_gray16be,
Format_gray16le,
Format_yuv440p,
Format_yuvj440p,
Format_yuva420p,
Format_vdpau_h264,
Format_vdpau_mpeg1,
Format_vdpau_mpeg2,
Format_vdpau_wmv3,
Format_vdpau_vc1,
Format_rgb48be,
Format_rgb48le,
Format_rgb565be,
Format_rgb565le,
Format_rgb555be,
Format_rgb555le,
Format_bgr565be,
Format_bgr565le,
Format_bgr555be,
Format_bgr555le,
Format_vaapi_moco,
Format_vaapi_idct,
Format_vaapi_vld,
Format_yuv420p16le,
Format_yuv420p16be,
Format_yuv422p16le,
Format_yuv422p16be,
Format_yuv444p16le,
Format_yuv444p16be,
Format_vdpau_mpeg4,
Format_dxva2_vld,
Format_rgb444le,
Format_rgb444be,
Format_bgr444le,
Format_bgr444be,
Format_ya8,
Format_bgr48be,
Format_bgr48le,
Format_yuv420p9be,
Format_yuv420p9le,
Format_yuv420p10be,
Format_yuv420p10le,
Format_yuv422p10be,
Format_yuv422p10le,
Format_yuv444p9be,
Format_yuv444p9le,
Format_yuv444p10be,
Format_yuv444p10le,
Format_yuv422p9be,
Format_yuv422p9le,
Format_vda_vld,
Format_gbrp,
Format_gbrp9be,
Format_gbrp9le,
Format_gbrp10be,
Format_gbrp10le,
Format_gbrp16be,
Format_gbrp16le,
Format_yuva420p9be,
Format_yuva420p9le,
Format_yuva422p9be,
Format_yuva422p9le,
Format_yuva444p9be,
Format_yuva444p9le,
Format_yuva420p10be,
Format_yuva420p10le,
Format_yuva422p10be,
Format_yuva422p10le,
Format_yuva444p10be,
Format_yuva444p10le,
Format_yuva420p16be,
Format_yuva420p16le,
Format_yuva422p16be,
Format_yuva422p16le,
Format_yuva444p16be,
Format_yuva444p16le,
Format_vdpau,
Format_xyz12le,
Format_xyz12be,
Format_nv16,
Format_nv20le,
Format_nv20be,
Format_yvyu422,
Format_vda,
Format_ya16be,
Format_ya16le,
Format_qsv,
Format_mmal,
Format_d3d11va_vld,
Format_rgba64be,
Format_rgba64le,
Format_bgra64be,
Format_bgra64le,
Format_0rgb,
Format_rgb0,
Format_0bgr,
Format_bgr0,
Format_yuva444p,
Format_yuva422p,
Format_yuv420p12be,
Format_yuv420p12le,
Format_yuv420p14be,
Format_yuv420p14le,
Format_yuv422p12be,
Format_yuv422p12le,
Format_yuv422p14be,
Format_yuv422p14le,
Format_yuv444p12be,
Format_yuv444p12le,
Format_yuv444p14be,
Format_yuv444p14le,
Format_gbrp12be,
Format_gbrp12le,
Format_gbrp14be,
Format_gbrp14le,
Format_gbrap,
Format_gbrap16be,
Format_gbrap16le,
Format_yuvj411p,
Format_bayer_bggr8,
Format_bayer_rggb8,
Format_bayer_gbrg8,
Format_bayer_grbg8,
Format_bayer_bggr16le,
Format_bayer_bggr16be,
Format_bayer_rggb16le,
Format_bayer_rggb16be,
Format_bayer_gbrg16le,
Format_bayer_gbrg16be,
Format_bayer_grbg16le,
Format_bayer_grbg16be,
Format_yuv440p10le,
Format_yuv440p10be,
Format_yuv440p12le,
Format_yuv440p12be,
Format_ayuv64le,
Format_ayuv64be,
Format_v210,
Format_v216,
Format_v308
};
explicit AkVideoCaps(QObject *parent=NULL);
AkVideoCaps(const QVariantMap &caps);
AkVideoCaps(const QString &caps);
AkVideoCaps(const AkCaps &caps);
AkVideoCaps(const AkVideoCaps &other);
~AkVideoCaps();
AkVideoCaps &operator =(const AkVideoCaps &other);
AkVideoCaps &operator =(const AkCaps &caps);
AkVideoCaps &operator =(const QString &caps);
bool operator ==(const AkVideoCaps &other) const;
bool operator !=(const AkVideoCaps &other) const;
operator bool() const;
operator AkCaps() const;
Q_INVOKABLE bool isValid() const;
Q_INVOKABLE bool &isValid();
Q_INVOKABLE PixelFormat format() const;
Q_INVOKABLE PixelFormat &format();
Q_INVOKABLE int bpp() const;
Q_INVOKABLE int &bpp();
Q_INVOKABLE QSize size() const;
Q_INVOKABLE int width() const;
Q_INVOKABLE int &width();
Q_INVOKABLE int height() const;
Q_INVOKABLE int &height();
Q_INVOKABLE AkFrac fps() const;
Q_INVOKABLE AkFrac &fps();
Q_INVOKABLE int pictureSize() const;
Q_INVOKABLE AkVideoCaps &fromMap(const QVariantMap &caps);
Q_INVOKABLE AkVideoCaps &fromString(const QString &caps);
Q_INVOKABLE QVariantMap toMap() const;
Q_INVOKABLE QString toString() const;
Q_INVOKABLE AkVideoCaps &update(const AkCaps &caps);
Q_INVOKABLE AkCaps toCaps() const;
Q_INVOKABLE static int bitsPerPixel(PixelFormat pixelFormat);
Q_INVOKABLE static int bitsPerPixel(const QString &pixelFormat);
Q_INVOKABLE static QString pixelFormatToString(PixelFormat pixelFormat);
Q_INVOKABLE static PixelFormat pixelFormatFromString(const QString &pixelFormat);
Q_INVOKABLE static quint32 fourCC(PixelFormat pixelFormat);
Q_INVOKABLE static quint32 fourCC(const QString &pixelFormat);
private:
AkVideoCapsPrivate *d;
signals:
void formatChanged(PixelFormat format);
void bppChanged(int bpp);
void sizeChanged(const QSize &size);
void widthChanged(int width);
void heightChanged(int height);
void fpsChanged(const AkFrac &fps);
public slots:
void setFormat(PixelFormat format);
void setBpp(int bpp);
void setSize(const QSize &size);
void setWidth(int width);
void setHeight(int height);
void setFps(const AkFrac &fps);
void resetFormat();
void resetBpp();
void resetSize();
void resetWidth();
void resetHeight();
void resetFps();
void clear();
friend QDebug operator <<(QDebug debug, const AkVideoCaps &caps);
friend QDataStream &operator >>(QDataStream &istream, AkVideoCaps &caps);
friend QDataStream &operator <<(QDataStream &ostream, const AkVideoCaps &caps);
};
QDebug operator <<(QDebug debug, const AkVideoCaps &caps);
QDataStream &operator >>(QDataStream &istream, AkVideoCaps &caps);
QDataStream &operator <<(QDataStream &ostream, const AkVideoCaps &caps);
Q_DECLARE_METATYPE(AkVideoCaps)
Q_DECLARE_METATYPE(AkVideoCaps::PixelFormat)
#endif // AKVIDEOCAPS_H
|