Panda3D
ffmpegVirtualFile.I
1 // Filename: ffmpegVirtualFile.I
2 // Created by: jyelon (01Aug2007)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: FfmpegVirtualFile::is_open
18 // Access: Public
19 // Description: Returns true if the stream is successfully opened,
20 // false otherwise.
21 ////////////////////////////////////////////////////////////////////
22 INLINE bool FfmpegVirtualFile::
23 is_open() const {
24  return (_format_context != NULL);
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: FfmpegVirtualFile::get_format_context
29 // Access: Public
30 // Description: Returns a pointer to the opened ffmpeg context, or
31 // NULL if the file was not successfully opened.
32 ////////////////////////////////////////////////////////////////////
33 INLINE AVFormatContext *FfmpegVirtualFile::
35  return _format_context;
36 }
AVFormatContext * get_format_context() const
Returns a pointer to the opened ffmpeg context, or NULL if the file was not successfully opened...
bool is_open() const
Returns true if the stream is successfully opened, false otherwise.