Panda3D
 All Classes Functions Variables Enumerations
openCVTexture.I
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: OpenCVTexture::VideoStream::is_valid
00018 //       Access: Public
00019 //  Description: Returns true if this stream is open and ready, false
00020 //               otherwise.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE bool OpenCVTexture::VideoStream::
00023 is_valid() const {
00024   return (_capture != NULL);
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: OpenCVTexture::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 OpenCVTexture::VideoStream::
00034 is_from_file() const {
00035   return !_filename.empty();
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //     Function: OpenCVTexture::VideoPage::Constructor
00040 //       Access: Public
00041 //  Description: 
00042 ////////////////////////////////////////////////////////////////////
00043 INLINE OpenCVTexture::VideoPage::
00044 VideoPage() {
00045 }
00046 
00047 ////////////////////////////////////////////////////////////////////
00048 //     Function: OpenCVTexture::VideoPage::Copy Constructor
00049 //       Access: Public
00050 //  Description: 
00051 ////////////////////////////////////////////////////////////////////
00052 INLINE OpenCVTexture::VideoPage::
00053 VideoPage(const OpenCVTexture::VideoPage &copy) :
00054   _color(copy._color),
00055   _alpha(copy._alpha)
00056 {
00057 }
00058 
00059 ////////////////////////////////////////////////////////////////////
00060 //     Function: OpenCVTexture::VideoPage::Destructor
00061 //       Access: Public
00062 //  Description: 
00063 ////////////////////////////////////////////////////////////////////
00064 INLINE OpenCVTexture::VideoPage::
00065 ~VideoPage() {
00066 }
00067 
 All Classes Functions Variables Enumerations