Functions | |
| HRESULT | D3DCreateImageFromMirror (CVD3DMIRROR d3dMirror, long lChannel, IMG &Img) |
| This function creates a CVB image around the given CVD3DMIRROR object. | |
| HRESULT | D3DCreateImageFromObject (CVD3DOBJECT d3dObject, long lChannel, IMG &Img) |
| This function creates a CVB image around the given CVD3DOBJECT object. | |
| HRESULT | D3DCreateMirror (CVD3D d3d, DWORD dwWidth, DWORD dwHeight, TColorFormat tcf, CVD3DMIRROR &d3dMirror) |
| Creates a mirror to transfer an image back to the host using D3DUpdate after it has been rendered. | |
| HRESULT | D3DGet3DObject (IMG img, OBJ &pObj) |
| This function returns the CVD3DOBJECT attached to given image. | |
| HRESULT | D3DGetChannel (IMG img, long &lChannel) |
| This function returns the channel currently being used by a monochrome CVB image that was created around a colour GPU image. | |
| HRESULT | D3DGetMirrorInfo (CVD3DMIRROR d3dMirror, DWORD &dwWidth, DWORD &dwHeight, TColorFormat &tcf) |
| Returns information about the given CVD3DMIRROR object. | |
| BOOL | D3DIsIMG (OBJ d3dImg) |
| This function checks if the given handle points to a CVB IMG type. | |
| BOOL | D3DIsLocked (IMG img) |
| This function returns the current locking state of the given image. | |
| BOOL | D3DIsMirror (OBJ d3dMirror) |
| This function checks if the given handle points to a CVD3DMIRROR type or not. | |
| HRESULT | D3DLock (IMG img) |
| This function locks the frame buffer of the given image that was created around a GPU object. | |
| HRESULT | D3DSetChannel (IMG img, long lChannel) |
| This function sets the channel to be used by a monochrome CVB image that was created around a colour GPU image. | |
| HRESULT | D3DUnlock (IMG img) |
| This function unlocks the fame buffer of the given image that was created around a GPU object and that was locked using D3DLock. | |
| HRESULT | D3DUpdate (CVD3DMIRROR d3dMirror) |
| Updates the given mirror with the data of the last rendering step. | |
| HRESULT | D3DWriteImageToObject (IMG Img, long lPlane, CVD3DOBJECT d3dObject, long lChannel) |
| This function writes the data of the given CVB image plane to the given CVD3DOBJECT. | |
| HRESULT D3DCreateImageFromMirror | ( | CVD3DMIRROR | d3dMirror, |
| long | lChannel, | ||
| IMG & | Img | ||
| ) |
This function creates a CVB image around the given CVD3DMIRROR object.
The channel to be used may be specified using lChannel. Use -1 to select the default which is a mono CVB image for a mono CVD3DOBJECT and a colour CVB image for colour CVD3DOBJECT objects.
ShareObject and ReleaseObject functions of the Image Manager. To finally free the object use ReleaseObject. | [in] | d3dMirror | The source mirror object. |
| [in] | lChannel | The channel to be used or -1 for a colour image, respectively, to use the default channel. |
| [out] | Img | Handle to the newly created CVB image. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DCreateImageFromObject | ( | CVD3DOBJECT | d3dObject, |
| long | lChannel, | ||
| IMG & | Img | ||
| ) |
This function creates a CVB image around the given CVD3DOBJECT object.
The channel to be used may be specified using lChannel. Use -1 to select the default which is a mono CVB image for a mono CVD3DOBJECT and a colour CVB image for colour CVD3DOBJECT objects.
ShareObject and ReleaseObject functions of the Image Manager. To finally free the object use ReleaseObject. | [in] | d3dObject | The source object. |
| [in] | lChannel | The channel to be used or -1 for a colour image, respectively, to use the default channel. |
| [out] | Img | Handle to the newly created CVB image. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DCreateMirror | ( | CVD3D | d3d, |
| DWORD | dwWidth, | ||
| DWORD | dwHeight, | ||
| TColorFormat | tcf, | ||
| CVD3DMIRROR & | d3dMirror | ||
| ) |
Creates a mirror to transfer an image back to the host using D3DUpdate after it has been rendered.
Use D3DCreateImageFromMirror to create a standard CVB image attached to the mirror. You can create multiple CVB images attached to one particular mirror to implement different views of the mirror e.g., three mono CVB images to view the red, green, and blue channel of a mirror.
ShareObject and ReleaseObject functions of the Image Manager. To finally free the object use ReleaseObject. | [in] | d3d | The D3D context. |
| [in] | dwWidth | The width of the image which has to be less or equal to the maximum width of the D3D context. |
| [in] | dwHeight | The height of the image which has to be less or equal to the maximum height of the D3D context. |
| [in] | tcf | The colour format of the image. See TColorFormat for possible colour formats. |
| [out] | d3dMirror | Handle to the newly created CVD3DMIRROR object. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGet3DObject | ( | IMG | img, |
| OBJ & | pObj | ||
| ) |
This function returns the CVD3DOBJECT attached to given image.
| [in] | img | Handle to the image. |
| [out] | pObj | Handle to the CVD3DOBJECT object attached to the given image or NULL if no CVD3DOBJECT is attached to this image. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGetChannel | ( | IMG | img, |
| long & | lChannel | ||
| ) |
This function returns the channel currently being used by a monochrome CVB image that was created around a colour GPU image.
The channel can be changed by D3DSetChannel.
| [in] | img | Handle to the image. |
| [out] | lChannel | Channel currently being used by this image. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGetMirrorInfo | ( | CVD3DMIRROR | d3dMirror, |
| DWORD & | dwWidth, | ||
| DWORD & | dwHeight, | ||
| TColorFormat & | tcf | ||
| ) |
Returns information about the given CVD3DMIRROR object.
| [in] | d3dMirror | The CVD3DMIRROR object. |
| [out] | dwWidth | Width of the mirror image. |
| [out] | dwHeight | Height of the mirror image. |
| [out] | tcf | Colour format of the mirror image. See TColorFormat for possible values. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | BOOL D3DIsIMG | ( | OBJ | d3dImg | ) |
This function checks if the given handle points to a CVB IMG type.
Typically you will use #3DCreateImageFromObject or D3DCreateImageFromMirror to create CVB images around GPU image objects.
| [in] | d3dImg | Handle to the object to be processed. |
TRUE if it is a image object, FALSE otherwise. | BOOL D3DIsLocked | ( | IMG | img | ) |
This function returns the current locking state of the given image.
| [in] | img | Handle to the object to be processed. |
TRUE if the image is currently locked, FALSE otherwise. | BOOL D3DIsMirror | ( | OBJ | d3dMirror | ) |
This function checks if the given handle points to a CVD3DMIRROR type or not.
| [in] | d3dMirror | Handle to the object to be processed. |
TRUE if it is a CVD3DMIRROR object, FALSE otherwise. | HRESULT D3DLock | ( | IMG | img | ) |
This function locks the frame buffer of the given image that was created around a GPU object.
The buffer of a CVD3DOBJECT can be accessed by the host OR the pixel shader. By calling this function the host gets access to the image data. The pixel shader can't access the image data before D3DUnlock is called. Normally locking and unlocking is done internally to ensure accessibility of the GPU image at any time.
| [in] | img | Handle to the image to be processed. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DSetChannel | ( | IMG | img, |
| long | lChannel | ||
| ) |
This function sets the channel to be used by a monochrome CVB image that was created around a colour GPU image.
Using this function you can access individual channels of a GPU colour image via a monochrome CVB image. E.g., to process three monochrome images in one pixel shader program like shown in the VC Processing 3 Mono Images Parallel Example example.
| [in] | img | Handle to the image to be used. |
| [in] | lChannel | Channel to be used by this image in the range from 0 to 3. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DUnlock | ( | IMG | img | ) |
This function unlocks the fame buffer of the given image that was created around a GPU object and that was locked using D3DLock.
The buffer of a CVD3DOBJECT can be accessed by the host OR the pixel shader. By calling this function the pixel shader gets access to the image data. Normally locking and unlocking is done internally to ensure accessibility of the GPU image at any time.
| [in] | img | Handle to the image to be processed. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DUpdate | ( | CVD3DMIRROR | d3dMirror | ) |
Updates the given mirror with the data of the last rendering step.
The data is transfered back to the host memory and the CVB image attached to the mirror will be updated as well.
| [in] | d3dMirror | The source mirror object to be updated. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DWriteImageToObject | ( | IMG | Img, |
| long | lPlane, | ||
| CVD3DOBJECT | d3dObject, | ||
| long | lChannel | ||
| ) |
This function writes the data of the given CVB image plane to the given CVD3DOBJECT.
The plane index of the CVB image to be written can be specified as well as channel of the CVD3DOBJECT. A value of -1 for the plane and/or the channel writes the data from/to the default plane/channel. For a monochrome image the default writes a monochrome plane to all channels of the CVD3DOBJECT. For colour images the RGB planes will be written to the red, green, and blue channel.
| [in] | Img | The source image to be written. |
| [in] | lPlane | The source image plane or -1 to select the default (all planes for a colour image or plane 0 for a monochrome image). |
| [in] | d3dObject | The destination to be written. |
| [in] | lChannel | The destination channel (RGBA) to be written or -1 to select the default (RGB for a colour image or the red channel for monochrome images). |
0 if no error occurred, otherwise a value != 0 indicates the error code.