Panda3D
Functions
movieVideoCursor.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "movieVideoCursor.h"
#include "config_movies.h"
#include "pStatCollector.h"
#include "pStatTimer.h"
#include "bamReader.h"
#include "bamWriter.h"

Go to the source code of this file.

Functions

 PT (MovieVideoCursor::Buffer) MovieVideoCursor
 Gets the current video frame (as specified by set_time()) from the movie and returns it in a pre-allocated buffer. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
jyelon
Date
2007-07-02

Definition in file movieVideoCursor.cxx.

Function Documentation

◆ PT()

Gets the current video frame (as specified by set_time()) from the movie and returns it in a pre-allocated buffer.

May be called by a derived class to allocate a new Buffer object.

You may simply let the buffer dereference and delete itself when you are done with it.

This may return NULL (even if set_time() returned true) if the frame is not available for some reason.

Definition at line 112 of file movieVideoCursor.cxx.