Panda3D

Loading...
Searching...
No Matches
openCVTexture.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file openCVTexture.I
10 * @author zacpavlov
11 * @date 2005-08-19
12 */
13
14/**
15 * Returns true if this stream is open and ready, false otherwise.
16 */
17INLINE bool OpenCVTexture::VideoStream::
18is_valid() const {
19 return (_capture != nullptr);
20}
21
22/**
23 * Returns true if this stream takes its input from a video file, false
24 * otherwise.
25 */
26INLINE bool OpenCVTexture::VideoStream::
27is_from_file() const {
28 return !_filename.empty();
29}
30
31/**
32 *
33 */
34INLINE OpenCVTexture::VideoPage::
35VideoPage() {
36}
37
38/**
39 *
40 */
41INLINE OpenCVTexture::VideoPage::
42VideoPage(const OpenCVTexture::VideoPage &copy) :
43 _color(copy._color),
44 _alpha(copy._alpha)
45{
46}
47
48/**
49 *
50 */
51INLINE OpenCVTexture::VideoPage::
52~VideoPage() {
53}