QtGStreamer 1.2.0
Loading...
Searching...
No Matches
sample.h
1/*
2 Copyright (C) 2013 Diane Trout
3 @author Diane Trout <diane@ghic.org>
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef QGST_SAMPLE_H
19#define QGST_SAMPLE_H
20
21#include "miniobject.h"
22
23namespace QGst {
24
31class QTGSTREAMER_EXPORT Sample : public MiniObject
32{
33 QGST_WRAPPER(Sample)
34public:
35 static SamplePtr create(const BufferPtr & buffer, const CapsPtr & caps,
36 const Segment & segment, const Structure & info);
37
38 BufferPtr buffer() const;
39 CapsPtr caps() const;
40 Structure info() const;
41 Segment segment() const;
42};
43} //namespace QGst
44
45QGST_REGISTER_TYPE(QGst::Sample)
46
47#endif
Smart pointer class for working with wrapper classes that support reference counting.
Definition refpointer.h:91
Wrapper class for GstMiniObject.
Definition miniobject.h:30
Wrapper class for GstSample.
Definition sample.h:32
Wrapper for GstSegment.
Definition segment.h:28
Wrapper for GstStructure.
Definition structure.h:50
Wrappers for GStreamer classes.