1 | /********** |
2 | This library is free software; you can redistribute it and/or modify it under |
3 | the terms of the GNU Lesser General Public License as published by the |
4 | Free Software Foundation; either version 3 of the License, or (at your |
5 | option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) |
6 | |
7 | This library is distributed in the hope that it will be useful, but WITHOUT |
8 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
9 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for |
10 | more details. |
11 | |
12 | You should have received a copy of the GNU Lesser General Public License |
13 | along with this library; if not, write to the Free Software Foundation, Inc., |
14 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
15 | **********/ |
16 | // "liveMedia" |
17 | // Copyright (c) 1996-2020 Live Networks, Inc. All rights reserved. |
18 | // Framed Filters |
19 | // C++ header |
20 | |
21 | #ifndef _FRAMED_FILTER_HH |
22 | #define _FRAMED_FILTER_HH |
23 | |
24 | #ifndef _FRAMED_SOURCE_HH |
25 | #include "FramedSource.hh" |
26 | #endif |
27 | |
28 | class FramedFilter: public FramedSource { |
29 | public: |
30 | FramedSource* inputSource() const { return fInputSource; } |
31 | |
32 | void reassignInputSource(FramedSource* newInputSource) { fInputSource = newInputSource; } |
33 | |
34 | // Call before destruction if you want to prevent the destructor from closing the input source |
35 | void detachInputSource(); |
36 | |
37 | protected: |
38 | FramedFilter(UsageEnvironment& env, FramedSource* inputSource); |
39 | // abstract base class |
40 | virtual ~FramedFilter(); |
41 | |
42 | protected: |
43 | // Redefined virtual functions (with default 'null' implementations): |
44 | virtual char const* MIMEtype() const; |
45 | virtual void getAttributes() const; |
46 | virtual void doStopGettingFrames(); |
47 | |
48 | protected: |
49 | FramedSource* fInputSource; |
50 | }; |
51 | |
52 | #endif |
53 | |