Panda3D
|
00001 // Filename: openCVTexture.I 00002 // Created by: zacpavlov (19Aug05) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: FFMpegTexture::VideoStream::is_valid 00018 // Access: Public 00019 // Description: Returns true if this stream is open and ready, false 00020 // otherwise. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE bool FFMpegTexture::VideoStream:: 00023 is_valid() const { 00024 return (_format_context != NULL && _codec_context != NULL); 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: FFMpegTexture::VideoStream::is_from_file 00029 // Access: Public 00030 // Description: Returns true if this stream takes its input from a 00031 // video file, false otherwise. 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE bool FFMpegTexture::VideoStream:: 00034 is_from_file() const { 00035 return true; 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: FFMpegTexture::VideoPage::Constructor 00040 // Access: Public 00041 // Description: 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE FFMpegTexture::VideoPage:: 00044 VideoPage() { 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: FFMpegTexture::VideoPage::Copy Constructor 00049 // Access: Public 00050 // Description: 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE FFMpegTexture::VideoPage:: 00053 VideoPage(const FFMpegTexture::VideoPage ©) : 00054 _color(copy._color) 00055 { 00056 } 00057 00058 //////////////////////////////////////////////////////////////////// 00059 // Function: FFMpegTexture::VideoPage::Destructor 00060 // Access: Public 00061 // Description: 00062 //////////////////////////////////////////////////////////////////// 00063 INLINE FFMpegTexture::VideoPage:: 00064 ~VideoPage() { 00065 }