Provides image surface read and write by the client application for diagnostic purposes.
- Warning
- These functions are for diagnostics purposes only and should not be used in production code.
NvMediaImageGetBits reads an NvMedia image and writes the content into a client memory buffer.
- Parameters
-
[in] | image | Source NvMediaImage type surface. The surface must be locked using NvMediaImageLock prior to calling this function. |
[in] | srcRect | Structure containing co-ordinates of the rectangle in the source surface from which the client surface is to be copied. Setting srcRect to NULL implies rectangle of full surface size. |
[out] | dstPntrs | Array of pointers to the destination surface planes |
[in] | dstPitches | Array of pitch values for the destination surface planes |
- Returns
- NvMediaStatus The completion status of the operation. Possible values are:
NVMEDIA_STATUS_OK
NVMEDIA_STATUS_BAD_PARAMETER if any of the input parameters is invalid.
NVMEDIA_STATUS_ERROR if the image is not locked.
Reads a client memory buffer and writes the content into an NvMedia image surface.
- Parameters
-
[in] | image | The destination NvMediaImage type surface. The image must be locked using NvMediaImageLock prior to calling this function. |
[in] | dstRect | Structure containing co-ordinates of the rectangle in the destination surface to which the client surface is to be copied. Setting dstRect to NULL implies rectangle of full surface size. |
[in] | srcPntrs | Array of pointers to the client surface planes |
[in] | srcPitches | Array of pitch values for the client surface planes |
- Returns
- NvMediaStatus The completion status of the operation. Possible values are:
NVMEDIA_STATUS_OK
NVMEDIA_STATUS_BAD_PARAMETER if any of the input parameters is invalid.
NVMEDIA_STATUS_ERROR if the image is not locked.