Holds the data for one image plane.
More...
#include <Radiant/VideoImage.hpp>
|
|
void | freeMemory () |
| | Frees the memory associated with the plane. |
| |
| unsigned char * | line (int y) |
| | Get a line from the image. More... |
| |
| const unsigned char * | line (int y) const |
| | Get a line from the image. More... |
| |
|
| Plane () |
| | Constructor. |
| |
| void | set (unsigned char *data, int linesize, PlaneType type) |
| | Makes a shallow copy of the data. More... |
| |
Holds the data for one image plane.
- See Also
- VideoImage
| unsigned char* Radiant::VideoImage::Plane::line |
( |
int |
y | ) |
|
|
inline |
Get a line from the image.
- Parameters
-
- Returns
- Pointer to the beginning of the line
| const unsigned char* Radiant::VideoImage::Plane::line |
( |
int |
y | ) |
const |
|
inline |
Get a line from the image.
- Parameters
-
- Returns
- Pointer to the beginning of the line
| void Radiant::VideoImage::Plane::set |
( |
unsigned char * |
data, |
|
|
int |
linesize, |
|
|
PlaneType |
type |
|
) |
| |
|
inline |
Makes a shallow copy of the data.
- Parameters
-
| data | Pointer to copy |
| linesize | Linesize of the copied date |
| type | Type of the plane |