nn::jpeg::CTR::JpegMpEncoder::SetMpBaselineLength Member Function

Syntax

#include <nn/jpeg.h>
void SetMpBaselineLength(
     const Rational * pValue
);

Arguments

Name Description
in pValue Specifies the baseline length. Specify NULL to clear the value.

Return Values

None.

Description

Registers the baseline length to embed in the MP Attribute IFD.

This function is enabled if the StartMpEncoderFirst or StartMpEncoderNext function is used as the encoding function. This is invalid when using StartMpEncoderLR. (The default value is stored.)

If you do not call this function, the library registers the default value (0xFFFFFFFF/0xFFFFFFFF). However, this value is not embedded unless the image's MP type is MP_TYPE_CODE_MULTI_VIEW_DISPARITY_IMAGE (a stereoscopic image).

Call this function before calling the encoding function. The values specified by this function are cleared after the encoding function completes, regardless of whether the encoding function succeeded or failed. When encoding multiple times, you must call this function before each encoding function call. The values specified by this function are also cleared if you specify NULL for the pValue argument, if you call the ClearMpBaselineLength function, or if you reinitialize the encoder object using the Initialize function.

Revision History

2010/10/22
Added a link to MpTypeCode.
2010/06/14
Initial version.

CONFIDENTIAL