nn::jpeg::CTR::PixelFormat Enumerated Type

Syntax

enum PixelFormat;

Value

Value Description
PIXEL_FORMAT_YUYV8 Pixel format of images captured by camera devices. With 4 bytes (2 pixels) representing a single pair, the order beginning from the first byte is: Y component (left side), U component, Y component (right side), and V component.
PIXEL_FORMAT_CTR_RGB565 Equivalent to GPU texture formats GL_RGB and GL_UNSIGNED_SHORT_5_6_5. The upper left pixel in the image is positioned first in memory. V-clipping is used when the graphics library converts images in this format to the native PICA format. CPU processing time of the graphics library increases with conversion.
PIXEL_FORMAT_CTR_RGB565_BLOCK8 Equivalent to GPU texture formats GL_RGB_NATIVE_DMP and GL_UNSIGNED_SHORT_5_6_5. The output buffer for decoding functions must have 128-byte alignment to be directly accessible by the GPU. This library only checks for 4-byte alignment.
PIXEL_FORMAT_RGB8 Equivalent to GPU texture formats GL_RGB and GL_UNSIGNED_BYTE. Just as with PIXEL_FORMAT_CTR_RGB565, the upper left pixel of the image comes first in memory.
PIXEL_FORMAT_CTR_RGB8_BLOCK8 Equivalent to GPU texture formats GL_RGB_NATIVE_DMP and GL_UNSIGNED_BYTE. Uses the same alignment as PIXEL_FORMAT_CTR_RGB565_BLOCK8.
PIXEL_FORMAT_RGBA8 Equivalent to GPU texture formats GL_RGBA and GL_UNSIGNED_BYTE. The alpha component is ignored during encoder input, and output as 0xFF during decoder output. Just as with PIXEL_FORMAT_CTR_RGB565, the upper left pixel of the image comes first in memory.
PIXEL_FORMAT_CTR_RGBA8_BLOCK8 Equivalent to GPU texture formats GL_RGBA_NATIVE_DMP and GL_UNSIGNED_BYTE. Uses the same alignment as PIXEL_FORMAT_CTR_RGB565_BLOCK8.
PIXEL_FORMAT_BGR8 Equivalent to the LCD display buffer format GL_RGB8_OES. The order of color components is the reversed compared to PIXEL_FORMAT_RGB8.
PIXEL_FORMAT_ABGR8 Equivalent to the LCD display buffer format GL_RGBA8_OES. The order of color components is reversed compared to PIXEL_FORMAT_RGBA8. The alpha component is handled in the same way as with PIXEL_FORMAT_RGBA8.
NUM_PIXEL_FORMATS

Description

Enumerated type indicating the pixel format.

Supported as both encoder input and decoder output.

Revision History

2010/10/21
Added Description.
2010/04/14
Initial version.

CONFIDENTIAL