nn::jpeg::CTR::JpegMpDecoder::GetLastOutputBufferWidth Member Function

Syntax

#include <nn/jpeg.h>

u32 GetLastOutputBufferWidth() const;

Arguments

None.

Return Values

The width (in pixels) of the output image buffer.
If the output image buffer width was specified with the SetOutputBufferWidth function before decoding, this function returns either that specified value (rounded down to match the pixel format given by PixelFormat) or the image width (rounded up to match the pixel format), whichever is greater. Returns 0 on failure.

Description

Gets the width of the output image buffer where an image was decoded immediately previously.

If the image was not decoded immediately previously but only had its EXIF information extracted, you cannot call this function (the return value is undefined).

Revision History

2010/10/21
Added a link to PixelFormat.
2010/06/14
Initial version.

CONFIDENTIAL