nngxFilterBlockImage Function

Syntax

NNGX_APICALL void NNGX_APIENTRY nngxFilterBlockImage(
     const GLvoid * srcaddr,
     GLvoid * dstaddr,
     GLsizei width,
     GLsizei height,
     GLenum format
);

Arguments

Name Description
in srcaddr Transfer source block image address.
in dstaddr Transfer destination address.
in width Transfer source image width.
in height Transfer source image height.
in format Block image pixel format.

Return Values

There is no return value.

Description

Issues a command to antialias-filter and transfer a block image.

These antialias-filter and transfer commands for block images accumulate in the current command list. Block images are either rendered images or PICA native format textures that are in 8-block addressing format. This operation transfers the image from the address specified in srcaddr to the address specified in dstaddr while applying a 2x2 antialias filter. The srcaddr and dstaddr addresses must be 8-byte aligned. For width and height, specify the dimensions of the transfer source image in pixels.

For format, specify one of the following pixel formats.

GL_RGBA8_OESRGBA8888, 32-bit
GL_RGB8_OESRGB888, 24-bit
GL_RGBA4RGBA4444, 16-bit
GL_RGB5_A1RGBA5551, 16-bit
GL_RGB565RGB565, 16-bit

Depending on the format, there are restrictions on the possible settings for width and height. These are shown in the table below.

formatwidthheight
GL_RGBA8_OES, GL_RGB8_OESMust be a value of 64 or larger and a multiple of 64Must be a value of 64 or larger and a multiple of 8
GL_RGBA4, GL_RGB5_A1, GL_RGB565Must be a value of 128 or larger and a multiple of 128Must be a value of 128 or larger and a multiple of 8

The following errors occur with this function.

GL_ERROR_8068_DMP0 is bound to the current command list, or the command request queue size is insufficient.
GL_ERROR_8069_DMPsrcaddr or dstaddr is not 8-byte aligned.
GL_ERROR_806A_DMPwidth or height violate the restrictions imposed upon them by the specified format.
GL_ERROR_806B_DMPThe format argument is set to an invalid value.

Revision History

2010/06/09
Initial version.

CONFIDENTIAL