| 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 | // H.265 Video File Sinks |
| 19 | // C++ header |
| 20 | |
| 21 | #ifndef _H265_VIDEO_FILE_SINK_HH |
| 22 | #define _H265_VIDEO_FILE_SINK_HH |
| 23 | |
| 24 | #ifndef _H264_OR_5_VIDEO_FILE_SINK_HH |
| 25 | #include "H264or5VideoFileSink.hh" |
| 26 | #endif |
| 27 | |
| 28 | class H265VideoFileSink: public H264or5VideoFileSink { |
| 29 | public: |
| 30 | static H265VideoFileSink* createNew(UsageEnvironment& env, char const* fileName, |
| 31 | char const* sPropVPSStr = NULL, |
| 32 | char const* sPropSPSStr = NULL, |
| 33 | char const* sPropPPSStr = NULL, |
| 34 | // The "sProp*Str" parameters are optional 'SDP format' strings |
| 35 | // (comma-separated Base64-encoded) representing VPS, SPS, and/or PPS NAL-units |
| 36 | // to prepend to the output |
| 37 | unsigned bufferSize = 100000, |
| 38 | Boolean oneFilePerFrame = False); |
| 39 | // See "FileSink.hh" for a description of these parameters. |
| 40 | |
| 41 | protected: |
| 42 | H265VideoFileSink(UsageEnvironment& env, FILE* fid, |
| 43 | char const* sPropVPSStr, |
| 44 | char const* sPropSPSStr, |
| 45 | char const* sPropPPSStr, |
| 46 | unsigned bufferSize, char const* perFrameFileNamePrefix); |
| 47 | // called only by createNew() |
| 48 | virtual ~H265VideoFileSink(); |
| 49 | }; |
| 50 | |
| 51 | #endif |
| 52 | |