nn::jpeg::CTR::JpegMpEncoder::GetWorkBufferSize Member Function#include <nn/jpeg.h>
static size_t GetWorkBufferSize(
u32 numImages = 0
);
| 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. |
0 is returned as an error. Calculates the number of bytes in the work buffer for the encoder object.
The application must handle the allocation and deallocation of the buffer.
CONFIDENTIAL