#include <H3DVideoClipDecoderNode.h>
Inheritance diagram for H3D::H3DVideoClipDecoderNode:

Public Types | |
| typedef H3DVideoClipDecoderNode *(* | CreateNodeFunc )() |
| typedef bool(* | SupportsFileFunc )(const string &url) |
| Function ptr type for. | |
Public Member Functions | |
| H3DVideoClipDecoderNode () | |
| Constructor. | |
| virtual bool | loadClip (const string &url)=0 |
| Pure virtual function to load an video clip from a url. | |
| virtual bool | haveNewFrame ()=0 |
| Returns true when a new frame is available. | |
| virtual void | getNewFrame (unsigned char *buffer)=0 |
| Get the new frame. The buffer must be at least getFrameSize() bytes. | |
| virtual unsigned int | getFrameSize ()=0 |
| The size in bytes of the current frame. | |
| virtual unsigned int | getFrameWidth ()=0 |
| The width in pixels of the current frame. | |
| virtual unsigned int | getFrameHeight ()=0 |
| The height in pixels of the current frame. | |
| virtual Image::PixelType | getFramePixelType ()=0 |
| The pixel type of the current frame. | |
| virtual Image::PixelComponentType | getFramePixelComponentType ()=0 |
| The pixel component type of the current frame. | |
| virtual unsigned int | getFrameBitsPerPixel ()=0 |
| Get the number of bits per pixel in the current frame. | |
| virtual void | startPlaying ()=0 |
| Start decoding the video clip. | |
| virtual void | stopPlaying ()=0 |
| Stop decoding the video clip and set the position to the start position. | |
| virtual void | pausePlaying ()=0 |
| Pause the decoding of the video clip. | |
| virtual void | setLooping (bool on)=0 |
| Set whether the clip should loop and start from the start again when the end has been reached. | |
| virtual H3DTime | getPosition ()=0 |
| Get the current position in the clip (in seconds from start position). | |
| virtual void | setPosition (H3DTime pos)=0 |
| Set the current position in the clip(in seconds from start position). | |
| virtual bool | setRate (double r)=0 |
| Set the playback rate. | |
| virtual H3DTime | getDuration ()=0 |
| Returns the duration in seconds at normal play rate of the currently loaded video clip. | |
| PlayStatus | getPlayStatus () |
| Returns the current play status. | |
| virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. | |
Static Public Member Functions | |
| template<class N> | |
| static H3DVideoClipDecoderNode * | newImageLoaderNode () |
| static H3DVideoClipDecoderNode * | getSupportedDecoder (const string &url) |
| Given an url to a file, it returns an instance of a H3DVideoClipDecoderNode class that can handle that file type. | |
| static void | registerDecoder (const string &name, CreateNodeFunc create, SupportsFileFunc supports) |
| Register a decoder that can then be returned by getSupportedDecoder(). | |
| static void | registerDecoder (const DecoderRegistration &fr) |
| Register a file reader that can then be returned by getSupportedDecoder(). | |
Protected Types | |
| enum | PlayStatus { PLAYING = 0, STOPPED = 1, PAUSED = 2 } |
Protected Attributes | |
| PlayStatus | status |
Static Protected Attributes | |
| static list< DecoderRegistration > * | registered_decoders |
| static bool | initialized = false |
Classes | |
| struct | DecoderRegistration |
| Class used to register a class to the registered file readers. More... | |
|
|
Returns the default xml containerField attribute value. For this node it is "imageLoader". Reimplemented from H3D::Node. |
|
|
Given an url to a file, it returns an instance of a H3DVideoClipDecoderNode class that can handle that file type. If no such class is registered NULL is returns. |
|
|
Pure virtual function to load an video clip from a url. Returns true on success. |
|
||||||||||||||||
|
Register a decoder that can then be returned by getSupportedDecoder().
|
|
|
Set the playback rate. A rate of 1 means normal playback speed, 2 double. Negative values means playing backwards.
|
1.4.5