Panda3D
 All Classes Functions Variables Enumerations
openCVTexture.I
1 // Filename: openCVTexture.I
2 // Created by: zacpavlov (19Aug05)
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: OpenCVTexture::VideoStream::is_valid
18 // Access: Public
19 // Description: Returns true if this stream is open and ready, false
20 // otherwise.
21 ////////////////////////////////////////////////////////////////////
22 INLINE bool OpenCVTexture::VideoStream::
23 is_valid() const {
24  return (_capture != NULL);
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: OpenCVTexture::VideoStream::is_from_file
29 // Access: Public
30 // Description: Returns true if this stream takes its input from a
31 // video file, false otherwise.
32 ////////////////////////////////////////////////////////////////////
33 INLINE bool OpenCVTexture::VideoStream::
34 is_from_file() const {
35  return !_filename.empty();
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: OpenCVTexture::VideoPage::Constructor
40 // Access: Public
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE OpenCVTexture::VideoPage::
44 VideoPage() {
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: OpenCVTexture::VideoPage::Copy Constructor
49 // Access: Public
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 INLINE OpenCVTexture::VideoPage::
53 VideoPage(const OpenCVTexture::VideoPage &copy) :
54  _color(copy._color),
55  _alpha(copy._alpha)
56 {
57 }
58 
59 ////////////////////////////////////////////////////////////////////
60 // Function: OpenCVTexture::VideoPage::Destructor
61 // Access: Public
62 // Description:
63 ////////////////////////////////////////////////////////////////////
64 INLINE OpenCVTexture::VideoPage::
65 ~VideoPage() {
66 }
67