nn::jpeg::CTR::JpegMpEncoder::GetWorkBufferSize Member Function

Syntax

#include <nn/jpeg.h>

static size_t GetWorkBufferSize(
     u32 numImages = 0
);

Arguments

Name Description
in numImages Specify 0 to use the normal JPEG format instead of using the MP (multi-picture) format.
When using the MP format, specify the number of images to store. If you need to allocate the buffer when it is uncertain whether you are going to use the MP format or how many images you will need to store, specify the maximum conceivable number of images for your application.
The default value is 0.

Return Values

Returns the size of the buffer in bytes. If the number of images to store (numImages) is too large (4096 or greater), 0 is returned as an error.

Description

Calculates the number of bytes in the work buffer for the encoder object.

The application must handle the allocation and deallocation of the buffer.

Revision History

2010/04/14
Initial version.

CONFIDENTIAL