Frz::CellGfx Class Reference
Cell Broadband Engine sybsystem class.
More...
#include <frz_cellgfx.hpp>
List of all members.
Classes |
| struct | ThrData |
Public Member Functions |
| | CellGfx (int w, int h, bool allocPixbuf=false) |
| | Constructs a Cell Broadband Engine sybsystem object.
|
Protected Member Functions |
| void | in_mbox_write (int i, uint32_t *array, int count) |
| | Writes a set of 32-bit integers to the inbound mailbox of a specified SPE thread.
|
| int | out_mbox_status (int i) |
| | Returns the status of the outbound mailbox of a specified SPE thread.
|
| uint32_t | out_mbox_read (int i) |
| | Reads a 32-bit integer from the outbound mailbox of a specified SPE thread.
|
| uint32_t | out_intr_mbox_read (int i=0) |
| | Reads a 32-bit integer from the interrupt outbound mailbox of a specified SPE thread.
|
Detailed Description
Cell Broadband Engine sybsystem class.
This class interfaces with the libspe2 library. It creates and manages the SPE threads, and implements mailbox-based communication with the different SPE threads.
Constructor & Destructor Documentation
| Frz::CellGfx::CellGfx |
( |
int |
w, |
|
|
int |
h, |
|
|
bool |
allocPixbuf = false | |
|
) |
| | |
Constructs a Cell Broadband Engine sybsystem object.
- Parameters:
-
| w | Picture width in pixels. |
| h | Picture height in pixels. |
| allocPixbuf | if true, allocate a screen buffer. |
Member Function Documentation
| void Frz::CellGfx::in_mbox_write |
( |
int |
i, |
|
|
uint32_t * |
array, |
|
|
int |
count | |
|
) |
| | [protected] |
Writes a set of 32-bit integers to the inbound mailbox of a specified SPE thread.
- Parameters:
-
| i | SPE thread number (between 0 and SPE_COUNT-1). |
| array | Pointer to the first element in the integer array. |
| count | Number of elements to be written. |
| uint32_t Frz::CellGfx::out_intr_mbox_read |
( |
int |
i = 0 |
) |
[inline, protected] |
Reads a 32-bit integer from the interrupt outbound mailbox of a specified SPE thread.
If no value is available, the current thread waits for a value to become available.
- Parameters:
-
| i | SPE thread number (between 0 and SPE_COUNT-1). |
- Returns:
- the read value.
| uint32_t Frz::CellGfx::out_mbox_read |
( |
int |
i |
) |
[inline, protected] |
Reads a 32-bit integer from the outbound mailbox of a specified SPE thread.
- Parameters:
-
| i | SPE thread number (between 0 and SPE_COUNT-1). |
- Returns:
- the read value or zero if no value is available.
| int Frz::CellGfx::out_mbox_status |
( |
int |
i |
) |
[inline, protected] |
Returns the status of the outbound mailbox of a specified SPE thread.
- Parameters:
-
| i | SPE thread number (between 0 and SPE_COUNT-1). |
- Returns:
- the number of elements to be read in the mailbox.
The documentation for this class was generated from the following file: