#include <VideoPlayer.h>
Inherited by W3DVideoBuffer.
Public Types | |
| enum | Type { TYPE_UNKNOWN , TYPE_R8G8B8 , TYPE_X8R8G8B8 , TYPE_R5G6B5 , TYPE_X1R5G5B5 , NUM_TYPES } |
Public Member Functions | |
| VideoBuffer (Type format) | |
| virtual | ~VideoBuffer () |
| virtual Bool | allocate (UnsignedInt width, UnsignedInt Height)=0 |
| Allocate buffer. | |
| virtual void | free (void)=0 |
| Free the buffer. | |
| virtual void * | lock (void)=0 |
| Returns memory pointer to start of buffer. | |
| virtual void | unlock (void)=0 |
| Release buffer. | |
| virtual Bool | valid (void)=0 |
| Is the buffer valid to use. | |
| UnsignedInt | xPos (void) |
| UnsignedInt | yPos (void) |
| X pixel offset to draw into. | |
| void | setPos (UnsignedInt x, UnsignedInt y) |
| Y pixel offset to draw into. | |
| UnsignedInt | width (void) |
| Set the x and y buffer offset. | |
| UnsignedInt | height (void) |
| Returns pixel width of visible texture. | |
| UnsignedInt | textureWidth (void) |
| Returns pixel height of visible texture. | |
| UnsignedInt | textureHeight (void) |
| Returns pixel width of texture. | |
| UnsignedInt | pitch (void) |
| Returns pixel height of texture. | |
| Type | format (void) |
| Returns buffer pitch in bytes. | |
| RectClass | Rect (Real x1, Real y1, Real x2, Real y2) |
| Returns buffer pixel format. | |
Protected Attributes | |
| UnsignedInt | m_xPos |
| X pixel buffer offset. | |
| UnsignedInt | m_yPos |
| Y pixel buffer offset. | |
| UnsignedInt | m_width |
| Buffer visible width. | |
| UnsignedInt | m_height |
| Buffer height. | |
| UnsignedInt | m_textureWidth |
| Buffer visible width. | |
| UnsignedInt | m_textureHeight |
| Buffer height. | |
| UnsignedInt | m_pitch |
| buffer pitch | |
| Type | m_format |
| buffer pixel format | |
Video buffer interface class. The VideoPlayer uses this buffer abstraction in order to be able to render a video stream.
Definition at line 91 of file VideoPlayer.h.
| enum VideoBuffer::Type |
| Enumerator | |
|---|---|
| TYPE_UNKNOWN | |
| TYPE_R8G8B8 | |
| TYPE_X8R8G8B8 | |
| TYPE_R5G6B5 | |
| TYPE_X1R5G5B5 | |
| NUM_TYPES | |
Definition at line 96 of file VideoPlayer.h.
| VideoBuffer::VideoBuffer | ( | Type | format | ) |
Definition at line 103 of file VideoPlayer.cpp.
|
inlinevirtual |
Definition at line 122 of file VideoPlayer.h.
|
pure virtual |
Allocate buffer.
Implemented in W3DVideoBuffer.
|
inline |
Returns buffer pitch in bytes.
Definition at line 138 of file VideoPlayer.h.
|
pure virtual |
|
inline |
Returns pixel width of visible texture.
Definition at line 134 of file VideoPlayer.h.
|
pure virtual |
Returns memory pointer to start of buffer.
Implemented in W3DVideoBuffer.
|
inline |
Returns pixel height of texture.
Definition at line 137 of file VideoPlayer.h.
Returns buffer pixel format.
Definition at line 125 of file VideoPlayer.cpp.
|
inline |
Y pixel offset to draw into.
Definition at line 132 of file VideoPlayer.h.
|
inline |
Returns pixel width of texture.
Definition at line 136 of file VideoPlayer.h.
|
inline |
Returns pixel height of visible texture.
Definition at line 135 of file VideoPlayer.h.
|
pure virtual |
Release buffer.
Implemented in W3DVideoBuffer.
|
pure virtual |
Is the buffer valid to use.
Implemented in W3DVideoBuffer.
|
inline |
Set the x and y buffer offset.
Definition at line 133 of file VideoPlayer.h.
|
inline |
Definition at line 130 of file VideoPlayer.h.
|
inline |
X pixel offset to draw into.
Definition at line 131 of file VideoPlayer.h.
|
protected |
buffer pixel format
Definition at line 117 of file VideoPlayer.h.
|
protected |
Buffer height.
Definition at line 112 of file VideoPlayer.h.
|
protected |
buffer pitch
Definition at line 115 of file VideoPlayer.h.
|
protected |
Buffer height.
Definition at line 114 of file VideoPlayer.h.
|
protected |
Buffer visible width.
Definition at line 113 of file VideoPlayer.h.
|
protected |
Buffer visible width.
Definition at line 111 of file VideoPlayer.h.
|
protected |
X pixel buffer offset.
Definition at line 109 of file VideoPlayer.h.
|
protected |
Y pixel buffer offset.
Definition at line 110 of file VideoPlayer.h.